ports/129785: Port net/x11vnc fails to build
Pavel Gubin
pg at 2lazy.ru
Sat Dec 20 11:10:02 UTC 2008
>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 at 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:
More information about the freebsd-ports-bugs
mailing list