Opened 15 years ago
Closed 15 years ago
#24437 closed defect (fixed)
avahi 0.6.25 fails to build: Undefined symbols: _libintl_dgettext (back again)
Reported by: | elelay (Eric Le Lay) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.2 |
Keywords: | Cc: | ||
Port: | avahi |
Description
Similar issue than #17167 :
the error trace (ellipsis added on line 2)
Making all in avahi-daemon (...) /bin/sh ../libtool --tag=CC --mode=link /usr/bin/gcc-4.0 -I.. '-DDEBUG_TRAP=__asm__("int $3")' -DAVAHI_DAEMON_RUNTIME_DIR=\"/opt/local/var/run/avahi-daemon/\" -DAVAHI_SOCKET=\"/opt/local/var/run/avahi-daemon/socket\" -DAVAHI_SERVICE_DIR=\"/opt/local/etc/avahi/services\" -DAVAHI_CONFIG_FILE=\"/opt/local/etc/avahi/avahi-daemon.conf\" -DAVAHI_HOSTS_FILE=\"/opt/local/etc/avahi/hosts\" -DAVAHI_DBUS_INTROSPECTION_DIR=\"/opt/local/share/avahi/introspection\" -DAVAHI_CONFIG_DIR=\"/opt/local/etc/avahi\" -D_REENTRANT -I/opt/local/include -DUSE_EXPAT_H -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -DDBUS_VERSION_MAJOR=1 -DDBUS_VERSION_MINOR=2 -DDBUS_VERSION_MICRO=16 -DDBUS_API_SUBJECT_TO_CHANGE -DDBUS_SYSTEM_BUS_DEFAULT_ADDRESS=\"unix:path=/opt/local/var/run/dbus/system_bus_socket\" -O2 -arch ppc -std=c99 -Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -D__EXTENSIONS__ -L/opt/local/lib -o avahi-daemon avahi_daemon-main.o avahi_daemon-simple-protocol.o avahi_daemon-static-services.o avahi_daemon-static-hosts.o avahi_daemon-ini-file-parser.o avahi_daemon-setproctitle.o avahi_daemon-check-nss.o avahi_daemon-dbus-protocol.o avahi_daemon-dbus-util.o avahi_daemon-dbus-async-address-resolver.o avahi_daemon-dbus-async-host-name-resolver.o avahi_daemon-dbus-async-service-resolver.o avahi_daemon-dbus-domain-browser.o avahi_daemon-dbus-entry-group.o avahi_daemon-dbus-service-browser.o avahi_daemon-dbus-service-type-browser.o avahi_daemon-dbus-sync-address-resolver.o avahi_daemon-dbus-sync-host-name-resolver.o avahi_daemon-dbus-sync-service-resolver.o avahi_daemon-dbus-record-browser.o avahi_daemon-dbus.o avahi_daemon-dbus-watch-glue.o ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la -L/opt/local/lib -ldaemon -lexpat -ldl -L/opt/local/lib -ldbus-1 -lpthread libtool: link: /usr/bin/gcc-4.0 -I.. "-DDEBUG_TRAP=__asm__(\"int \$3\")" -DAVAHI_DAEMON_RUNTIME_DIR=\"/opt/local/var/run/avahi-daemon/\" -DAVAHI_SOCKET=\"/opt/local/var/run/avahi-daemon/socket\" -DAVAHI_SERVICE_DIR=\"/opt/local/etc/avahi/services\" -DAVAHI_CONFIG_FILE=\"/opt/local/etc/avahi/avahi-daemon.conf\" -DAVAHI_HOSTS_FILE=\"/opt/local/etc/avahi/hosts\" -DAVAHI_DBUS_INTROSPECTION_DIR=\"/opt/local/share/avahi/introspection\" -DAVAHI_CONFIG_DIR=\"/opt/local/etc/avahi\" -D_REENTRANT -I/opt/local/include -DUSE_EXPAT_H -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -DDBUS_VERSION_MAJOR=1 -DDBUS_VERSION_MINOR=2 -DDBUS_VERSION_MICRO=16 -DDBUS_API_SUBJECT_TO_CHANGE -DDBUS_SYSTEM_BUS_DEFAULT_ADDRESS=\"unix:path=/opt/local/var/run/dbus/system_bus_socket\" -O2 -arch ppc -std=c99 -Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -D__EXTENSIONS__ -o .libs/avahi-daemon avahi_daemon-main.o avahi_daemon-simple-protocol.o avahi_daemon-static-services.o avahi_daemon-static-hosts.o avahi_daemon-ini-file-parser.o avahi_daemon-setproctitle.o avahi_daemon-check-nss.o avahi_daemon-dbus-protocol.o avahi_daemon-dbus-util.o avahi_daemon-dbus-async-address-resolver.o avahi_daemon-dbus-async-host-name-resolver.o avahi_daemon-dbus-async-service-resolver.o avahi_daemon-dbus-domain-browser.o avahi_daemon-dbus-entry-group.o avahi_daemon-dbus-service-browser.o avahi_daemon-dbus-service-type-browser.o avahi_daemon-dbus-sync-address-resolver.o avahi_daemon-dbus-sync-host-name-resolver.o avahi_daemon-dbus-sync-service-resolver.o avahi_daemon-dbus-record-browser.o avahi_daemon-dbus.o avahi_daemon-dbus-watch-glue.o -L/opt/local/lib ../avahi-common/.libs/libavahi-common.dylib ../avahi-core/.libs/libavahi-core.dylib /opt/local/var/macports/build/_Users_elelay_misc_macports_svnlocal_dports_net_avahi/work/avahi-0.6.25/avahi-common/.libs/libavahi-common.dylib /opt/local/lib/libdaemon.dylib /opt/local/lib/libexpat.dylib -ldl /opt/local/lib/libdbus-1.dylib -lpthread /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols: _libintl_dgettext _libintl_bind_textdomain_codeset _libintl_bindtextdomain collect2: ld returned 1 exit status make[2]: *** [avahi-daemon] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
I'm running 10.4.11.
I applied the same method as in ticket #17167, which did the trick. I had to apply it also to avahi-dnsconfd.
Attached is a patch adding the 2 patch files and updating the Portfile. Since I have no experience in avahi, I'd rather have someone else review and commit it.
Attachments (1)
Change History (2)
Changed 15 years ago by elelay (Eric Le Lay)
Attachment: | patch-2-more-nls.diff added |
---|
comment:1 Changed 15 years ago by elelay (Eric Le Lay)
Resolution: | → fixed |
---|---|
Status: | new → closed |
committed in r66638
Note: See
TracTickets for help on using
tickets.
patch against r66402