[MacPorts] #37368: build qt4-mac failed on Mac 10.8
#37368: build qt4-mac failed on Mac 10.8 --------------------------+-------------------------------- Reporter: bin.liu919@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: qt4-mac | Port: --------------------------+-------------------------------- 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 -- Ticket URL: <https://trac.macports.org/ticket/37368> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37368: qt4-mac: Undefined symbols _dbus_shutdown ---------------------------+------------------------- Reporter: bin.liu919@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: qt4-mac | ---------------------------+------------------------- Changes (by ryandesign@…): * keywords: qt4-mac => * owner: macports-tickets@… => michaelld@… * port: => qt4-mac Old description:
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
New description: 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 }}} -- -- Ticket URL: <https://trac.macports.org/ticket/37368#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37368: qt4-mac: Undefined symbols _dbus_shutdown ---------------------------+------------------------- Reporter: bin.liu919@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: qt4-mac | ---------------------------+------------------------- Comment (by 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? -- Ticket URL: <https://trac.macports.org/ticket/37368#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37368: qt4-mac: Undefined symbols _dbus_shutdown ---------------------------+------------------------- Reporter: bin.liu919@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: qt4-mac | ---------------------------+------------------------- Comment (by bin.liu919@…): Replying to [comment:2 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* -- Ticket URL: <https://trac.macports.org/ticket/37368#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37368: qt4-mac: Undefined symbols _dbus_shutdown ---------------------------+------------------------- Reporter: bin.liu919@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: qt4-mac | ---------------------------+------------------------- Comment (by michaelld@…): 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". -- Ticket URL: <https://trac.macports.org/ticket/37368#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37368: qt4-mac: Undefined symbols _dbus_shutdown ---------------------------+------------------------- Reporter: bin.liu919@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: qt4-mac | ---------------------------+------------------------- Comment (by michaelld@…): 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? -- Ticket URL: <https://trac.macports.org/ticket/37368#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37368: qt4-mac: Undefined symbols _dbus_shutdown ---------------------------+------------------------- Reporter: bin.liu919@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: qt4-mac | ---------------------------+------------------------- Comment (by michaelld@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/37368#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37368: qt4-mac: Undefined symbols _dbus_shutdown ---------------------------+------------------------- Reporter: bin.liu919@… | Owner: michaelld@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: qt4-mac | ---------------------------+------------------------- Changes (by michaelld@…): * status: new => closed * resolution: => fixed Comment: 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. -- Ticket URL: <https://trac.macports.org/ticket/37368#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37368: qt4-mac: Undefined symbols _dbus_shutdown ---------------------------+------------------------- Reporter: bin.liu919@… | Owner: michaelld@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: qt4-mac | ---------------------------+------------------------- Changes (by cblp@…): * status: closed => reopened * resolution: fixed => Comment: 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/37368#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#37368: qt4-mac: Undefined symbols _dbus_shutdown ---------------------------+------------------------- Reporter: bin.liu919@… | Owner: michaelld@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: qt4-mac | ---------------------------+------------------------- Comment (by michaelld@…): 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! -- Ticket URL: <https://trac.macports.org/ticket/37368#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#37368: qt4-mac: Undefined symbols _dbus_shutdown ---------------------------+------------------------- Reporter: bin.liu919@… | Owner: michaelld@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: qt4-mac | ---------------------------+------------------------- Comment (by cblp@…): Magic? Now `sudo port configure qt4-mac` didn't fail, and I successfully installed `kate`, my favourite text editor. Thank you! -- Ticket URL: <https://trac.macports.org/ticket/37368#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#37368: qt4-mac: Undefined symbols _dbus_shutdown ---------------------------+------------------------- Reporter: bin.liu919@… | Owner: michaelld@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: worksforme | Keywords: Port: qt4-mac | ---------------------------+------------------------- Changes (by michaelld@…): * status: reopened => closed * resolution: => worksforme Comment: Sure, magic. I'm glad it's working now; thanks for reporting back. I'm going to re-close this ticket. -- Ticket URL: <https://trac.macports.org/ticket/37368#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#37368: qt4-mac: Undefined symbols _dbus_shutdown ---------------------------+------------------------- Reporter: bin.liu919@… | Owner: michaelld@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: worksforme | Keywords: Port: qt4-mac | ---------------------------+------------------------- Comment (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. -- Ticket URL: <https://trac.macports.org/ticket/37368#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#37368: qt4-mac: Undefined symbols _dbus_shutdown ---------------------------+------------------------- Reporter: bin.liu919@… | Owner: michaelld@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: worksforme | Keywords: Port: qt4-mac | ---------------------------+------------------------- Comment (by michaelld@…): Has duplicate #44184. -- Ticket URL: <https://trac.macports.org/ticket/37368#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts