lists at webtent.net
Tue Sep 28 00:00:43 UTC 2010
On 9/27/2010 7:07 PM, Samuel Martín Moro wrote:
> On Tue, Sep 28, 2010 at 12:40 AM, Robert Fitzpatrick <lists at webtent.net
> <mailto:lists at webtent.net>> wrote:
> Getting this error when trying to install the port...
> pgbench.o(.text+0x2b0a): In function `main':
> : undefined reference to `pthread_create'
> gmake: *** [pgbench] Error 1
> gmake: Leaving directory
> gmake: *** [all] Error 2
> *** Error code 2
> Would it have anything to do with any of these ports built with threads:
> db2# grep -ir thread /var/db/ports
> Thanks for any help.
> freebsd-ports at freebsd.org <mailto:freebsd-ports at freebsd.org> mailing
> To unsubscribe, send any mail to
> "freebsd-ports-unsubscribe at freebsd.org
> <mailto:freebsd-ports-unsubscribe at freebsd.org>"
> obviously, the binary is not compiled with the required library.
> is pgbench correctly linked with pthread lib (-lpthread)
> is pthread lib file actually there (in /usr/lib/, libpthread.so and
> adding to -lpthread the -L/usr/lib option might also help
> if that doesn't help, can you send a link to the complete output of
Thanks, but I moved into the work/postgresql-9.0.0 directory and did
'make' there and all compiled and installed fine.
More information about the freebsd-ports