Re: Sparc Soloris 8 - Postgresql configure Problem!

Lists: pgsql-ports
From: "Peter Barganski" <peter(at)outside-edge(dot)net>
To: <pgsql-ports(at)postgresql(dot)org>
Subject: Sparc Soloris 8 - Postgresql configure Problem!
Date: 2001-12-28 03:13:22
Message-ID: PostgreSQL : Sparc Soloris 8- PostgreSQL
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-ports

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 Content-Type Size
config.log application/octet-stream 33.3 KB

From: Oyvind Hallsteinsen <oyvindh(at)aitel(dot)hist(dot)no>
To: Peter Barganski <peter(at)outside-edge(dot)net>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: Sparc Soloris 8 - Postgresql configure Problem!
Date: 2002-01-03 14:09:20
Message-ID: 3C346610.FF035365@aitel.hist.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-ports

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 --