Thread: Sparc Soloris 8 - Postgresql configure Problem!

Sparc Soloris 8 - Postgresql configure Problem!

From
"Peter Barganski"
Date:
Please help. This is what i get in the config.log when i run `./configure --with-openssl --with-perl --enable-odbc --with-tcl --without-tk --enable-syslog' :-
 
 
<<-------------------------------------- Start ---------------------------------------------->>
configure:6584: checking for rl_completion_matches
configure:6612: gcc -o conftest    -I/usr/local/ssl/include  
 
-L/usr/local/ssl/lib conftest.c -lssl -lcrypto -lz -lresolv -lgen -lnsl
 
-lsocket -ldl -lm -lreadline -ltermcap  1>&5
configure:6639: checking for finite
configure:6648: gcc -o conftest    -I/usr/local/ssl/include  
 
-L/usr/local/ssl/lib conftest.c -lssl -lcrypto -lz -lresolv -lgen -lnsl
 
-lsocket -ldl -lm -lreadline -ltermcap  1>&5
configure:6663: checking for sigsetjmp
configure:6672: gcc -o conftest    -I/usr/local/ssl/include  
 
-L/usr/local/ssl/lib conftest.c -lssl -lcrypto -lz -lresolv -lgen -lnsl
 
-lsocket -ldl -lm -lreadline -ltermcap  1>&5
configure:6692: checking for syslog
configure:6720: gcc -o conftest    -I/usr/local/ssl/include  
 
-L/usr/local/ssl/lib conftest.c -lssl -lcrypto -lz -lresolv -lgen -lnsl
 
-lsocket -ldl -lm -lreadline -ltermcap  1>&5
configure:6759: checking for optreset
configure:6771: gcc -o conftest    -I/usr/local/ssl/include  
 
-L/usr/local/ssl/lib conftest.c -lssl -lcrypto -lz -lresolv -lgen -lnsl
 
-lsocket -ldl -lm -lreadline -ltermcap  1>&5
Undefined   first referenced
 symbol         in file
optreset                            /var/tmp/ccg1XtMY.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 6764 "configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
extern int optreset; optreset = 1;
; return 0; }
configure:6797: checking test program
configure:6806: gcc -o conftest    -I/usr/local/ssl/include  
 
-L/usr/local/ssl/lib conftest.c -lssl -lcrypto -lz -lresolv -lgen -lnsl
 
-lsocket -ldl -lm -lreadline -ltermcap  1>&5
configure: failed program was:
#line 6802 "configure"
#include "confdefs.h"
int main() { return 0; }
<<---------------------------------------- End ----------------------------------------------->>
 
The complete config.log is attached.
 
Any help will be much appriciated.
 
Regards,
 
Peter Barganski
IT Security Consultant
 
Attachment

Re: Sparc Soloris 8 - Postgresql configure Problem!

From
Oyvind Hallsteinsen
Date:
Peter Barganski wrote:
[cut]
> configure:6797: checking test program
> configure:6806: gcc -o conftest    -I/usr/local/ssl/include
>
> -L/usr/local/ssl/lib conftest.c -lssl -lcrypto -lz -lresolv -lgen
> -lnsl
>
> -lsocket -ldl -lm -lreadline -ltermcap  1>&5
> configure: failed program was:
> #line 6802 "configure"
> #include "confdefs.h"
> int main() { return 0; }

A (not so) wild guess would be gcc having trouble finding some of your
libraries. However, to see what's really going wrong I suggest you do
the following:

a) Create a file mytest.c consisting of:
   int main() { return 0; }

b) $ gcc -o mytest mytest.c -I/usr/local/ssl/include
-L/usr/local/ssl/lib -lssl -lcrypto -lz -lresolv -lgen -lnsl -lsocket
-ldl -lm -lreadline -ltermcap

c) If that works try
   $ ./mytest
   $ echo $?

This ought to give you a pointer as to what is going wrong.

---
-- Øyvind Hallsteinsen, HIST AITeL --