libgcrypt and +universal variant

Ryan Schmidt ryandesign at macports.org
Thu Jun 7 01:43:27 PDT 2007


On Jun 7, 2007, at 03:32, Philippe BERNERY wrote:

> I tried to add
>
>    if {[variant_isset universal]} {
>        configure.args-append --disable-static
>    }
>
> but I get the following output:
>
>
> Portfile changed since last build; discarding previous state.
> --->  Fetching libgcrypt
> --->  Verifying checksum(s) for libgcrypt
> --->  Extracting libgcrypt
> --->  Configuring libgcrypt
> --->  Building libgcrypt with target all
> Error: Target com.apple.build returned: shell command " cd
> "/opt/local/var/db/dports/build/ 
> _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_ 
> dports_devel_libgcrypt/work/libgcrypt-1.2.4"
> && make all " returned error 2
> Command output: /usr/bin/gcc-4.0 -dynamiclib -flat_namespace
> -undefined suppress -o .libs/libgcrypt.11.2.3.dylib
> .libs/libgcrypt_la-misc.o .libs/libgcrypt_la-global.o
> .libs/libgcrypt_la-sexp.o .libs/libgcrypt_la-stdmem.o
> .libs/libgcrypt_la-secmem.o .libs/libgcrypt_la-missing-string.o
> .libs/libgcrypt_la-module.o .libs/libgcrypt_la-ath.o -all_load
> ../cipher/.libs/libcipher.a ../mpi/.libs/libmpi.a  -L/opt/local/lib
> /opt/local/lib/libgpg-error.dylib /opt/local/lib/libintl.dylib
> /opt/local/lib/libiconv.dylib -install_name
> /opt/local/lib/libgcrypt.11.dylib -compatibility_version 14
> -current_version 14.3
> (cd .libs && rm -f libgcrypt.11.dylib && ln -s libgcrypt.11.2.3.dylib
> libgcrypt.11.dylib)
> (cd .libs && rm -f libgcrypt.dylib && ln -s libgcrypt.11.2.3.dylib
> libgcrypt.dylib)
> creating libgcrypt.la
> (cd .libs && rm -f libgcrypt.la && ln -s ../libgcrypt.la libgcrypt.la)
> Making all in doc
> make[2]: Nothing to be done for `all'.
> Making all in tests
> /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I../src
> -I/opt/local/include -I/opt/local/include -O2 -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -Wall -c prime.c
> /bin/sh ../libtool --tag=CC --mode=link /usr/bin/gcc-4.0
> -I/opt/local/include -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> -arch i386 -arch ppc -Wall  -L/opt/local/lib -arch i386 -arch ppc -o
> prime  prime.o ../src/libgcrypt.la
> mkdir .libs
> /usr/bin/gcc-4.0 -I/opt/local/include -O2 -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -Wall -arch i386
> -arch ppc -o .libs/prime prime.o  -L/opt/local/lib
> ../src/.libs/libgcrypt.dylib /opt/local/lib/libgpg-error.dylib
> /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib -lc
> /usr/bin/ld: for architecture ppc
> /usr/bin/ld: warning ../src/.libs/libgcrypt.dylib cputype (7,
> architecture i386) does not match cputype (18) for specified -arch
> flag: ppc (file not loaded)
> /usr/bin/ld: warning prebinding disabled because dependent library:
> /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libgpg-error.0.dylib is
> not prebound
> /usr/bin/ld: Undefined symbols:
> _gcry_check_version
> _gcry_control
> _gcry_mpi_add_ui
> _gcry_mpi_dump
> _gcry_mpi_release
> _gcry_prime_check
> _gcry_prime_generate
> _gcry_prime_group_generator
> _gcry_prime_release_factors
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/tmp//ccapeII6.out (No such file  
> or directory)
> make[2]: *** [prime] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2

Ok, so it sounds like libgcrypt is going to need more help to build  
universal. You may want to open a ticket in Trac and assign it to the  
port's maintainer.





More information about the macports-users mailing list