Date: Sat, 20 Dec 2008 16:27:07 +0600 (TSK) From: Pavel Gubin <pg@2lazy.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/129785: Port net/x11vnc fails to build Message-ID: <200812201027.mBKAR7lt096646@2lazy.ru> Resent-Message-ID: <200812201110.mBKBA2Hv013984@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 129785 >Category: ports >Synopsis: Port net/x11vnc fails to build >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: Sat Dec 20 11:10:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Pavel Gubin >Release: FreeBSD 6.4-RELEASE i386 >Organization: Too Lazy's nest >Environment: System: FreeBSD hammer.2lazy.ru 6.4-RELEASE FreeBSD 6.4-RELEASE #1: Mon Dec 8 06:44:11 TSK 2008 pg@hammer.2lazy.ru:/var/data/obj/var/data/6s/src/sys/Hammer i386 >Description: The port net/x11vnc fails to buils because of added avahi dependancy, which in turn depends on libintl library from devel/gettext ports, but these dependancies was not added. >How-To-Repeat: Build the port - it will break at link stage with errors: /usr/local/lib/libavahi-common.so: undefined reference to `libintl_bindtextdomain' /usr/local/lib/libavahi-common.so: undefined reference to `libintl_dgettext' /usr/local/lib/libavahi-common.so: undefined reference to `libintl_bind_textdomain_codeset' >Fix: Apply the following patch. This adds devel/gettext dependancy using USE_GETTEXT=yes and patches `configure' to include -lintl in LIBS= definition. diff -urN x11vnc/Makefile /usr/ports/net/x11vnc/Makefile --- x11vnc/Makefile 2008-12-20 14:35:59.000000000 +0600 +++ /usr/ports/net/x11vnc/Makefile 2008-12-20 16:09:23.000000000 +0600 @@ -22,6 +22,7 @@ USE_XORG= x11 xdamage xfixes xrandr xinerama xext xtst xau xrender xdmcp recordproto USE_OPENSSL= yes USE_ICONV= yes +USE_GETTEXT= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" @@ -29,8 +30,6 @@ MAN1= x11vnc.1 PORTDOCS= AUTHORS COPYING ChangeLog NEWS README README.LibVNCServer TODO -BROKEN= Does not compile (linker problems) - post-patch: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ ${WRKSRC}/configure diff -urN x11vnc/files/patch-configure /usr/ports/net/x11vnc/files/patch-configure --- x11vnc/files/patch-configure 1970-01-01 07:00:00.000000000 +0700 +++ /usr/ports/net/x11vnc/files/patch-configure 2008-12-20 16:05:26.000000000 +0600 @@ -0,0 +1,14 @@ +--- configure.orig 2008-12-20 16:02:44.000000000 +0600 ++++ configure 2008-12-20 16:04:43.000000000 +0600 +@@ -13234,6 +13234,11 @@ + WITH_X11VNC_TRUE='#' + WITH_X11VNC_FALSE= + fi ++if test "x$with_avahi" = "xyes" ++then ++ echo "configure: avahi used, forcing use -lintl" ++ LIBS="-lintl $LIBS" ++fi + + + >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812201027.mBKAR7lt096646>