Opened 14 years ago
Closed 13 years ago
#26729 closed defect (fixed)
cunit @2.1.0 +universal Link Failure
Reported by: | leif@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | Cc: | ||
Port: | cunit |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
I am attempting to install cunit built for multiple platforms so the library can be linked to our own application.
The install command was:
sudo port install cunit +universal
It makes it quite a ways, then fails in the link. The "has no symbols" messages may be leading up to the problem?
<snip> :info:build ranlib .libs/libcunit.a :info:build ranlib: for architecture: i386 file: .libs/libcunit.a(MyMem.o) has no symbols :info:build ranlib: for architecture: ppc file: .libs/libcunit.a(MyMem.o) has no symbols :info:build creating libcunit.la :info:build (cd .libs && rm -f libcunit.la && ln -s ../libcunit.la libcunit.la) :info:build Making all in Headers :info:build make[3]: Nothing to be done for `all'. :info:build make[3]: Nothing to be done for `all-am'. :info:build Making all in doc :info:build Making all in headers :info:build cp -f ../../CUnit/Headers/*.h . :info:build cp -f ../../CUnit/Sources/Win/Win.h . :info:build make[3]: Nothing to be done for `all-am'. :info:build Making all in Man :info:build Making all in man3 :info:build make[3]: Nothing to be done for `all'. :info:build make[3]: Nothing to be done for `all-am'. :info:build Making all in Share :info:build make[2]: Nothing to be done for `all'. :info:build Making all in Examples :info:build Making all in . :info:build /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/local/include -O2 -arch i386 -arch ppc -DRELEASE=0 -Wall -W -pedantic -Wshadow -ansi -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.or$ :info:build rm -f libcunitexamples.a :info:build ar cru libcunitexamples.a ExampleTests.o :info:build ranlib libcunitexamples.a :info:build Making all in BasicTest :info:build /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -I/opt/local/include -O2 -arch i386 -arch ppc -DRELEASE=0 -Wall -W -pedantic -Wshadow -ansi -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macp$ :info:build /bin/sh ../../libtool --tag=CC --mode=link /usr/bin/gcc-4.0 -O2 -arch i386 -arch ppc -DRELEASE=0 -Wall -W -pedantic -Wshadow -ansi -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release$ :info:build mkdir .libs :info:build /usr/bin/gcc-4.0 -O2 -arch i386 -arch ppc -DRELEASE=0 -Wall -W -pedantic -Wshadow -ansi -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cunit/work/CUnit-2.1-0/CUnit/He$ :info:build ld warning: in /opt/local/lib/libcunit.dylib, file is not of required architecture :info:build Undefined symbols for architecture ppc: :info:build "_CU_set_error_action", referenced from: :info:build _main in BasicTest.o :info:build "_CU_assertImplementation", referenced from: :info:build _testSuccess1 in libcunitexamples.a(ExampleTests.o) :info:build _testSuccess2 in libcunitexamples.a(ExampleTests.o) :info:build _testSuccess3 in libcunitexamples.a(ExampleTests.o) :info:build _testSuiteFailure1 in libcunitexamples.a(ExampleTests.o) :info:build _testSuiteFailure2 in libcunitexamples.a(ExampleTests.o) <snip>
I will attach the fill log to this issue.
Attachments (1)
Change History (3)
Changed 14 years ago by leif@…
comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Port: | cunit added |
Based on...
ld warning: in /opt/local/lib/libcunit.dylib, file is not of required architecture
...it looks like you already have cunit installed nonuniversal. Try deactivating or uninstalling that nonuniversal cunit before attempting to install a universal one.
comment:2 Changed 13 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Seems fixed in 2.1-2. Installing non-universal and then building universal works for me.
Note: See
TracTickets for help on using
tickets.
This is the error log that port reported.