libgcrypt and +universal variant

Philippe BERNERY philippe.bernery at
Thu Jun 7 01:32:48 PDT 2007

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 returned: shell command " cd
&& 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
(cd .libs && rm -f libgcrypt.dylib && ln -s libgcrypt.11.2.3.dylib
(cd .libs && rm -f && ln -s ../
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/
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:
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

Philippe BERNERY

More information about the macports-users mailing list