Re: Bug #490: Can't compile PostgreSQL 7.1.3 with Solaris 2.6

Lists: pgsql-bugs
From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #490: Can't compile PostgreSQL 7.1.3 with Solaris 2.6
Date: 2001-10-23 08:47:31
Message-ID: 200110230847.f9N8lVo53092@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

Holger Mittewald (hrmitter(at)lsd(dot)franken(dot)de) reports a bug with a severity of 1
The lower the number the more severe it is.

Short Description
Can't compile PostgreSQL 7.1.3 with Solaris 2.6

Long Description
Trying to compile postgresql under solaris 2.6 configure stops claiming about an unknown symbol "optreset". I wasn't able to fix the problem.

Sample Code
The last lines of config.log:

[..]
configure:7459: checking for optreset
configure:7471: gcc -o conftest conftest.c -lposix4 -lz -lresolv -lgen -lns
l -lsocket -ldl -lm -lreadline -ltermcap 1>&5
Undefined first referenced
symbol in file
optreset /var/tmp/ccSZ2P6u.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 7464 "configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
extern int optreset; optreset = 1;
; return 0; }
configure:7497: checking test program
configure:7506: gcc -o conftest conftest.c -lposix4 -lz -lresolv -lgen -lns
l -lsocket -ldl -lm -lreadline -ltermcap 1>&5
configure: failed program was:
#line 7502 "configure"
#include "confdefs.h"
int main() { return 0; }

No file was uploaded with this report


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: hrmitter(at)lsd(dot)franken(dot)de, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug #490: Can't compile PostgreSQL 7.1.3 with Solaris 2.6
Date: 2001-10-23 14:57:28
Message-ID: 3965.1003849048@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

pgsql-bugs(at)postgresql(dot)org writes:
> Trying to compile postgresql under solaris 2.6 configure stops
> claiming about an unknown symbol "optreset". I wasn't able to fix the
> problem.

You misread it: the log shows that it's the test after the optreset one
that is failing. That test is just trying to compile and run a trivial
test program. The only reason I can think of for it to fail is if you
have a problem with the libraries that it's linking.

Without seeing the error message it's impossible to guess more than
that...

regards, tom lane


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Holger Mitterwald" <hrmitter(at)lsd(dot)franken(dot)de>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-bugs(at)postgreSQL(dot)org
Subject: Re: Bug #490: Can't compile PostgreSQL 7.1.3 with Solaris 2.6
Date: 2001-10-24 17:02:46
Message-ID: 21266.1003942966@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

"Holger Mitterwald" <hrmitter(at)lsd(dot)franken(dot)de> writes:
> Ok, next try. I set LD_LIBRARY_PATH to /usr/local/lib.
> Then the configure run clean.

> Funny thing about that is that it DID find the related librarys
> (libreadline etc.) earlier but failed on the test.

Not a big surprise: ld doesn't pay attention to LD_LIBRARY_PATH (on
most platforms), but the dynamic loader does.

> Now I can compile postgresql, but this behavior still confuses me. With 7.0
> I still can configure and compile postgresql without setting
> LD_LIBRARY_PATH.

Hmm. It sounds like we formerly set rpath in the executables on your
platform, and don't anymore. Could you compare the makefiles between
7.0 and 7.1 and see what's changed?

regards, tom lane