Summary: | Link failure | ||
---|---|---|---|
Product: | dbus | Reporter: | Marius Schamschula <mschamschula> |
Component: | core | Assignee: | Havoc Pennington <hp> |
Status: | RESOLVED WORKSFORME | QA Contact: | John (J5) Palmieri <johnp> |
Severity: | normal | ||
Priority: | medium | CC: | mschamschula |
Version: | unspecified | Keywords: | NEEDINFO |
Hardware: | All | ||
OS: | Mac OS X (All) | ||
Whiteboard: | unreproducible on 10.6 | ||
i915 platform: | i915 features: | ||
Attachments: | configure log |
Description
Marius Schamschula
2008-03-07 17:42:57 UTC
What version are you using? Have you tried the latest from git? I have corrected some issues with MacOSX linking by testing for link flags and had gotten confirmation that it worked. -z and -relro are both checked for. The version is 1.1.20. I looked at the MacPorts Portfile <http://trac.macports.org/projects/macports/browser/trunk/dports/devel/dbus/Portfile> and got a little farther. However, I now get the following error (this is form the 10.4.11 PPC box - I get the same thing under 10.5.2 - it looks a little different): gcc -dynamiclib -o .libs/libdbus-1.3.4.0.dylib .libs/dbus-address.o .libs/dbus-auth.o .libs/dbus-auth-script.o .libs/dbus-bus.o .libs/dbus-connection.o .libs/dbus-credentials.o .libs/dbus-errors.o .libs/dbus-keyring.o .libs/dbus-marshal-header.o .libs/dbus-marshal-byteswap.o .libs/dbus-marshal-recursive.o .libs/dbus-marshal-validate.o .libs/dbus-message.o .libs/dbus-misc.o .libs/dbus-object-tree.o .libs/dbus-pending-call.o .libs/dbus-resources.o .libs/dbus-server.o .libs/dbus-server-debug-pipe.o .libs/dbus-server-socket.o .libs/dbus-server-unix.o .libs/dbus-sha.o .libs/dbus-signature.o .libs/dbus-timeout.o .libs/dbus-threads.o .libs/dbus-transport.o .libs/dbus-transport-socket.o .libs/dbus-transport-unix.o .libs/dbus-uuidgen.o .libs/dbus-watch.o .libs/dbus-dataslot.o .libs/dbus-hash.o .libs/dbus-internals.o .libs/dbus-list.o .libs/dbus-marshal-basic.o .libs/dbus-memory.o .libs/dbus-mempool.o .libs/dbus-string.o .libs/dbus-sysdeps.o .libs/dbus-sysdeps-pthread.o .libs/dbus-sysdeps-unix.o .libs/dbus-userdb.o -install_name /usr/local/lib/libdbus-1.3.dylib -compatibility_version 8 -current_version 8.0 ld: Undefined symbols: _clearenv /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit command failed make[3]: *** [libdbus-1.la] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 It looks like macosx does not support clearenv but we have a check for that in configure.in so it shouldn't be used. Can you attach the output of ./configure? Created attachment 15576 [details]
configure log
It looks like clearenv is detected. I'm assuming this is some issue with your build environment. Have you talked to the macports D-Bus guy? I assume they have gotten this compiled. One thing you can do is hack up the configure stuff to look at why the test for clearenv compiles correctly. That may give you clues as to why the app is not working (e.g. search for clearenv in configure) I'm using all the same settings (- xml doc generation, i.e. --disable-xml-docs) and patches... However, since "nomaintainer" has no e-mail address, I'm just trying to get info from trac. I had to add the following change to configure: <snip> *** configure.orig Thu Apr 3 20:04:42 2008 --- configure Thu Apr 3 20:06:01 2008 *************** *** 24217,24221 **** ! for ac_func in vsnprintf vasprintf nanosleep usleep poll setenv clearenv unsetenv socketpair getgrouplist fpathconf setrlimit do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` --- 24217,24221 ---- ! for ac_func in vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist fpathconf setrlimit do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` </snip> To get things to work. I have no idea how the MacPorts build happens w/o this change... I can't reproduce this on 10.6. Can you try with the latest master? Please note the date of the original post. We were dealing with dbus version 1.1.20. I no longer maintain ports for Mac OS X 10.3.x and 10.4.x. dbus 1.4.1 builds just fine under Mac OS X 10.5.x and 10.6.x. Unreproducible/obsolete; please open a new bug if you're getting linking failures in a modern dbus version. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.