Problems during linking of PGSQL 8.0.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



renneyt@xxxxxxxxx wrote:

>I ran into a problem while compiling PGSQL  8.0.3. I am on Solaris 10
>(Sparc) running GCC 4.0.
>
>The problem is as follows:
>
>
>gmake[4]: Leaving directory `/opt/sft/postgresql-8.0.3/src/port'
>gmake[3]: Leaving directory `/opt/sft/postgresql-8.0.3/src/timezone'
>gcc -O3 -pthreads -Wall -Wmissing-prototypes -Wpointer-arith
>-Wdeclaration-after-statement -Wold-style-definition -Wendif-labels
>-fno-strict-aliasing -L../../src/port -L/opt/csw/gcc4/lib/
>-L/usr/local/lib -L/usr/local/openldap/lib
>-L/usr/local/BerkeleyDB.4.3/lib -L/usr/local/ssl/lib 
>-L/usr/local/ssl/lib -Wl,-R/usr/local/pgsql/lib  access/SUBSYS.o
>bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o commands/SUBSYS.o
>executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o
>nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o
>regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSYS.o
>utils/SUBSYS.o ../../src/timezone/SUBSYS.o  -lpgport_srv -lssl -lcrypto
>-lz -lreadline -ltermcap -lrt -lresolv -lgen -lsocket -lnsl -ldl -lm  -o
>postgres
>Undefined                       first referenced
> symbol                             in file
>isinf                               utils/SUBSYS.o
>ld: fatal: Symbol referencing errors. No output written to postgres
>collect2: ld returned 1 exit status
>gmake[2]: *** [postgres] Error 1
>gmake[2]: Leaving directory `/opt/sft/postgresql-8.0.3/src/backend'
>gmake[1]: *** [all] Error 2
>gmake[1]: Leaving directory `/opt/sft/postgresql-8.0.3/src'
>
>  
>




When I switched to the GNU linker I got the following:

gmake[3]: Leaving directory `/opt/sft/postgresql-8.1beta1/src/backend/utils'
gmake -C ../../src/timezone all
gmake[3]: Entering directory `/opt/sft/postgresql-8.1beta1/src/timezone'
gmake -C ../../src/port all
gmake[4]: Entering directory `/opt/sft/postgresql-8.1beta1/src/port'
gmake[4]: Nothing to be done for `all'.
gmake[4]: Leaving directory `/opt/sft/postgresql-8.1beta1/src/port'
gmake[3]: Leaving directory `/opt/sft/postgresql-8.1beta1/src/timezone'
gcc -O3 -pthreads -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wold-style-definition -Wendif-labels
-fno-strict-aliasing -L../../src/port -L/opt/csw/gcc4/lib/
-L/usr/local/lib -L/usr/local/openldap/lib
-L/usr/local/BerkeleyDB.4.3/lib -L/usr/local/ssl/lib 
-L/usr/local/ssl/lib -Wl,-rpath,/usr/local/pgsql/lib -Wl,-E
access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o
commands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o
main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o
postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o
tcop/SUBSYS.o utils/SUBSYS.o ../../src/timezone/SUBSYS.o
../../src/port/libpgport_srv.a    -lssl -lcrypto -lz -lreadline
-ltermcap -lrt -lresolv -lgen -lsocket -lnsl -ldl -lm  -o postgres
utils/SUBSYS.o(.text+0x18670): In function `is_infinite':
: undefined reference to `isinf'
utils/SUBSYS.o(.text+0x1b9ac): In function `float8in':
: undefined reference to `isinf'
utils/SUBSYS.o(.text+0x1bd10): In function `float4in':
: undefined reference to `isinf'
utils/SUBSYS.o(.text+0x1bff8): In function `float4out':
: undefined reference to `isinf'
utils/SUBSYS.o(.text+0x1c0f8): In function `float8out':
: undefined reference to `isinf'
collect2: ld returned 1 exit status
gmake[2]: *** [postgres] Error 1
gmake[2]: Leaving directory `/opt/sft/postgresql-8.1beta1/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/opt/sft/postgresql-8.1beta1/src'
gmake: *** [all] Error 2







>
>GCC version
>
>Configured with: ../sources/gcc-4.0.0/configure --prefix=/opt/csw/gcc4
>--with-local-prefix=/opt/csw --without-gnu-as --with-as=/usr/ccs/bin/as
>--without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix
>--enable-shared --enable-multilib --enable-nls --with-included-gettext
>--with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib
>--with-system-zlib --enable-languages=c,c++,f95,java,objc,ada
>Thread model: posix
>gcc version 4.0.0
>
>Thanks
>
>  
>


-- 
<><



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.18/89 - Release Date: 9/2/2005



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux