Re: Compilation issue with --enable-thread-safety
От | Bruce Momjian |
---|---|
Тема | Re: Compilation issue with --enable-thread-safety |
Дата | |
Msg-id | 200402290113.i1T1DUY05563@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Compilation issue with --enable-thread-safety ("Rajan Bhide" <rbhide@nulinkinc.com>) |
Список | pgsql-novice |
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: > 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@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 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
В списке pgsql-novice по дате отправления: