Re: Freebsd410 and postgresql803: src/port compile error - Mailing list pgsql-bugs

From Darcy Buskermolen
Subject Re: Freebsd410 and postgresql803: src/port compile error
Date
Msg-id 200508151034.59603.darcy@wavefire.com
Whole thread Raw
In response to Re: Freebsd410 and postgresql803: src/port compile error  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Freebsd410 and postgresql803: src/port compile error
List pgsql-bugs
On Sunday 14 August 2005 21:30, Bruce Momjian wrote:
> Jim C. Nasby wrote:
> > I believe that thread safety isn't supported on *BSD. I know that
> > there's issues with building in python support if python was compiled
> > with threads enabled.
> >
> > On Fri, Aug 05, 2005 at 02:47:27PM +0200, rmkml wrote:
> > > Hi,
> > >
> > > I have an error when postgresql 803 compile with flag :
> > >
> > > ./configure --prefix=/usr/local/postgres --enable-thread-safety
> > >
> > > ...
> > > gmake[4]: Leaving directory `/var/tmp/postgresql-8.0.3/src/port'
> > > gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -fno-strict-aliasing
> > > initdb.o  -L../../../src/port -lpgport -L../../../src/interfaces/libpq
> > > -lpq -L../../../src/port  -Wl,-R/usr/local/postgres/lib -lpgport -lz
> > > -lreadline -lcrypt -lcompat -lm -lutil  -o initdb
> > > ../../../src/interfaces/libpq/libpq.so: undefined reference to
> > > `pthread_sigmask'
> > > ../../../src/interfaces/libpq/libpq.so: undefined reference to
> > > `pthread_mutex_unlock'
> > > ../../../src/interfaces/libpq/libpq.so: undefined reference to
> > > `pthread_mutex_lock'
>
> No, I think it should work.  If it passes the thread tests in configure,
> it should compile.  I am unsure why it is failing.

it's missing a link to the threading libs -pthread


--
Darcy Buskermolen
Wavefire Technologies Corp.

http://www.wavefire.com
ph: 250.717.0200
fx: 250.763.1759

pgsql-bugs by date:

Previous
From: "William ZHANG"
Date:
Subject: Re: BUG #1815: ECPGdebug causes crash on Windows XP
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Freebsd410 and postgresql803: src/port compile error