dbTalk Databases Forums  

Re: [BUGS] Freebsd and postgresql 748: pg_dump compile error

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] Freebsd and postgresql 748: pg_dump compile error in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bruce Momjian
 
Posts: n/a

Default Re: [BUGS] Freebsd and postgresql 748: pg_dump compile error - 07-11-2005 , 11:33 PM







That shouldn't happen, and I know others are using threading on FreeBSD
on that version. To fix it, try adding -lpthread to the link line of
pg_dump, or try PostgreSQL 8.0.X.

---------------------------------------------------------------------------

rmkml wrote:
Quote:
Hi,

I have an error when postgresql compile with flag :

./configure --prefix=/usr/local/postgres --enable-thread-safety

make
...
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -I../../../src/interfaces/libpq
-I../../../src/include -DBINDIR=\"/usr/local/postgres/bin\" -c -o
dumputils.o dumputils.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations pg_dump.o common.o pg_backup_archiver.o
pg_backup_db.o pg_backup_custom.o pg_backup_files.o pg_backup_null.o
pg_backup_tar.o dumputils.o ../../../src/backend/parser/keywords.o
-L../../../src/interfaces/libpq -lpq -L../../../src/port
-R/usr/local/postgres/lib -lz -lreadline -lcrypt -lcompat -lm -lutil
-lpgport -o pg_dump
../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_mutex_unlock'
../../../src/interfaces/libpq/libpq.so: undefined reference to
`pthread_mutex_lock'
gmake[3]: *** [pg_dump] Error 1
gmake[3]: Leaving directory `/var/tmp/postgresql-7.4.8/src/bin/pg_dump'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/var/tmp/postgresql-7.4.8/src/bin'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/var/tmp/postgresql-7.4.8/src'
gmake: *** [all] Error 2
*** Error code 2

Stop in /var/tmp/postgresql-7.4.8.


Compile error on pg_dump?

Regards
Rmkml

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

--
Bruce Momjian | http://candle.pha.pa.us
pgman (AT) candle (DOT) pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.