Opened 12 years ago
Closed 9 years ago
#37368 closed defect (worksforme)
qt4-mac: Undefined symbols _dbus_shutdown
Reported by: | bin.liu919@… | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | cblp@…, b0ris0v@… | |
Port: | qt4-mac |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Hello everyone. I have been trying to install qt4-mac on my Macbook but fail.
log.
:info:configure /usr/bin/clang++ -c -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -arch x86_64 -O2 -Wall -W -I../../../mkspecs/macx-g++ -I. -o dbus.o dbus.cpp :info:configure /usr/bin/clang++ -headerpad_max_install_names -o dbus dbus.o -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -arch x86_64 :info:configure Undefined symbols for architecture x86_64: :info:configure "_dbus_shutdown", referenced from: :info:configure _main in dbus.o :info:configure ld: symbol(s) not found for architecture x86_64 :info:configure clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:configure make: *** [dbus] Error 1 :info:configure D-Bus disabled. :info:configure The QtDBus module cannot be enabled because libdbus-1 version 0.93 was not found. :info:configure Turn on verbose messaging (-v) to ./configure to see the final report. :info:configure If you believe this message is in error you may use the continue :info:configure switch (-continue) to ./configure to continue. :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.8.4" && ./configure -v -confirm-license -opensource -prefix /opt/local -bindir /opt/local/bin -libdir /opt/local/lib -docdir /opt/local/share/doc/qt4 -headerdir /opt/local/include -plugindir /opt/local/share/qt4/plugins -importdir /opt/local/share/qt4/imports -datadir /opt/local/share/qt4 -translationdir /opt/local/share/qt4/translations -sysconfdir /opt/local/etc/qt4 -examplesdir /opt/local/share/qt4/examples -demosdir /opt/local/share/qt4/demos -openssl-linked -dbus-linked -fast -no-pch -framework -no-phonon -no-phonon-backend -no-sql-db2 -no-sql-ibase -no-sql-oci -no-sql-tds -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -nomake demos -nomake examples -release -no-declarative-debug -arch "x86_64" -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk :info:configure Exit code: 101 :error:configure org.macports.configure for port qt4-mac returned: configure failure: command execution failed :debug:configure Error code: NONE :debug:configure Backtrace: configure failure: command execution failed while executing "$procedure $targetname" :info:configure Warning: targets not executed for qt4-mac: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Attachments (1)
Change History (18)
Changed 12 years ago by bin.liu919@…
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | qt4-mac removed |
Owner: | changed from macports-tickets@… to michaelld@… |
Port: | qt4-mac added |
Summary: | build qt4-mac failed on Mac 10.8 → qt4-mac: Undefined symbols _dbus_shutdown |
comment:2 follow-up: 3 Changed 12 years ago by michaelld (Michael Dickens)
comment:3 Changed 12 years ago by bin.liu919@…
Replying to michaelld@…:
Have you tried cleaning qt4-mac and installing from scratch? Sometimes that works.
If not, then what does "ls -lAF /opt/local/lib/libdbus*" return?
hi michaelld
e.. i ./configure and make.then show error.
lbdeMac:qt-everywhere-opensource-src-4.8.4 chenyujie$ make cd src/tools/bootstrap/ && make -f Makefile /usr/bin/clang -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.8 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.8 -Wall -W -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../mkspecs/macx-g++ -I. -I../../../include -I../../../include/QtCore -I../../../include/QtXml ../../corelib/tools/qlocale_mac.mm -o .obj/release-shared/qlocale_mac.o error: unable to open output file '.obj/release-shared/qlocale_mac.o': 'Error opening output file '.obj/release-shared/qlocale_mac.o 1 error generated. make[1]: * [.obj/release-shared/qlocale_mac.o] Error 1 make: * [sub-tools-bootstrap-make_default-ordered] Error 2
the "ls -lAF /opt/local/lib/libdbus*" return :
-rwxr-xr-x 1 root admin 308748 11 27 01:55 /opt/local/lib/libdbus-1.3.dylib* -rw-r--r-- 1 root admin 569904 11 27 01:55 /opt/local/lib/libdbus-1.a lrwxr-xr-x 1 root admin 17 11 27 01:55 /opt/local/lib/libdbus-1.dylib@ -> libdbus-1.3.dylib -rwxr-xr-x 1 root admin 950 11 27 01:55 /opt/local/lib/libdbus-1.la*
comment:4 Changed 12 years ago by michaelld (Michael Dickens)
Well, no, that's not what I was asking; if you want to take that approach, you'll need to do "sudo chmod -R a+rw" from the top build directory. It does tell me a few things, such as that "dbus" is around correctly for linking, which is good.
My advice:
sudo port clean qt4-mac sudo port install qt4-mac configure.compile=llvm-gcc-4.2
and add any variants you want between "qt4-mac" and "configure".
comment:5 Changed 12 years ago by michaelld (Michael Dickens)
If you execute
port provides /opt/local/lib/libdbus-1.3.dylib
does it return
/opt/local/lib/libdbus-1.3.dylib is provided by: dbus
If so, does
port contents dbus | grep pkgconfig
return
/opt/local/lib/pkgconfig/dbus-1.pc
If so, does
ls -lAF /opt/local/lib/pkgconfig/dbus-1.pc
return something like
-rw-r--r-- [stuff] /opt/local/lib/pkgconfig/dbus-1.pc
If so, what does
cat /opt/local/lib/pkgconfig/dbus-1.pc
return?
comment:6 Changed 12 years ago by michaelld (Michael Dickens)
I just updated qt4-mac to r102010, which might address this issue (indirectly). Please selfupdate, then try installing qt4-mac again and let me know if it works now.
comment:7 Changed 12 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | new → closed |
I'm closing this ticket due to lack of feedback, and that I think it was probably fixed in the last update to qt4-mac.
comment:8 Changed 11 years ago by cblp@…
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I have exactly the same problem, and ready to give feedback.
:info:configure D-Bus auto-detection... () :info:configure /usr/bin/clang++ -c -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX1 :info:configure /usr/bin/clang++ -headerpad_max_install_names -o dbus dbus.o -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Pla :info:configure Undefined symbols for architecture x86_64: :info:configure "_dbus_shutdown", referenced from: :info:configure _main in dbus.o :info:configure ld: symbol(s) not found for architecture x86_64 :info:configure clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:configure make: *** [dbus] Error 1 :info:configure D-Bus disabled. :info:configure The QtDBus module cannot be enabled because libdbus-1 version 0.93 was not found. :info:configure Turn on verbose messaging (-v) to ./configure to see the final report. :info:configure If you believe this message is in error you may use the continue :info:configure switch (-continue) to ./configure to continue. :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aq :info:configure Exit code: 101 :error:configure org.macports.configure for port qt4-mac returned: configure failure: command execution failed :debug:configure Error code: NONE :debug:configure Backtrace: configure failure: command execution failed while executing "$procedure $targetname" :info:configure Warning: targets not executed for qt4-mac: org.macports.activate org.macports.configure org.macports.build org.macports.destroo :error:configure Failed to install qt4-mac
comment:9 Changed 11 years ago by michaelld (Michael Dickens)
ok; feedback is important for getting issues such as this fixed. Can you do the following:
sudo port clean qt4-mac sudo port configure qt4-mac
and then when it errors out, attach the log file described in the text to this ticket? Also, what do the following return for you:
port version /usr/bin/clang++ -v uname -a port installed
and I'll go from there. Thanks!
comment:11 Changed 11 years ago by cblp@…
Magic? Now sudo port configure qt4-mac
didn't fail, and I successfully installed kate
, my favourite text editor. Thank you!
comment:12 Changed 11 years ago by michaelld (Michael Dickens)
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
Sure, magic. I'm glad it's working now; thanks for reporting back. I'm going to re-close this ticket.
comment:13 Changed 11 years ago by cblp@…
For the future wanderers: it may be kind of hardly reproducible error in package config, that may be fixed with some sequence of port install
/port configure
commands.
comment:15 Changed 10 years ago by larryv (Lawrence Velázquez)
Cc: | b0ris0v@… added |
---|---|
Resolution: | worksforme |
Status: | closed → reopened |
Has duplicate #46210.
comment:16 Changed 10 years ago by michaelld (Michael Dickens)
Can folks with this issue do the following:
sudo port clean qt4-mac sudo port selfupdate sudo port configure qt4-mac
and then when it errors out, attach the -log file- described in the text to this ticket (generally: 'port logfile qt4-mac' is the actual file, which you copy to your login ~/Desktop for easy uploading)? Also, what do the following return for you:
port version /usr/bin/clang++ -v uname -a port installed
and we'll go from there.
comment:17 Changed 9 years ago by michaelld (Michael Dickens)
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
Any word on this ticket? I'm closing it again. Reopen if this is still an issue, and also provide feedback. We can't fix issues without feedback.
Have you tried cleaning qt4-mac and installing from scratch? Sometimes that works.
If not, then what does "ls -lAF /opt/local/lib/libdbus*" return?