Opened 15 years ago

Closed 15 years ago

#22926 closed defect (fixed)

qt4-mac build fails with missing symbols

Reported by: dsdale24@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: nicolabrisotto@…, jairo.serrano@…, xbenlau@…, xeenon@…, trehune@…, mf2k (Frank Schima), michele.trimarchi@…, root42, sharky@…
Port: qt4-mac

Description

I am unable to build qt4-mac on a new Snow Leopard machine. I am relatively new to mac and ports (coming from gentoo), please let me know if I should provide more information.

$ sudo port install -v py26-pyqt4
--->  Computing dependencies for py26-pyqt4
--->  Fetching qt4-mac
--->  Verifying checksum(s) for qt4-mac
--->  Extracting qt4-mac
--->  Applying patches to qt4-mac
--->  Configuring qt4-mac
--->  Building qt4-mac
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.3" && /usr/bin/make -j16 first " returned error 2
Command output: ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [../../lib/QtNetwork.framework/QtNetwork] Error 1
make[1]: *** [release-all] Error 2
make[1]: *** Waiting for unfinished jobs....
rm -f QtNetwork_debug QtNetwork.framework/QtNetwork_debug ../../lib/QtNetwork.framework/QtNetwork_debug
/usr/bin/g++-4.2 -headerpad_max_install_names -Xarch_x86_64 -mmacosx-version-min=10.5 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -single_module -dynamiclib -compatibility_version	4.5 -current_version	4.5.3 -install_name	/opt/local/libexec/qt4-mac/lib/QtNetwork.framework/Versions/4/QtNetwork_debug -o QtNetwork_debug .obj/debug-shared/qftp.o .obj/debug-shared/qhttp.o .obj/debug-shared/qhttpnetworkheader.o .obj/debug-shared/qhttpnetworkrequest.o .obj/debug-shared/qhttpnetworkreply.o .obj/debug-shared/qhttpnetworkconnection.o .obj/debug-shared/qnetworkaccessmanager.o .obj/debug-shared/qnetworkaccesscache.o .obj/debug-shared/qnetworkaccessbackend.o .obj/debug-shared/qnetworkaccessdatabackend.o .obj/debug-shared/qnetworkaccessdebugpipebackend.o .obj/debug-shared/qnetworkaccessfilebackend.o .obj/debug-shared/qnetworkaccesscachebackend.o .obj/debug-shared/qnetworkaccessftpbackend.o .obj/debug-shared/qnetworkaccesshttpbackend.o .obj/debug-shared/qnetworkcookie.o .obj/debug-shared/qnetworkrequest.o .obj/debug-shared/qnetworkreply.o .obj/debug-shared/qnetworkreplyimpl.o .obj/debug-shared/qabstractnetworkcache.o .obj/debug-shared/qnetworkdiskcache.o .obj/debug-shared/qauthenticator.o .obj/debug-shared/qhostaddress.o .obj/debug-shared/qhostinfo.o .obj/debug-shared/qurlinfo.o .obj/debug-shared/qnetworkproxy.o .obj/debug-shared/qnetworkinterface.o .obj/debug-shared/qhostinfo_unix.o .obj/debug-shared/qnetworkinterface_unix.o .obj/debug-shared/qnetworkproxy_mac.o .obj/debug-shared/qabstractsocketengine.o .obj/debug-shared/qnativesocketengine.o .obj/debug-shared/qhttpsocketengine.o .obj/debug-shared/qsocks5socketengine.o .obj/debug-shared/qabstractsocket.o .obj/debug-shared/qtcpsocket.o .obj/debug-shared/qudpsocket.o .obj/debug-shared/qtcpserver.o .obj/debug-shared/qlocalsocket.o .obj/debug-shared/qlocalserver.o .obj/debug-shared/qnativesocketengine_unix.o .obj/debug-shared/qlocalsocket_unix.o .obj/debug-shared/qlocalserver_unix.o .obj/debug-shared/qssl.o .obj/debug-shared/qsslcertificate.o .obj/debug-shared/qsslconfiguration.o .obj/debug-shared/qsslcipher.o .obj/debug-shared/qsslerror.o .obj/debug-shared/qsslkey.o .obj/debug-shared/qsslsocket.o .obj/debug-shared/qsslsocket_openssl.o .obj/debug-shared/qsslsocket_openssl_symbols.o .obj/debug-shared/moc_qhttpnetworkreply_p.o .obj/debug-shared/moc_qnetworkaccesscache_p.o .obj/debug-shared/moc_qnetworkaccessbackend_p.o .obj/debug-shared/moc_qnetworkaccessdebugpipebackend_p.o .obj/debug-shared/moc_qnetworkaccesshttpbackend_p.o .obj/debug-shared/moc_qnetworkaccessftpbackend_p.o .obj/debug-shared/moc_qnetworkcookie.o .obj/debug-shared/moc_qnetworkreply.o .obj/debug-shared/moc_qabstractnetworkcache.o .obj/debug-shared/moc_qnetworkdiskcache.o .obj/debug-shared/moc_qhostinfo_p.o .obj/debug-shared/moc_qabstractsocketengine_p.o .obj/debug-shared/moc_qnativesocketengine_p.o .obj/debug-shared/moc_qhttpsocketengine_p.o .obj/debug-shared/moc_qsocks5socketengine_p.o .obj/debug-shared/moc_qtcpsocket.o .obj/debug-shared/moc_qudpsocket.o .obj/debug-shared/moc_qlocalserver_p.o .obj/debug-shared/qrc_network.o  -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.3/lib -L/opt/local/lib -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.3/lib -lz -framework SystemConfiguration -lssl -lcrypto -framework QtCore 
Undefined symbols:
  "_CFArrayGetValueAtIndex", referenced from:
      macQueryInternal(QNetworkProxyQuery const&) in qnetworkproxy_mac.o
  "_CFArrayGetCount", referenced from:
      macQueryInternal(QNetworkProxyQuery const&) in qnetworkproxy_mac.o
  "_CFNumberGetValue", referenced from:
      proxyFromDictionary(__CFDictionary const*, QNetworkProxy::ProxyType, __CFString const*, __CFString const*, __CFString const*)in qnetworkproxy_mac.o
      proxyFromDictionary(__CFDictionary const*, QNetworkProxy::ProxyType, __CFString const*, __CFString const*, __CFString const*)in qnetworkproxy_mac.o
      macQueryInternal(QNetworkProxyQuery const&) in qnetworkproxy_mac.o
      macQueryInternal(QNetworkProxyQuery const&) in qnetworkproxy_mac.o
  "_CFDictionaryGetValue", referenced from:
      proxyFromDictionary(__CFDictionary const*, QNetworkProxy::ProxyType, __CFString const*, __CFString const*, __CFString const*)in qnetworkproxy_mac.o
      proxyFromDictionary(__CFDictionary const*, QNetworkProxy::ProxyType, __CFString const*, __CFString const*, __CFString const*)in qnetworkproxy_mac.o
      proxyFromDictionary(__CFDictionary const*, QNetworkProxy::ProxyType, __CFString const*, __CFString const*, __CFString const*)in qnetworkproxy_mac.o
      macQueryInternal(QNetworkProxyQuery const&) in qnetworkproxy_mac.o
      macQueryInternal(QNetworkProxyQuery const&) in qnetworkproxy_mac.o
      macQueryInternal(QNetworkProxyQuery const&) in qnetworkproxy_mac.o
      macQueryInternal(QNetworkProxyQuery const&) in qnetworkproxy_mac.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [../../lib/QtNetwork.framework/QtNetwork_debug] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-network-make_default-ordered] Error 2

