[MacPorts] #35523: qt4-mac @4.8.2_0 +psql91 +universal does not build
MacPorts
noreply at macports.org
Sat Aug 4 00:01:00 PDT 2012
#35523: qt4-mac @4.8.2_0 +psql91 +universal does not build
--------------------------------+-------------------------------------------
Reporter: vince@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: | Port:
--------------------------------+-------------------------------------------
During the qmake phase, qt4-mac does not use Macports installed libpq
(from PostgreSQL) but the system installed libpq. Since on ML this library
is only built for x86_64, building as universal fails.
{{{
/usr/bin/llvm-g++-4.2 -headerpad_max_install_names -o psql psql.o
-L/usr/lib
-Wl,-syslibroot,/Applications/Xcode45-DP3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
-arch i386 -arch x86_64 -lpq
ld: warning: ignoring file
/Applications/Xcode45-DP3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/libpq.dylib,
file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0
0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 9 0x 0 0x 0 0x 0 ) which is not the
architecture being linked (i386):
/Applications/Xcode45-DP3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/libpq.dylib
Undefined symbols for architecture i386:
"_PQescapeBytea", referenced from:
_main in psql.o
"_PQunescapeBytea", referenced from:
_main in psql.o
ld: symbol(s) not found for architecture i386
}}}
Note the path of libpq. Same should happen with Xcode 4.4.
--
Ticket URL: <https://trac.macports.org/ticket/35523>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list