[MacPorts] #19368: Universal Binary software which needs libcryptopp

MacPorts noreply at macports.org
Sun Apr 19 06:47:16 PDT 2009


#19368: Universal Binary software which needs libcryptopp
----------------------------------------+-----------------------------------
 Reporter:  mirko.g@…                   |       Owner:  macports-tickets@…                   
     Type:  defect                      |      Status:  new                                  
 Priority:  Normal                      |   Milestone:  Port Bugs                            
Component:  ports                       |     Version:  1.7.1                                
 Keywords:  libcryptopp                 |        Port:  libcryptopp-5.5.2 +universal         
----------------------------------------+-----------------------------------
 Hi, I'm trying to compile (on Leopard) the Universal Binary version of
 some software which needs libcryptopp.

 I installed all macports invoking +universal and added:
 {{{
 CFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk"
 CXXFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk"
 }}}
 to the ./config command.

 The make fails every time with the same error that seems related to
 libcryptopp:
 {{{
 ld warning: in /opt/local/lib/libcryptopp.a, file is not of required
 architecture
 Undefined symbols for architecture ppc:
 "CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&,
 std::basic_string<char, std::char_traits<char>, std::allocator<char> >
 const&, unsigned long long)", referenced from:
       vtable for CryptoPP::AutoSeededRandomPoolin libmuleappcommon.a
 (libmuleappcommon_a-RandomFunctions.o)
   "CryptoPP::RandomNumberGenerator::GenerateByte()", referenced from:
       GetRandomUint8()     in libmuleappcommon.a(libmuleappcommon_a-
 RandomFunctions.o)
       vtable for CryptoPP::AutoSeededRandomPoolin libmuleappcommon.a
 (libmuleappcommon_a-RandomFunctions.o)
   "typeinfo for CryptoPP::RandomPool", referenced from:
       typeinfo for CryptoPP::AutoSeededRandomPoolin libmuleappcommon.a
 (libmuleappcommon_a-RandomFunctions.o)
   "vtable for CryptoPP::RandomPool", referenced from:
       __ZTVN8CryptoPP10RandomPoolE$non_lazy_ptr in libmuleappcommon.a
 (libmuleappcommon_a-RandomFunctions.o)
   "CryptoPP::RandomNumberGenerator::DiscardBytes(unsigned long)",
 referenced from:
       vtable for CryptoPP::AutoSeededRandomPoolin libmuleappcommon.a
 (libmuleappcommon_a-RandomFunctions.o)
   "CryptoPP::RandomPool::RandomPool()", referenced from:
       CryptoPP::AutoSeededRandomPool::AutoSeededRandomPool(bool, unsigned
 int)in libmuleappcommon.a(libmuleappcommon_a-RandomFunctions.o)
   "CryptoPP::AutoSeededRandomPool::Reseed(bool, unsigned int)", referenced
 from:
       CryptoPP::AutoSeededRandomPool::AutoSeededRandomPool(bool, unsigned
 int)in libmuleappcommon.a(libmuleappcommon_a-RandomFunctions.o)
   "CryptoPP::RandomNumberGenerator::GenerateWord32(unsigned int, unsigned
 int)", referenced from:
       GetRandomUint16()     in libmuleappcommon.a(libmuleappcommon_a-
 RandomFunctions.o)
       GetRandomUint32()     in libmuleappcommon.a(libmuleappcommon_a-
 RandomFunctions.o)
       vtable for CryptoPP::AutoSeededRandomPoolin libmuleappcommon.a
 (libmuleappcommon_a-RandomFunctions.o)
   "CryptoPP::RandomNumberGenerator::GenerateBit()", referenced from:
       vtable for CryptoPP::AutoSeededRandomPoolin libmuleappcommon.a
 (libmuleappcommon_a-RandomFunctions.o)
   "CryptoPP::RandomPool::IncorporateEntropy(unsigned char const*, unsigned
 long)", referenced from:
       vtable for CryptoPP::AutoSeededRandomPoolin libmuleappcommon.a
 (libmuleappcommon_a-RandomFunctions.o)
   "CryptoPP::RandomNumberGenerator::GenerateBlock(unsigned char*, unsigned
 long)", referenced from:
       vtable for CryptoPP::AutoSeededRandomPoolin libmuleappcommon.a
 (libmuleappcommon_a-RandomFunctions.o)
   "vtable for CryptoPP::RandomNumberGenerator", referenced from:
       __ZTVN8CryptoPP21RandomNumberGeneratorE$non_lazy_ptr in
 libmuleappcommon.a(libmuleappcommon_a-RandomFunctions.o)
 ld: symbol(s) not found for architecture ppc
 collect2: ld returned 1 exit status
 lipo: can't open input file: /var/folders/jk/jkuVsCmqF6m6MFrW-
 JuX3k+++TI/-Tmp-//cctQxSoF.out (No such file or directory)
 make[3]: *** [amulegui] Error 1
 make[3]: *** Waiting for unfinished jobs....
 ld warning: in /opt/local/lib/libcryptopp.a, file is not of required
 architecture
 Undefined symbols for architecture ppc:
 }}}

 then follows several rows until:

 {{{
 ld: symbol(s) not found for architecture ppc
 collect2: ld returned 1 exit status
 lipo: can't open input file: /var/folders/jk/jkuVsCmqF6m6MFrW-
 JuX3k+++TI/-Tmp-//ccMLgXfR.out (No such file or directory)
 make[3]: *** [amule] Error 1
 make[2]: *** [all-recursive] Error 1
 make[1]: *** [all-recursive] Error 1
 make: *** [all] Error 2
 }}}

 I don't know if this problem is related either to the portfile or to the
 source config file...

 Thanks...

-- 
Ticket URL: <http://trac.macports.org/ticket/19368>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list