Re: Freebsd410 and postgresql803: src/port compile error

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Darcy Buskermolen <darcy(at)wavefire(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, decibel(at)decibel(dot)org, rmkml <rmkml(at)free(dot)fr>
Subject: Re: Freebsd410 and postgresql803: src/port compile error
Date: 2005-08-16 00:00:47
Message-ID: 20050816000047.GP78011@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, Aug 15, 2005 at 10:34:59AM -0700, Darcy Buskermolen wrote:
> 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

http://lnk.nu/pgbuildfarm.org/3ks.pl

Note that the build before (without --enable-thread-safety) at least
made it through configure.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com 512-569-9461

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2005-08-16 00:35:45 Re: Freebsd410 and postgresql803: src/port compile error
Previous Message Darcy Buskermolen 2005-08-15 17:34:59 Re: Freebsd410 and postgresql803: src/port compile error