UnixWare/CVS Tip/initdb.c needs to use threads flags...

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: UnixWare/CVS Tip/initdb.c needs to use threads flags...
Date: 2004-03-18 21:24:43
Message-ID: 532760000.1079645083@lerlaptop-red.iadfw.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

I attempted(!) to compile up CVS Head, and if you --enable-thread-safety,
you need to include the THREADS stuff to cc:

gmake[4]: Leaving directory `/home/ler/pg-dev/pgsql/src/port'
cc -O -Kinline initdb.o -L../../../src/interfaces/libpq -lpq
-L../../../src/port -L/usr/local/lib -Wl,-R/usr/local/pgsql/lib -lz
-lreadline -ltermcap -lresolv -lgen -lld -lsocket -lnsl -ldl -lm -lpgport
-o initdb
Undefined first referenced
symbol in file
pthread_getspecific libpq.so
pthread_key_create libpq.so
pthread_once libpq.so
pthread_setspecific libpq.so
UX:ld: ERROR: Symbol referencing errors. No output written to initdb
gmake[3]: *** [initdb] Error 1
gmake[3]: Leaving directory `/home/ler/pg-dev/pgsql/src/bin/initdb'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/ler/pg-dev/pgsql/src/bin'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/ler/pg-dev/pgsql/src'
gmake: *** [all] Error 2
$

Otherwise we don't pick up the threads library where the pthread_* routines
are defined.

(I sent the defines we need in src/template/unixware to Bruce already).

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-03-18 21:28:36 Broken code in pquery.c
Previous Message Tom Lane 2004-03-18 21:13:14 Re: compile warning in CVS HEAD

Browse pgsql-patches by date

  From Date Subject
Next Message Larry Rosenman 2004-03-18 21:42:14 UnixWare Thread Patch (and test_fsync)
Previous Message Tom Lane 2004-03-18 21:13:14 Re: compile warning in CVS HEAD