Thread: Solaris build of 7.4 problem
Hi, I tried to compile the new 7.4 in Solaris 2.9 Sparc and Solaris 2.8 intel and got the same make error: Solaris 8 intel: ================ /opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o typename.o descriptor.o data.o error.o prepare.o memory.o connect.o misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes -L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib -o libecpg.so.4.0 cc: Warning: multiple use of -h option, previous one discarded. ld: fatal: recording name conflict: file `../../../../src/interfaces/libpq/libpq.so' and -h option provide identical dependency names: read ld: fatal: File processing errors. No output written to libecpg.so.4.0 make[4]: *** [libecpg.so.4.0] Error 1 make[4]: Leaving directory `/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg/ecpglib' make[3]: *** [all] Error 2 make[3]: Leaving directory `/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg' make[2]: *** [all] Error 2 make[2]: Leaving directory `/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces' make[1]: *** [all] Error 2 make[1]: Leaving directory `/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src' make: *** [all] Error 2 Solaris 9 Sparc: ================ /opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o typename.o descriptor.o data.o error.o prepare.o memory.o connect.o misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes -L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib -o libecpg.so.4.0 cc: Warning: multiple use of -h option, previous one discarded. ld: fatal: recording name conflict: file `../../../../src/interfaces/libpq/libpq.so' and -h option provide identical dependency names: read ld: fatal: File processing errors. No output written to libecpg.so.4.0 make[4]: *** [libecpg.so.4.0] Error 1 make[4]: Leaving directory `/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib' make[3]: *** [all] Error 2 make[3]: Leaving directory `/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg' make[2]: *** [all] Error 2 make[2]: Leaving directory `/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces' make[1]: *** [all] Error 2 make[1]: Leaving directory `/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src' make: *** [all] Error 2 Could you help ? Thanks. Gan -- +--------------------------------------------------------+ | Seum-Lim GAN email : slgan@lucent.com | | Lucent Technologies | | 2000 N. Naperville Road, 6B-403F tel : (630)-713-6665 | | Naperville, IL 60566, USA. fax : (630)-713-7272 | | web : http://inuweb.ih.lucent.com/~slgan | +--------------------------------------------------------+
Hi, I did not get any respond to this build error. How should I proceed with this ? Is there anything in the makefile I need to change ? I did not get this build error when I way compiling the 7.4b4. Thanks. Gan At 11:45 am -0600 2003/11/20, Seum-Lim Gan wrote: >Hi, > >I tried to compile the new 7.4 in Solaris 2.9 Sparc >and Solaris 2.8 intel and got the same make error: > >Solaris 8 intel: >================ >/opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o >typename.o descriptor.o data.o error.o prepare.o memory.o connect.o >misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes >-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib >-o libecpg.so.4.0 >cc: Warning: multiple use of -h option, previous one discarded. >ld: fatal: recording name conflict: file >`../../../../src/interfaces/libpq/libpq.so' and -h option provide >identical dependency names: read >ld: fatal: File processing errors. No output written to libecpg.so.4.0 >make[4]: *** [libecpg.so.4.0] Error 1 >make[4]: Leaving directory >`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg/ecpglib' >make[3]: *** [all] Error 2 >make[3]: Leaving directory >`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg' >make[2]: *** [all] Error 2 >make[2]: Leaving directory >`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces' >make[1]: *** [all] Error 2 >make[1]: Leaving directory >`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src' >make: *** [all] Error 2 > > >Solaris 9 Sparc: >================ >/opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o >typename.o descriptor.o data.o error.o prepare.o memory.o connect.o >misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes >-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib >-o libecpg.so.4.0 >cc: Warning: multiple use of -h option, previous one discarded. >ld: fatal: recording name conflict: file >`../../../../src/interfaces/libpq/libpq.so' and -h option provide >identical dependency names: read >ld: fatal: File processing errors. No output written to libecpg.so.4.0 >make[4]: *** [libecpg.so.4.0] Error 1 >make[4]: Leaving directory >`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib' >make[3]: *** [all] Error 2 >make[3]: Leaving directory >`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg' >make[2]: *** [all] Error 2 >make[2]: Leaving directory >`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces' >make[1]: *** [all] Error 2 >make[1]: Leaving directory >`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src' >make: *** [all] Error 2 > > >Could you help ? > >Thanks. > >Gan -- +--------------------------------------------------------+ | Seum-Lim GAN email : slgan@lucent.com | | Lucent Technologies | | 2000 N. Naperville Road, 6B-403F tel : (630)-713-6665 | | Naperville, IL 60566, USA. fax : (630)-713-7272 | | web : http://inuweb.ih.lucent.com/~slgan | +--------------------------------------------------------+
Hi Gan, do you have a chance to update your compiler? I just tried to build PostgreSQL 7.4 on Solaris 8 x86 using the Sun ONE Studio 8 compiler and it went through without problems. Most probably it should also be possible to adjust the cc switches somewhere in the makefiles or in the configure - maybe one of the PostgreSQL developers can help? Best regards, Joachim Seum-Lim Gan wrote: > Hi, > > I did not get any respond to this build error. > How should I proceed with this ? > Is there anything in the makefile I need to change ? > > I did not get this build error when I way compiling the 7.4b4. > > Thanks. > > Gan > > At 11:45 am -0600 2003/11/20, Seum-Lim Gan wrote: > >> Hi, >> >> I tried to compile the new 7.4 in Solaris 2.9 Sparc >> and Solaris 2.8 intel and got the same make error: >> >> Solaris 8 intel: >> ================ >> /opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o >> typename.o descriptor.o data.o error.o prepare.o memory.o connect.o >> misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes >> -L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib -o >> libecpg.so.4.0 >> cc: Warning: multiple use of -h option, previous one discarded. >> ld: fatal: recording name conflict: file >> `../../../../src/interfaces/libpq/libpq.so' and -h option provide >> identical dependency names: read >> ld: fatal: File processing errors. No output written to libecpg.so.4.0 >> make[4]: *** [libecpg.so.4.0] Error 1 >> make[4]: Leaving directory >> `/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg/ecpglib' >> >> make[3]: *** [all] Error 2 >> make[3]: Leaving directory >> `/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg' >> make[2]: *** [all] Error 2 >> make[2]: Leaving directory >> `/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces' >> make[1]: *** [all] Error 2 >> make[1]: Leaving directory >> `/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src' >> make: *** [all] Error 2 >> >> >> Solaris 9 Sparc: >> ================ >> /opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o >> typename.o descriptor.o data.o error.o prepare.o memory.o connect.o >> misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes >> -L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib -o >> libecpg.so.4.0 >> cc: Warning: multiple use of -h option, previous one discarded. >> ld: fatal: recording name conflict: file >> `../../../../src/interfaces/libpq/libpq.so' and -h option provide >> identical dependency names: read >> ld: fatal: File processing errors. No output written to libecpg.so.4.0 >> make[4]: *** [libecpg.so.4.0] Error 1 >> make[4]: Leaving directory >> `/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib' >> >> make[3]: *** [all] Error 2 >> make[3]: Leaving directory >> `/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg' >> make[2]: *** [all] Error 2 >> make[2]: Leaving directory >> `/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces' >> make[1]: *** [all] Error 2 >> make[1]: Leaving directory >> `/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src' >> make: *** [all] Error 2 >> >> >> Could you help ? >> >> Thanks. >> >> Gan > > -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - Joachim Gabler Tel: +49 941 3075-233 (x60233) Sun Microsystems GmbH Fax: +49 941 3075-222 (x60222) Dr.-Leo-Ritter-Str. 7 mailto:joga@sun.com D-93049 Regensburg http://www.sun.de
Hi Josh, Is there someone could look into this ? I have narrowed down the problem. Thanks. Gan This problem will only occur if I configure to use the --enable-thread-safety option. Here is the configure options I used: MYCC=/opt/SUNWspro6.2/SUNWspro/bin/cc /bin/env CC=$MYCC CFLAGS='-C -mt -D_SVR4 ' ./configure \ --prefix=/platdb \ --with-pgport=5333 \ --without-readline \ --with-CXX \ --with-perl \ --with-java \ --with-pam \ --enable-syslog \ --enable-nls \ --enable-thread-safety Wihout the --enable-thread-safety option, everything compiled fine. With --enable-thread-safety, it failed while trying to compile the src/interfaces/ecpg/ecpglib I have already cut down my configure to have just the following and compile failed the same way: MYCC=/opt/SUNWspro6.2/SUNWspro/bin/cc /bin/env CC=$MYCC CFLAGS='-C -mt -D_SVR4 ' ./configure \ --prefix=/platdb \ --without-readline \ --enable-thread-safety Below is the make output: make[4]: Entering directory `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib' /opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o typename.o descriptor.o data.o error.o prepare.o memory.o connect.o misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes -L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib -o libecpg.so.4.0 cc: Warning: multiple use of -h option, previous one discarded. ld: fatal: recording name conflict: file `../../../../src/interfaces/libpq/libpq.so' and -h option provide identical dependency names: read ld: fatal: File processing errors. No output written to libecpg.so.4.0 make[4]: *** [libecpg.so.4.0] Error 1 make[4]: Leaving directory `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib' make[3]: *** [all] Error 2 make[3]: Leaving directory `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg' make[2]: *** [all] Error 2 make[2]: Leaving directory `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces' make[1]: *** [all] Error 2 make[1]: Leaving directory `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src' make: *** [all] Error 2 At 2:44 pm -0600 2003/11/21, Seum-Lim Gan wrote: >Hi, > >I did not get any respond to this build error. >How should I proceed with this ? >Is there anything in the makefile I need to change ? > >I did not get this build error when I way compiling the 7.4b4. > >Thanks. > >Gan > >At 11:45 am -0600 2003/11/20, Seum-Lim Gan wrote: >>Hi, >> >>I tried to compile the new 7.4 in Solaris 2.9 Sparc >>and Solaris 2.8 intel and got the same make error: >> >>Solaris 8 intel: >>================ >>/opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o >>typename.o descriptor.o data.o error.o prepare.o memory.o connect.o >>misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes >>-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib >>-o libecpg.so.4.0 >>cc: Warning: multiple use of -h option, previous one discarded. >>ld: fatal: recording name conflict: file >>`../../../../src/interfaces/libpq/libpq.so' and -h option provide >>identical dependency names: read >>ld: fatal: File processing errors. No output written to libecpg.so.4.0 >>make[4]: *** [libecpg.so.4.0] Error 1 >>make[4]: Leaving directory >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg/ecpglib' >>make[3]: *** [all] Error 2 >>make[3]: Leaving directory >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg' >>make[2]: *** [all] Error 2 >>make[2]: Leaving directory >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces' >>make[1]: *** [all] Error 2 >>make[1]: Leaving directory >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src' >>make: *** [all] Error 2 >> >> >>Solaris 9 Sparc: >>================ >>/opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o >>typename.o descriptor.o data.o error.o prepare.o memory.o connect.o >>misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes >>-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib >>-o libecpg.so.4.0 >>cc: Warning: multiple use of -h option, previous one discarded. >>ld: fatal: recording name conflict: file >>`../../../../src/interfaces/libpq/libpq.so' and -h option provide >>identical dependency names: read >>ld: fatal: File processing errors. No output written to libecpg.so.4.0 >>make[4]: *** [libecpg.so.4.0] Error 1 >>make[4]: Leaving directory >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib' >>make[3]: *** [all] Error 2 >>make[3]: Leaving directory >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg' >>make[2]: *** [all] Error 2 >>make[2]: Leaving directory >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces' >>make[1]: *** [all] Error 2 >>make[1]: Leaving directory >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src' >>make: *** [all] Error 2 >> >> >>Could you help ? >> >>Thanks. >> >>Gan -- +--------------------------------------------------------+ | Seum-Lim GAN email : slgan@lucent.com | | Lucent Technologies | | 2000 N. Naperville Road, 6B-403F tel : (630)-713-6665 | | Naperville, IL 60566, USA. fax : (630)-713-7272 | | web : http://inuweb.ih.lucent.com/~slgan | +--------------------------------------------------------+
Sorry, I am baffled. The problem line appears to be: ld: fatal: recording name conflict: file `../../../../src/interfaces/libpq/libpq.so' and -h option provide identical dependency names: read --------------------------------------------------------------------------- Seum-Lim Gan wrote: > Hi Josh, > > Is there someone could look into this ? > I have narrowed down the problem. > > Thanks. > > Gan > > > This problem will only occur if I configure to use > the --enable-thread-safety option. > > Here is the configure options I used: > > MYCC=/opt/SUNWspro6.2/SUNWspro/bin/cc > > /bin/env CC=$MYCC CFLAGS='-C -mt -D_SVR4 ' ./configure \ > --prefix=/platdb \ > --with-pgport=5333 \ > --without-readline \ > --with-CXX \ > --with-perl \ > --with-java \ > --with-pam \ > --enable-syslog \ > --enable-nls \ > --enable-thread-safety > > Wihout the --enable-thread-safety option, everything compiled fine. > > With --enable-thread-safety, it failed while trying to compile the > src/interfaces/ecpg/ecpglib > > I have already cut down my configure to have just the following and > compile failed the same way: > > MYCC=/opt/SUNWspro6.2/SUNWspro/bin/cc > > /bin/env CC=$MYCC CFLAGS='-C -mt -D_SVR4 ' ./configure \ > --prefix=/platdb \ > --without-readline \ > --enable-thread-safety > > Below is the make output: > > make[4]: Entering directory > `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib' > /opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o > typename.o descriptor.o data.o error.o prepare.o memory.o connect.o > misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes > -L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib -o > libecpg.so.4.0 > cc: Warning: multiple use of -h option, previous one discarded. > ld: fatal: recording name conflict: file > `../../../../src/interfaces/libpq/libpq.so' and -h option provide > identical dependency names: read > ld: fatal: File processing errors. No output written to libecpg.so.4.0 > make[4]: *** [libecpg.so.4.0] Error 1 > make[4]: Leaving directory > `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib' > make[3]: *** [all] Error 2 > make[3]: Leaving directory > `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces' > make[1]: *** [all] Error 2 > make[1]: Leaving directory > `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src' > make: *** [all] Error 2 > > > At 2:44 pm -0600 2003/11/21, Seum-Lim Gan wrote: > >Hi, > > > >I did not get any respond to this build error. > >How should I proceed with this ? > >Is there anything in the makefile I need to change ? > > > >I did not get this build error when I way compiling the 7.4b4. > > > >Thanks. > > > >Gan > > > >At 11:45 am -0600 2003/11/20, Seum-Lim Gan wrote: > >>Hi, > >> > >>I tried to compile the new 7.4 in Solaris 2.9 Sparc > >>and Solaris 2.8 intel and got the same make error: > >> > >>Solaris 8 intel: > >>================ > >>/opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o > >>typename.o descriptor.o data.o error.o prepare.o memory.o connect.o > >>misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes > >>-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib > >>-o libecpg.so.4.0 > >>cc: Warning: multiple use of -h option, previous one discarded. > >>ld: fatal: recording name conflict: file > >>`../../../../src/interfaces/libpq/libpq.so' and -h option provide > >>identical dependency names: read > >>ld: fatal: File processing errors. No output written to libecpg.so.4.0 > >>make[4]: *** [libecpg.so.4.0] Error 1 > >>make[4]: Leaving directory > >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg/ecpglib' > >>make[3]: *** [all] Error 2 > >>make[3]: Leaving directory > >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg' > >>make[2]: *** [all] Error 2 > >>make[2]: Leaving directory > >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces' > >>make[1]: *** [all] Error 2 > >>make[1]: Leaving directory > >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src' > >>make: *** [all] Error 2 > >> > >> > >>Solaris 9 Sparc: > >>================ > >>/opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o > >>typename.o descriptor.o data.o error.o prepare.o memory.o connect.o > >>misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes > >>-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib > >>-o libecpg.so.4.0 > >>cc: Warning: multiple use of -h option, previous one discarded. > >>ld: fatal: recording name conflict: file > >>`../../../../src/interfaces/libpq/libpq.so' and -h option provide > >>identical dependency names: read > >>ld: fatal: File processing errors. No output written to libecpg.so.4.0 > >>make[4]: *** [libecpg.so.4.0] Error 1 > >>make[4]: Leaving directory > >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib' > >>make[3]: *** [all] Error 2 > >>make[3]: Leaving directory > >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg' > >>make[2]: *** [all] Error 2 > >>make[2]: Leaving directory > >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces' > >>make[1]: *** [all] Error 2 > >>make[1]: Leaving directory > >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src' > >>make: *** [all] Error 2 > >> > >> > >>Could you help ? > >> > >>Thanks. > >> > >>Gan > > -- > +--------------------------------------------------------+ > | Seum-Lim GAN email : slgan@lucent.com | > | Lucent Technologies | > | 2000 N. Naperville Road, 6B-403F tel : (630)-713-6665 | > | Naperville, IL 60566, USA. fax : (630)-713-7272 | > | web : http://inuweb.ih.lucent.com/~slgan | > +--------------------------------------------------------+ > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
Peter just committed this change the other day, seems relevant? CVSROOT: /cvsroot Module name: pgsql-server Changes by: petere@svr1.postgresql.org 03/11/24 09:11:27 Modified files: . : Tag: REL7_4_STABLE configure configure.in src/include : Tag: REL7_4_STABLE pg_config.h.in src/interfaces/ecpg/ecpglib: Tag: REL7_4_STABLE connect.c misc.c src/port : Tag: REL7_4_STABLE thread.c src/tools/thread: Tag: REL7_4_STABLE thread_test.c Log message: Rename USE_THREADS to ENABLE_THREAD_SAFETY to avoid name clash with Perl. Fixes compliation failure with --enable-thread-safety --with-perl and Perl 5.6.1. Robert Treat On Tue, 2003-11-25 at 00:19, Bruce Momjian wrote: > > Sorry, I am baffled. The problem line appears to be: > > ld: fatal: recording name conflict: file > `../../../../src/interfaces/libpq/libpq.so' and -h option provide > identical dependency names: read > > > --------------------------------------------------------------------------- > > Seum-Lim Gan wrote: > > Hi Josh, > > > > Is there someone could look into this ? > > I have narrowed down the problem. > > > > Thanks. > > > > Gan > > > > > > This problem will only occur if I configure to use > > the --enable-thread-safety option. > > > > Here is the configure options I used: > > > > MYCC=/opt/SUNWspro6.2/SUNWspro/bin/cc > > > > /bin/env CC=$MYCC CFLAGS='-C -mt -D_SVR4 ' ./configure \ > > --prefix=/platdb \ > > --with-pgport=5333 \ > > --without-readline \ > > --with-CXX \ > > --with-perl \ > > --with-java \ > > --with-pam \ > > --enable-syslog \ > > --enable-nls \ > > --enable-thread-safety > > > > Wihout the --enable-thread-safety option, everything compiled fine. > > > > With --enable-thread-safety, it failed while trying to compile the > > src/interfaces/ecpg/ecpglib > > > > I have already cut down my configure to have just the following and > > compile failed the same way: > > > > MYCC=/opt/SUNWspro6.2/SUNWspro/bin/cc > > > > /bin/env CC=$MYCC CFLAGS='-C -mt -D_SVR4 ' ./configure \ > > --prefix=/platdb \ > > --without-readline \ > > --enable-thread-safety > > > > Below is the make output: > > > > make[4]: Entering directory > > `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib' > > /opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o > > typename.o descriptor.o data.o error.o prepare.o memory.o connect.o > > misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes > > -L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib -o > > libecpg.so.4.0 > > cc: Warning: multiple use of -h option, previous one discarded. > > ld: fatal: recording name conflict: file > > `../../../../src/interfaces/libpq/libpq.so' and -h option provide > > identical dependency names: read > > ld: fatal: File processing errors. No output written to libecpg.so.4.0 > > make[4]: *** [libecpg.so.4.0] Error 1 > > make[4]: Leaving directory > > `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib' > > make[3]: *** [all] Error 2 > > make[3]: Leaving directory > > `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg' > > make[2]: *** [all] Error 2 > > make[2]: Leaving directory > > `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces' > > make[1]: *** [all] Error 2 > > make[1]: Leaving directory > > `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src' > > make: *** [all] Error 2 > > > > > > At 2:44 pm -0600 2003/11/21, Seum-Lim Gan wrote: > > >Hi, > > > > > >I did not get any respond to this build error. > > >How should I proceed with this ? > > >Is there anything in the makefile I need to change ? > > > > > >I did not get this build error when I way compiling the 7.4b4. > > > > > >Thanks. > > > > > >Gan > > > > > >At 11:45 am -0600 2003/11/20, Seum-Lim Gan wrote: > > >>Hi, > > >> > > >>I tried to compile the new 7.4 in Solaris 2.9 Sparc > > >>and Solaris 2.8 intel and got the same make error: > > >> > > >>Solaris 8 intel: > > >>================ > > >>/opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o > > >>typename.o descriptor.o data.o error.o prepare.o memory.o connect.o > > >>misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes > > >>-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib > > >>-o libecpg.so.4.0 > > >>cc: Warning: multiple use of -h option, previous one discarded. > > >>ld: fatal: recording name conflict: file > > >>`../../../../src/interfaces/libpq/libpq.so' and -h option provide > > >>identical dependency names: read > > >>ld: fatal: File processing errors. No output written to libecpg.so.4.0 > > >>make[4]: *** [libecpg.so.4.0] Error 1 > > >>make[4]: Leaving directory > > >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg/ecpglib' > > >>make[3]: *** [all] Error 2 > > >>make[3]: Leaving directory > > >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg' > > >>make[2]: *** [all] Error 2 > > >>make[2]: Leaving directory > > >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces' > > >>make[1]: *** [all] Error 2 > > >>make[1]: Leaving directory > > >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src' > > >>make: *** [all] Error 2 > > >> > > >> > > >>Solaris 9 Sparc: > > >>================ > > >>/opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o > > >>typename.o descriptor.o data.o error.o prepare.o memory.o connect.o > > >>misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes > > >>-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib > > >>-o libecpg.so.4.0 > > >>cc: Warning: multiple use of -h option, previous one discarded. > > >>ld: fatal: recording name conflict: file > > >>`../../../../src/interfaces/libpq/libpq.so' and -h option provide > > >>identical dependency names: read > > >>ld: fatal: File processing errors. No output written to libecpg.so.4.0 > > >>make[4]: *** [libecpg.so.4.0] Error 1 > > >>make[4]: Leaving directory > > >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib' > > >>make[3]: *** [all] Error 2 > > >>make[3]: Leaving directory > > >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg' > > >>make[2]: *** [all] Error 2 > > >>make[2]: Leaving directory > > >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces' > > >>make[1]: *** [all] Error 2 > > >>make[1]: Leaving directory > > >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src' > > >>make: *** [all] Error 2 > > >> > > >> > > >>Could you help ? > > >> > > >>Thanks. > > >> > > >>Gan > > > > -- > > +--------------------------------------------------------+ > > | Seum-Lim GAN email : slgan@lucent.com | > > | Lucent Technologies | > > | 2000 N. Naperville Road, 6B-403F tel : (630)-713-6665 | > > | Naperville, IL 60566, USA. fax : (630)-713-7272 | > > | web : http://inuweb.ih.lucent.com/~slgan | > > +--------------------------------------------------------+ > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 4: Don't 'kill -9' the postmaster > > > > -- > Bruce Momjian | http://candle.pha.pa.us > pgman@candle.pha.pa.us | (610) 359-1001 > + If your life is a hard drive, | 13 Roberts Road > + Christ can be your backup. | Newtown Square, Pennsylvania 19073 > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) -- Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL
Hi, Is the committed change available yet ? I went to the mirrors site but could not see any packages like this. Where should I get it from ? Thanks. Gan At 9:59 am -0500 2003/11/25, Robert Treat wrote: >Peter just committed this change the other day, seems relevant? > > >CVSROOT: /cvsroot >Module name: pgsql-server >Changes by: petere@svr1.postgresql.org 03/11/24 09:11:27 > >Modified files: > . : Tag: REL7_4_STABLE configure configure.in > src/include : Tag: REL7_4_STABLE pg_config.h.in > src/interfaces/ecpg/ecpglib: Tag: REL7_4_STABLE connect.c misc.c > src/port : Tag: REL7_4_STABLE thread.c > src/tools/thread: Tag: REL7_4_STABLE thread_test.c > >Log message: > Rename USE_THREADS to ENABLE_THREAD_SAFETY to avoid name clash >with Perl. > Fixes compliation failure with --enable-thread-safety >--with-perl and Perl > 5.6.1. > > >Robert Treat > > >On Tue, 2003-11-25 at 00:19, Bruce Momjian wrote: >> >> Sorry, I am baffled. The problem line appears to be: >> >> ld: fatal: recording name conflict: file >> `../../../../src/interfaces/libpq/libpq.so' and -h option provide >> identical dependency names: read >> >> >> --------------------------------------------------------------------------- >> >> Seum-Lim Gan wrote: >> > Hi Josh, >> > >> > Is there someone could look into this ? >> > I have narrowed down the problem. >> > >> > Thanks. >> > >> > Gan >> > >> > >> > This problem will only occur if I configure to use >> > the --enable-thread-safety option. >> > >> > Here is the configure options I used: >> > >> > MYCC=/opt/SUNWspro6.2/SUNWspro/bin/cc >> > >> > /bin/env CC=$MYCC CFLAGS='-C -mt -D_SVR4 ' ./configure \ >> > --prefix=/platdb \ >> > --with-pgport=5333 \ >> > --without-readline \ >> > --with-CXX \ >> > --with-perl \ >> > --with-java \ >> > --with-pam \ >> > --enable-syslog \ >> > --enable-nls \ >> > --enable-thread-safety >> > >> > Wihout the --enable-thread-safety option, everything compiled fine. >> > >> > With --enable-thread-safety, it failed while trying to compile the >> > src/interfaces/ecpg/ecpglib >> > >> > I have already cut down my configure to have just the following and >> > compile failed the same way: >> > >> > MYCC=/opt/SUNWspro6.2/SUNWspro/bin/cc >> > >> > /bin/env CC=$MYCC CFLAGS='-C -mt -D_SVR4 ' ./configure \ >> > --prefix=/platdb \ >> > --without-readline \ >> > --enable-thread-safety >> > >> > Below is the make output: >> > >> > make[4]: Entering directory >> > >>`/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib' >> > /opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o >> > typename.o descriptor.o data.o error.o prepare.o memory.o connect.o >> > misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes >> > -L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib -o >> > libecpg.so.4.0 >> > cc: Warning: multiple use of -h option, previous one discarded. >> > ld: fatal: recording name conflict: file >> > `../../../../src/interfaces/libpq/libpq.so' and -h option provide >> > identical dependency names: read >> > ld: fatal: File processing errors. No output written to libecpg.so.4.0 >> > make[4]: *** [libecpg.so.4.0] Error 1 >> > make[4]: Leaving directory >> > >>`/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib' >> > make[3]: *** [all] Error 2 >> > make[3]: Leaving directory >> > `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg' >> > make[2]: *** [all] Error 2 >> > make[2]: Leaving directory >> > `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces' >> > make[1]: *** [all] Error 2 >> > make[1]: Leaving directory >> > `/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src' >> > make: *** [all] Error 2 >> > >> > >> > At 2:44 pm -0600 2003/11/21, Seum-Lim Gan wrote: >> > >Hi, >> > > >> > >I did not get any respond to this build error. > > > >How should I proceed with this ? >> > >Is there anything in the makefile I need to change ? >> > > >> > >I did not get this build error when I way compiling the 7.4b4. >> > > >> > >Thanks. >> > > >> > >Gan >> > > >> > >At 11:45 am -0600 2003/11/20, Seum-Lim Gan wrote: >> > >>Hi, >> > >> >> > >>I tried to compile the new 7.4 in Solaris 2.9 Sparc >> > >>and Solaris 2.8 intel and got the same make error: >> > >> >> > >>Solaris 8 intel: >> > >>================ >> > >>/opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o >> > >>typename.o descriptor.o data.o error.o prepare.o memory.o connect.o >> > >>misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes >> > >>-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib >> > >>-o libecpg.so.4.0 >> > >>cc: Warning: multiple use of -h option, previous one discarded. >> > >>ld: fatal: recording name conflict: file >> > >>`../../../../src/interfaces/libpq/libpq.so' and -h option provide >> > >>identical dependency names: read >> > >>ld: fatal: File processing errors. No output written to libecpg.so.4.0 >> > >>make[4]: *** [libecpg.so.4.0] Error 1 >> > >>make[4]: Leaving directory >> > >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg/ecpglib' >> > >>make[3]: *** [all] Error 2 >> > >>make[3]: Leaving directory >> > >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg' >> > >>make[2]: *** [all] Error 2 >> > >>make[2]: Leaving directory >> > >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces' >> > >>make[1]: *** [all] Error 2 >> > >>make[1]: Leaving directory >> > >>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src' >> > >>make: *** [all] Error 2 >> > >> >> > >> >> > >>Solaris 9 Sparc: >> > >>================ >> > >>/opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o >> > >>typename.o descriptor.o data.o error.o prepare.o memory.o connect.o >> > >>misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes >> > >>-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib >> > >>-o libecpg.so.4.0 >> > >>cc: Warning: multiple use of -h option, previous one discarded. >> > >>ld: fatal: recording name conflict: file >> > >>`../../../../src/interfaces/libpq/libpq.so' and -h option provide >> > >>identical dependency names: read >> > >>ld: fatal: File processing errors. No output written to libecpg.so.4.0 >> > >>make[4]: *** [libecpg.so.4.0] Error 1 >> > >>make[4]: Leaving directory >> > >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib' >> > >>make[3]: *** [all] Error 2 >> > >>make[3]: Leaving directory >> > >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg' >> > >>make[2]: *** [all] Error 2 >> > >>make[2]: Leaving directory >> > >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces' >> > >>make[1]: *** [all] Error 2 >> > >>make[1]: Leaving directory >> > >>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src' >> > >>make: *** [all] Error 2 >> > >> >> > >> >> > >>Could you help ? >> > >> >> > >>Thanks. >> > >> >> > >>Gan >> > >> > -- >> > +--------------------------------------------------------+ >> > | Seum-Lim GAN email : slgan@lucent.com | >> > | Lucent Technologies | >> > | 2000 N. Naperville Road, 6B-403F tel : (630)-713-6665 | >> > | Naperville, IL 60566, USA. fax : (630)-713-7272 | >> > | web : http://inuweb.ih.lucent.com/~slgan | >> > +--------------------------------------------------------+ >> > >> > ---------------------------(end of broadcast)--------------------------- >> > TIP 4: Don't 'kill -9' the postmaster >> > >> >> -- >> Bruce Momjian | http://candle.pha.pa.us >> pgman@candle.pha.pa.us | (610) 359-1001 >> + If your life is a hard drive, | 13 Roberts Road >> + Christ can be your backup. | Newtown Square, Pennsylvania 19073 >> >> ---------------------------(end of broadcast)--------------------------- >> TIP 2: you can get off all lists at once with the unregister command >> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > >-- >Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL -- +--------------------------------------------------------+ | Seum-Lim GAN email : slgan@lucent.com | | Lucent Technologies | | 2000 N. Naperville Road, 6B-403F tel : (630)-713-6665 | | Naperville, IL 60566, USA. fax : (630)-713-7272 | | web : http://inuweb.ih.lucent.com/~slgan | +--------------------------------------------------------+
Seum-Lim Gan wrote: > Hi, > > Is the committed change available yet ? > > I went to the mirrors site but could not see any > packages like this. Where should I get it from ? Right now it is only in the daily snapshot in the /dev directory of the ftp server. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
Hi Bruce, Thanks. I will just get those few files and replace them in the 7.4 base and try the compile again. Gan At 12:01 pm -0500 2003/11/25, Bruce Momjian wrote: >Seum-Lim Gan wrote: >> Hi, >> >> Is the committed change available yet ? >> >> I went to the mirrors site but could not see any >> packages like this. Where should I get it from ? > >Right now it is only in the daily snapshot in the /dev directory of the >ftp server. > >-- > Bruce Momjian | http://candle.pha.pa.us > pgman@candle.pha.pa.us | (610) 359-1001 > + If your life is a hard drive, | 13 Roberts Road > + Christ can be your backup. | Newtown Square, Pennsylvania 19073 -- +--------------------------------------------------------+ | Seum-Lim GAN email : slgan@lucent.com | | Lucent Technologies | | 2000 N. Naperville Road, 6B-403F tel : (630)-713-6665 | | Naperville, IL 60566, USA. fax : (630)-713-7272 | | web : http://inuweb.ih.lucent.com/~slgan | +--------------------------------------------------------+
Robert Treat writes: > Peter just committed this change the other day, seems relevant? No. -- Peter Eisentraut peter_e@gmx.net