Error: The following dependencies failed to build: qt4-mac
Error: Status 1 encountered during processing.

Change History (21)

comment:1 Changed 15 years ago by nicolabrisotto@…

I've just got the same problem.

comment:2 Changed 15 years ago by nicolabrisotto@…

Cc: nicolabrisotto@… added

Cc Me!

comment:3 Changed 15 years ago by dsdale24@…

As a workaround, I made a local portfile repository, copied the provided qt4-mac-devel port directory into my local repository, but saved it as qt4-mac (and edited the Portfile to change the name as well). This at least yielded a working qt4 installation, and I was then able to install pyqt4 and the kde libraries.

comment:4 Changed 15 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:5 Changed 15 years ago by macports@…

Cc: macports@… removed

Cc Me!

comment:6 Changed 15 years ago by macports@…

workaround described by dsdale24 worked for me after deactivating kdelibs4 during the build (see #20199)

comment:7 Changed 15 years ago by jairo.serrano@…

dont work for me, any ideas? im newby dont work the local port file...

comment:8 Changed 15 years ago by jairo.serrano@…

Cc: jairo.serrano@… added

Cc Me!

comment:9 Changed 15 years ago by xbenlau@…

Cc: xbenlau@… added

Cc Me!

comment:10 Changed 15 years ago by xeenon@…

Cc: xeenon@… added

Cc Me!

comment:11 Changed 15 years ago by trehune@…

Cc: trehune@… added

Cc Me!

comment:12 Changed 15 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:13 Changed 15 years ago by michele.trimarchi@…

Cc: michele.trimarchi@… added

Cc Me!

comment:14 Changed 15 years ago by michele.trimarchi@…

I've just got the same problem..on Leopard 10.5.8

comment:15 Changed 15 years ago by root42

Cc: arne.schmitz@… added

Cc Me!

comment:16 Changed 15 years ago by root42

I've got the same problem on OS X 10.6.2. I have tried almost everything, including temporarily moving away /usr/local (since I have the official Qt package installed there) and rebuilding my whole ports tree from scratch. No help so far.

comment:17 Changed 15 years ago by sharky@…

Could you please retry with the latest qt4-mac (version 4.6.0) and let me know whether it builds OK?

comment:18 Changed 15 years ago by sharky@…

Cc: sharky@… added

Cc Me!

comment:19 Changed 15 years ago by xbenlau@…

I can build qt4-mac-devel (4.6) with MacPorts 1.8.2 successfully

comment:20 Changed 15 years ago by root42

qt4-mac 4.6.0 works here, using MacPorts 1.8.2.

comment:21 Changed 15 years ago by sharky@…

Resolution: fixed
Status: newclosed

OK, I am closing this ticket as recent qt4-mac / qt4-mac-devel seems to work.

Note: See TracTickets for help on using tickets.