Thread: 7.4 build error in Solaris
Hi everyone, I encountered the following build error when building PostgreSQL 7.4 in Solaris 9 using SUN workshop. Any idea what to do here ? Gan "pl_funcs.c", line 403: warning: argument #1 is incompatible with prototype: prototype: pointer to const unsigned char : "../../../../src/include/mb/ pg_wchar.h", line 291 argument : pointer to char UX tsort: INFORM: cycle in data pl_comp.o pl_gram.o "plperl.c", line 317: undefined symbol: thr "plperl.c", line 317: left operand of "->" must be pointer to struct/union "plperl.c", line 323: left operand of "->" must be pointer to struct/union "plperl.c", line 323: left operand of "->" must be pointer to struct/union "plperl.c", line 323: left operand of "->" must be pointer to struct/union "plperl.c", line 323: left operand of "->" must be pointer to struct/union "plperl.c", line 437: undefined symbol: thr "plperl.c", line 437: left operand of "->" must be pointer to struct/union "plperl.c", line 443: left operand of "->" must be pointer to struct/union "plperl.c", line 443: left operand of "->" must be pointer to struct/union "plperl.c", line 443: left operand of "->" must be pointer to struct/union "plperl.c", line 443: left operand of "->" must be pointer to struct/union cc: acomp failed for plperl.c make[3]: *** [plperl.o] Error 2 make[2]: *** [all] Error 2 make[1]: *** [all] Error 2 -- +--------------------------------------------------------+ | 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 <slgan@lucent.com> writes: > I encountered the following build error when building PostgreSQL 7.4 > in Solaris 9 using SUN workshop. Any idea what to do here ? Is CVS tip any better? I think this fix might be relevant: 2003-11-24 08:11 petere * configure, configure.in, src/include/pg_config.h.in, src/interfaces/ecpg/ecpglib/connect.c, src/interfaces/ecpg/ecpglib/misc.c, src/port/thread.c, src/tools/thread/thread_test.c (REL7_4_STABLE): 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. regards, tom lane
Hi Tom, Yes this is helpful. I will do the change and recompile and let you know the result. Thanks. Gan At 12:09 pm -0500 2003/12/8, Tom Lane wrote: >Seum-Lim Gan <slgan@lucent.com> writes: >> I encountered the following build error when building PostgreSQL 7.4 >> in Solaris 9 using SUN workshop. Any idea what to do here ? > >Is CVS tip any better? I think this fix might be relevant: > >2003-11-24 08:11 petere > > * configure, configure.in, src/include/pg_config.h.in, > src/interfaces/ecpg/ecpglib/connect.c, > src/interfaces/ecpg/ecpglib/misc.c, src/port/thread.c, > src/tools/thread/thread_test.c (REL7_4_STABLE): 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. > > regards, tom lane > >---------------------------(end of broadcast)--------------------------- >TIP 6: Have you searched our list archives? > > http://archives.postgresql.org -- +--------------------------------------------------------+ | 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 | +--------------------------------------------------------+