From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | rmkml <rmkml(at)free(dot)fr> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Freebsd and postgresql 748: pg_dump compile error |
Date: | 2005-07-12 04:29:43 |
Message-ID: | 200507120429.j6C4Th219892@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
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:
> 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(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Sham Rao | 2005-07-12 04:59:36 | BUG #1763: PAM Authentication not working... |
Previous Message | rmkml | 2005-07-11 21:39:33 | Freebsd and postgresql 748: pg_dump compile error |