[MacPorts] #22610: apr-util port installed with x86_64 architecture only
MacPorts
noreply at macports.org
Thu Nov 19 19:12:59 PST 2009
#22610: apr-util port installed with x86_64 architecture only
-------------------------------------------------+--------------------------
Reporter: lucien.gentis@… | Owner: dluke@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.1
Keywords: | Port: apr-util apache2
-------------------------------------------------+--------------------------
Description changed by jmr@…:
Old description:
> Hello,
>
> Machine : iMac - Intel Core 2 Duo
> System : Mac OS X 10.6.2
>
> I wanted to build apache2 port via command "sudo port install apache2",
> and got following error :
>
> *******************************************************************************
> /opt/local/share/apr-1/build/libtool --silent --mode=link
> /usr/bin/gcc-4.2 -I/opt/local/include -O2 -arch x86_64 -arch i386
> -L/opt/local/lib/db46 -L/opt/local/lib -arch x86_64 -arch i386 -o
> htpasswd htpasswd.lo -L/opt/local/lib -lpcre
> /opt/local/lib/libaprutil-1.la -ldb-4.6 -lexpat -liconv
> /opt/local/lib/libapr-1.la -lpthread
> /opt/local/share/apr-1/build/libtool --silent --mode=link
> /usr/bin/gcc-4.2 -I/opt/local/include -O2 -arch x86_64 -arch i386
> -L/opt/local/lib/db46 -L/opt/local/lib -arch x86_64 -arch i386 -o
> htdigest htdigest.lo -L/opt/local/lib -lpcre
> /opt/local/lib/libaprutil-1.la -ldb-4.6 -lexpat -liconv
> /opt/local/lib/libapr-1.la -lpthread
> ld: warning: in /opt/local/lib/libaprutil-1.dylib, file is not of
> required architecture
> Undefined symbols for architecture i386:
> "_apr_sha1_base64", referenced from:
> _main in htpasswd.o
> "_apr_md5_encode", referenced from:
> _main in htpasswd.o
> ld: symbol(s) not found for architecture i386
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/tmp//ccXvh5lT.out (No such file or
> directory)
> make[2]: *** [htpasswd] Error 1
> make[2]: *** Waiting for unfinished jobs....
> ld: warning: in /opt/local/lib/libaprutil-1.dylib, file is not of
> required architecture
> Undefined symbols for architecture i386:
> "_apr_md5_update", referenced from:
> _add_password in htdigest.o
> "_apr_md5_final", referenced from:
> _add_password in htdigest.o
> "_apr_md5_init", referenced from:
> _add_password in htdigest.o
> ld: symbol(s) not found for architecture i386
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/tmp//cczMWGnn.out (No such file or
> directory)
> make[2]: *** [htdigest] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
>
> Error: Status 1 encountered during processing.
> *****************************************************************************
>
> apache2 tries to build with both architectures x86_64 and i386, and apr-
> util builds only with x86_64 architecture whatever value has parameter
> build_arch in macport.conf
>
> command "file /opt/local/lib/libaprutil-1.0.3.9.dylib" only returns :
> /opt/local/lib/libaprutil-1.0.3.9.dylib: Mach-O 64-bit dynamically linked
> shared library x86_64
>
> The only way I found to install apache2 was to set universal_archs to
> x86_64 in macport.conf, which is not very "clean".
>
> Summary :
> 1. apr-util builds with x86_64 architecture only, even if build_arch
> parameter is set to a value of "x86_64 i386"
> 2. apache2 tries to build with both x86_64 and i386 architectures, but it
> should only build with x86_64 as I work on iMac (64 bits) under Snow
> Leopard (as said in comments for build_arch parameter in macport.conf)
>
> Lucien
New description:
Hello,
Machine : iMac - Intel Core 2 Duo
System : Mac OS X 10.6.2
I wanted to build apache2 port via command "sudo port install apache2",
and got following error :
*******************************************************************************
{{{
/opt/local/share/apr-1/build/libtool --silent --mode=link /usr/bin/gcc-4.2
-I/opt/local/include -O2 -arch x86_64 -arch i386 -L/opt/local/lib/db46
-L/opt/local/lib -arch x86_64 -arch i386 -o htpasswd htpasswd.lo
-L/opt/local/lib -lpcre /opt/local/lib/libaprutil-1.la -ldb-4.6 -lexpat
-liconv /opt/local/lib/libapr-1.la -lpthread
/opt/local/share/apr-1/build/libtool --silent --mode=link /usr/bin/gcc-4.2
-I/opt/local/include -O2 -arch x86_64 -arch i386 -L/opt/local/lib/db46
-L/opt/local/lib -arch x86_64 -arch i386 -o htdigest htdigest.lo
-L/opt/local/lib -lpcre /opt/local/lib/libaprutil-1.la -ldb-4.6 -lexpat
-liconv /opt/local/lib/libapr-1.la -lpthread
ld: warning: in /opt/local/lib/libaprutil-1.dylib, file is not of required
architecture
Undefined symbols for architecture i386:
"_apr_sha1_base64", referenced from:
_main in htpasswd.o
"_apr_md5_encode", referenced from:
_main in htpasswd.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccXvh5lT.out (No such file or
directory)
make[2]: *** [htpasswd] Error 1
make[2]: *** Waiting for unfinished jobs....
ld: warning: in /opt/local/lib/libaprutil-1.dylib, file is not of required
architecture
Undefined symbols for architecture i386:
"_apr_md5_update", referenced from:
_add_password in htdigest.o
"_apr_md5_final", referenced from:
_add_password in htdigest.o
"_apr_md5_init", referenced from:
_add_password in htdigest.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//cczMWGnn.out (No such file or
directory)
make[2]: *** [htdigest] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Error: Status 1 encountered during processing.
}}}
*****************************************************************************
apache2 tries to build with both architectures x86_64 and i386, and apr-
util builds only with x86_64 architecture whatever value has parameter
build_arch in macport.conf
command "file /opt/local/lib/libaprutil-1.0.3.9.dylib" only returns :
{{{
/opt/local/lib/libaprutil-1.0.3.9.dylib: Mach-O 64-bit dynamically linked
shared library x86_64
}}}
The only way I found to install apache2 was to set universal_archs to
x86_64 in macport.conf, which is not very "clean".
Summary :
1. apr-util builds with x86_64 architecture only, even if build_arch
parameter is set to a value of "x86_64 i386"
2. apache2 tries to build with both x86_64 and i386 architectures, but it
should only build with x86_64 as I work on iMac (64 bits) under Snow
Leopard (as said in comments for build_arch parameter in macport.conf)
Lucien
--
--
Ticket URL: <http://trac.macports.org/ticket/22610#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list