Thread: 8.0.0 beta failed to build on mac os x
I googled a bit and it seems that this error is caused by global variables that are either not initialized or not declared extern. gcc -no-cpp-precomp -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -I. -I../../../src/include -I../../../src/port -DFRONTEND -c -o thread.o thread.c ar crs libpq.a `lorder fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o fe-protocol2.o fe-protocol3.o pqexpbuffer.o pqsignal.o fe-secure.o dllist.o md5.o ip.o wchar.o encnames.o noblock.o pgstrcasecmp.o thread.o | tsort` tsort: cycle in data tsort: fe-exec.o tsort: fe-protocol2.o tsort: fe-connect.o tsort: fe-protocol3.o tsort: cycle in data tsort: fe-exec.o tsort: fe-protocol2.o tsort: cycle in data tsort: fe-exec.o tsort: fe-misc.o tsort: cycle in data tsort: fe-auth.o tsort: fe-connect.o ranlib libpq.a gcc -no-cpp-precomp -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -dynamiclib -install_name /Users/cclark/Desktop/pgsql/lib/libpq.3.dylib -compatibility_version 3 -current_version 3.2 -multiply_defined suppress fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o fe-protocol2.o fe-protocol3.o pqexpbuffer.o pqsignal.o fe-secure.o dllist.o md5.o ip.o wchar.o encnames.o noblock.o pgstrcasecmp.o thread.o -L../../../src/port -lresolv -o libpq.3.2.dylib ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option fe-secure.o definition of common _thread_in_send (size 4) /usr/bin/libtool: internal link edit command failed make[3]: *** [libpq.3.2.dylib] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all] Error 2 make: *** [all] Error 2 CliffMac:~/Desktop/postgresql-8.0.0beta1 cclark$