#27359 closed defect (invalid)
ld: warning: in /opt/local/lib/libcppunit.dylib, missing required architecture x86_64 in file
Reported by: | blueduck@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.2 |
Keywords: | Cc: | ||
Port: | cppunit |
Description
If I try to compile some programm with cppunit I got the error above.
Seems the libcppunit.dylib was not compiled for 64 bit, when installed by mac ports.
lipo -info /opt/local/lib/libcppunit.dylib Architectures in the fat file: /opt/local/lib/libcppunit.dylib are: ppc7400 i386
Change History (6)
comment:1 Changed 14 years ago by jmroot (Joshua Root)
Keywords: | cppunit removed |
---|---|
Owner: | changed from macports-tickets@… to mww@… |
Port: | cppunit added |
Priority: | High → Normal |
comment:2 Changed 14 years ago by blueduck@…
Sorry for the inconvenience.
$ port -v installed cppunit The following ports are currently installed: cppunit @1.12.1_0+universal (active) platform='darwin 10' archs='i386 ppc'
cat /opt/local/etc/macports/macports.conf ... # machine architectures universal_archs ppc i386 ...
comment:3 Changed 14 years ago by jmroot (Joshua Root)
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:4 Changed 14 years ago by blueduck@…
Hey,
what means "invalid" in this case? Did I misconfugured something? Does it work for you?
How I could compile cppunit .cpp files?
Thanks in advance, Stefano
comment:5 Changed 14 years ago by blueduck@…
Now it works for me too.
I changed some settings in macports.conf
# MACOSX_DEPLOYMENT_TARGET universal_target 10.5 -> universal_target 10.6 # the SDK "sysroot" to use universal_sysroot /Developer/SDKs/MacOSX10.5.sdk -> universal_sysroot /Developer/SDKs/MacOSX10.6.sdk # machine architectures universal_archs ppc i386 -> universal_archs i386 x86_64
and compile cppunit again.
Thanks for the hidden hints. Stefano
comment:6 Changed 14 years ago by jmroot (Joshua Root)
Right, MacPorts did exactly what it was configured to do with universal_archs. FYI, universal_target and universal_sysroot no longer do anything.
Please remember to cc the maintainer, and put the name of the port in the Port field. As per the ticket guidelines, the High priority is reserved for the use of MacPorts team members.
Please show the output of
and the universal_archs line from your macports.conf.