ports/134227: starting apache with www/mod_dnssd causes error

Tsurutani Naoki turutani at scphys.kyoto-u.ac.jp
Tue May 5 10:00:04 UTC 2009


>Number:         134227
>Category:       ports
>Synopsis:       starting apache with www/mod_dnssd causes error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 05 10:00:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Tsurutani Naoki
>Release:        FreeBSD 7.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD h120.65.226.10.32118.vlan.kuins.net 7.2-STABLE FreeBSD 7.2-STABLE #18: Tue May 5 14:31:14 JST 2009 turutani at h120.65.226.10.32118.vlan.kuins.net:/usr/local/work/usr/obj/usr/src/sys/POLYMER i386


	
>Description:
	starting apache22 with rc.d/apache22 causes error with www/mod_dnssd,
    which is required by gnome2.
	% /usr/local/etc/rc.d/apache22 start
	Performing sanity check on apache22 configuration:
	httpd: Syntax error on line 116 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_dnssd.so into server: /usr/local/lib/libavahi-common.so.3: Undefined symbol "libintl_bindtextdomain"
	Starting apache22.
	httpd: Syntax error on line 116 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_dnssd.so into server: /usr/local/lib/libavahi-common.so.3: Undefined symbol "libintl_bindtextdomain"
	
	
>How-To-Repeat:
	
>Fix:
	mod_dnssd requires libavahi-common.so.3, which is installed by net/avahi-app,
	and libavahi-common.so.3 contains references to libintl_bindtextdomain(),
	which is provided by libintl.so.8 installed by gettext.
	however, libavahi-common.so.3 is not linked to libintl.so.8,
	hence an error of "undefined symbol" raises.

	here is a fix to net/avahi-app:

--- Makefile.orig	2009-05-01 06:57:27.000000000 +0900
+++ Makefile	2009-05-05 18:36:29.000000000 +0900
@@ -107,7 +107,7 @@
 		${WRKSRC}/avahi-client/Makefile.in \
 		${WRKSRC}/avahi-daemon/Makefile.in
 	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} \
-	    	${REINPLACE_CMD} -e 's|(LIBINTL)|(LTLIBINTL)|g ; \
+	    	${REINPLACE_CMD} -e 's|(LIBINTL)|(INTLLIBS)|g ; \
 		s|(LIBICONV)|(LTLIBICONV)|g'
 	@${REINPLACE_CMD} -e 's|%%RC_SUBR%%|${RC_SUBR}| ; \
 	    	s|%%GNOME_SUBR%%|${GNOME_SUBR}|' \


---end of the patch ---

	I think a change to net/avahi-app/Makefile rev 1.16 is not adeqate,
	for no building process uses gettext.m4 and iconv.m4, which are guessed 
	to define LTLIBINTL and LTLIBICONV.
	As a result, "LTLIBINTL" remains null string, and hence libintl.so.8 is
	not linked to libavahi-common.so.3. 
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list