dbTalk Databases Forums  

Compilation issue with --enable-thread-safety

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Compilation issue with --enable-thread-safety in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rajan Bhide
 
Posts: n/a

Default Compilation issue with --enable-thread-safety - 02-23-2004 , 06:46 AM






Hello Frds,

I am getting following error while compiling Postgres7.4 or Postgres7.4.1 with option --enable-thread-safety

Details
/configure --prefix=/usr/local/pgsql74 --enable-thread-safety cc=/export/home/uxapps/workshop/SUNWspro/bin/cc CFLAGS='-mt' --without-readline

Platform Info:
uname -m = sun4u
uname -r = 5.8
uname -s = SunOS
uname -v = Generic_108528-09

I am using gmake
GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.6


cc -Xa -G -h libecpg.so.4 execute.o typename.o descriptor.o data.o error.o prepa
re.o memory.o connect.o misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes
-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/usr/local/pgsql74/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
gmake[4]: *** [libecpg.so.4.0] Error 1
gmake[4]: Leaving directory `/home/rbhide/utilities/postgres-7.4/src/interfaces/
ecpg/ecpglib'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory `/home/rbhide/utilities/postgres-7.4/src/interfaces/
ecpg'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/rbhide/utilities/postgres-7.4/src/interfaces'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/rbhide/utilities/postgres-7.4/src'
gmake: *** [all] Error 2


If I remove --enable-thread-safety I am able to compile my code properly.

Is this a BUG or I am missing somethg.

Plz do comment.

Thanks,
Rajan Bhide



Reply With Quote
  #2  
Old   
Bruce Momjian
 
Posts: n/a

Default Re: Compilation issue with --enable-thread-safety - 02-28-2004 , 07:13 PM







OK, I am attaching our updated solaris template file that goes in
src/template/solaris. This fix will be in 7.4.2.

---------------------------------------------------------------------------

Rajan Bhide wrote:
Quote:
Hello Frds,

I am getting following error while compiling Postgres7.4 or Postgres7.4.1 with option --enable-thread-safety

Details
/configure --prefix=/usr/local/pgsql74 --enable-thread-safety cc=/export/home/uxapps/workshop/SUNWspro/bin/cc CFLAGS='-mt' --without-readline

Platform Info:
uname -m = sun4u
uname -r = 5.8
uname -s = SunOS
uname -v = Generic_108528-09

I am using gmake
GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.6


cc -Xa -G -h libecpg.so.4 execute.o typename.o descriptor.o data.o error.o prepa
re.o memory.o connect.o misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes
-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/usr/local/pgsql74/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
gmake[4]: *** [libecpg.so.4.0] Error 1
gmake[4]: Leaving directory `/home/rbhide/utilities/postgres-7.4/src/interfaces/
ecpg/ecpglib'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory `/home/rbhide/utilities/postgres-7.4/src/interfaces/
ecpg'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/rbhide/utilities/postgres-7.4/src/interfaces'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/rbhide/utilities/postgres-7.4/src'
gmake: *** [all] Error 2


If I remove --enable-thread-safety I am able to compile my code properly.

Is this a BUG or I am missing somethg.

Plz do comment.

Thanks,
Rajan Bhide

--
Bruce Momjian | http://candle.pha.pa.us
pgman (AT) candle (DOT) 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

if test "$GCC" != yes ; then
CC="$CC -Xa" # relaxed ISO C mode
CFLAGS="-O -v" # -v is like gcc -Wall
fi

# Pick right test-and-set (TAS) code.
case $host in
sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
esac

THREAD_SUPPORT=yes
NEED_REENTRANT_FUNCS=yes # 5.6 2003-09-13
if test "$GCC" = yes
then THREAD_LIBS="-pthread"
else THREAD_CPPFLAGS="-mt"
THREAD_LIBS="-lpthread"
fi



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.