Date: Thu, 21 Jun 2012 14:19:12 GMT From: Dan McGregor <dan.mcgregor@usask.ca> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/169295: netatalk 2.2.3 builds fails afpd Message-ID: <201206211419.q5LEJCR4003053@red.freebsd.org> Resent-Message-ID: <201206211420.q5LEK87O004680@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 169295 >Category: ports >Synopsis: netatalk 2.2.3 builds fails afpd >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 21 14:20:08 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Dan McGregor >Release: 9.0-STABLE >Organization: >Environment: FreeBSD shadrach.dyndns.org 9.0-STABLE FreeBSD 9.0-STABLE #5 r237157M: Sat Jun 16 10:33:36 CST 2012 dan@shadrach.dyndns.org:/usr/obj/usr/src/sys/SHADRACH amd64 >Description: When building netatalk with clang as cc (I haven't tried with GCC), afpd fails to link with the following error: libtool: link: cc -I../../include -I../../sys -I/usr/local/include -DAPPLCNAME -DSERVERTEXT=\"/usr/local/etc/msg/\" -D_PATH_AFPDDEFVOL=\"/usr/local/etc/AppleVolumes.default\" -D_PATH_AFPDSYSVOL=\"/usr/local/etc/AppleVolumes.system\" -D_PATH_AFPDPWFILE=\"/usr/local/etc/afppasswd\" -D_PATH_AFPDCONF=\"/usr/local/etc/afpd.conf\" -D_PATH_AFPDSIGCONF=\"/usr/local/etc/afp_signature.conf\" -D_PATH_AFPDUAMPATH=\"/usr/local/libexec/netatalk-uams/\" -D_PATH_ACL_LDAPCONF=\"/usr/local/etc/afp_ldap.conf\" -D_PATH_AFPDUUIDCONF=\"/usr/local/etc/afp_voluuid.conf\" -I../../include "-D_U_=__attribute__((unused))" -O2 -pipe -I/usr/local/include -fno-strict-aliasing -I../../sys -o afpd afpd-afp_asp.o afpd-afp_avahi.o afpd-afp_config.o afpd-afp_dsi.o afpd-afp_mdns.o afpd-afp_options.o afpd-afp_util.o afpd-afp_zeroconf.o afpd-afprun.o afpd-afs.o afpd-appl.o afpd-auth.o afpd-catsearch.o afpd-desktop.o afpd-dircache.o afpd-directory.o afpd-enumerate.o afpd-extattrs.o afpd-fce_api.o afpd-fce_util.o afpd-file. o afpd-filedir.o afpd-fork.o afpd-gettok.o afpd-hash.o afpd-main.o afpd-mangle.o afpd-messages.o afpd-nfsquota.o afpd-ofork.o afpd-quota.o afpd-status.o afpd-switch.o afpd-uam.o afpd-uid.o afpd-unix.o afpd-volume.o afpd-acls.o -Wl,--export-dynamic -L/usr/local/lib ../../libatalk/cnid/.libs/libcnid.a -L../../../libatalk -L../../libatalk ../../libatalk/.libs/libatalk.a -L../libatalk /usr/local/lib/libgcrypt.so /usr/local/lib/libgpg-error.so /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -ldns_sd /usr/local/lib/libslp.so -lcrypto -lwrap -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib afpd-file.o: In function `afp_exchangefiles': file.c:(.text+0x3305): warning: warning: mktemp() possibly used unsafely; consider using mkstemp() afpd-afp_mdns.o: In function `md_zeroconf_register': afp_mdns.c:(.text+0x775): undefined reference to `pthread_create' cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[3]: *** [afpd] Erreur 1 gmake[3] : on quitte le répertoire « /usr/obj/usr/ports/net/netatalk/work/netatalk-2.2.3/etc/afpd » gmake[2]: *** [all-recursive] Erreur 1 gmake[2] : on quitte le répertoire « /usr/obj/usr/ports/net/netatalk/work/netatalk-2.2.3/etc » gmake[1]: *** [all-recursive] Erreur 1 gmake[1] : on quitte le répertoire « /usr/obj/usr/ports/net/netatalk/work/netatalk-2.2.3 » gmake: *** [all] Erreur 2 *** [do-build] Error code 1 Stop in /usr/ports/net/netatalk. *** [build] Error code 1 Stop in /usr/ports/net/netatalk. >How-To-Repeat: build netatalk with zeroconf enabled cd /usr/ports/net/netatalk && make install >Fix: Explicitly set PTHREAD_LIBS in the Makefile. Patch attached with submission follows: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/net/netatalk/Makefile,v retrieving revision 1.108 diff -u -r1.108 Makefile --- Makefile 30 May 2012 06:20:36 -0000 1.108 +++ Makefile 21 Jun 2012 14:11:40 -0000 @@ -34,6 +34,8 @@ --with-uams-path=${LOCALBASE}/libexec/netatalk-uams \ --with-bdb=${LOCALBASE} +CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" + OPTIONS= APPLETALK "Enable AppleTalk protocol support" on \ SRVLOC "Enable Service Location Protocol support" off \ PAM "Enable PAM support" off \ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206211419.q5LEJCR4003053>