[MacPorts] #26729: cunit @2.1.0 +universal Link Failure

MacPorts noreply at macports.org
Tue Oct 5 05:08:49 PDT 2010


#26729: cunit @2.1.0 +universal Link Failure
-------------------------------------+--------------------------------------
 Reporter:  leif@…                   |       Owner:  macports-tickets@…                   
     Type:  defect                   |      Status:  new                                  
 Priority:  Normal                   |   Milestone:                                       
Component:  ports                    |     Version:  1.9.1                                
 Keywords:                           |        Port:  cunit                                
-------------------------------------+--------------------------------------
Changes (by ryandesign@…):

  * port:  => cunit


Old description:

> 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.

New description:

 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.

--

Comment:

 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/26729#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list