i386/146187: postgresql83-server doesn't compile when linked with ldap

gab korsani at free.fr
Fri Apr 30 14:30:02 UTC 2010


>Number:         146187
>Category:       i386
>Synopsis:       postgresql83-server doesn't compile when linked with ldap
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 30 14:30:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     gab
>Release:        8.0
>Organization:
>Environment:
FreeBSD corum.korsani.cashew 8.0-RELEASE FreeBSD 8.0-RELEASE #2: Tue Feb  9 20:53:45 CET 2010     root at corum.korsani.cashew:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
postgresql83-server failed to build :
root at corum:/var/tmp/usr/ports/databases/postgresql83-server/work/postgresql-8.3.9/src/bin/pg_ctl# gmake
gmake -C ../../../src/interfaces/libpq all
gmake[1]: entrant dans le répertoire « /var/tmp/usr/ports/databases/postgresql83-server/work/postgresql-8.3.9/src/interfaces/libpq »
gmake[1]: Rien à faire pour « all ».
gmake[1]: quittant le répertoire « /var/tmp/usr/ports/databases/postgresql83-server/work/postgresql-8.3.9/src/interfaces/libpq »
gmake -C ../../../src/port all
gmake[1]: entrant dans le répertoire « /var/tmp/usr/ports/databases/postgresql83-server/work/postgresql-8.3.9/src/port »
gmake[1]: Rien à faire pour « all ».
gmake[1]: quittant le répertoire « /var/tmp/usr/ports/databases/postgresql83-server/work/postgresql-8.3.9/src/port »
cc -O2 -pipe -msse2 -m3dnow -mmmx -march=pentium4 -DLDAP_DEPRECATED -fno-strict-aliasing -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv pg_ctl.o  -L../../../src/port -lpgport -L../../../src/interfaces/libpq -lpq -L../../../src/port -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib  -L/usr/local/lib -Wl,-R'/usr/local/lib' -lpgport -lintl -lxml2 -lpam -lssl -lcrypto -lz -lreadline -lcrypt -lm  -o pg_ctl
/usr/local/lib/libldap_r-2.3.so.2: undefined reference to `pthread_create'
/usr/local/lib/libldap_r-2.3.so.2: undefined reference to `pthread_setconcurrency'
/usr/local/lib/libldap_r-2.3.so.2: undefined reference to `pthread_getconcurrency'
gmake: *** [pg_ctl] Erreur 1



>How-To-Repeat:

>Fix:
(dirty) solution : in the Makefile of postgresql-8.3.9/src/bin/pg_ctl :

pg_ctl: $(OBJS) $(libpq_builddir)/libpq.a
    $(CC) $(CFLAGS) -pthread $(OBJS) $(libpq_pgport) $(LDFLAGS) $(LIBS) -o $@$(X)

(added : -pthread)

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-i386 mailing list