unzip: problems with architectures and ld

Ryan Schmidt ryandesign at macports.org
Tue Nov 4 19:12:34 PST 2014


> On Nov 4, 2014, at 3:55 PM, Davide Liessi wrote:
> 
> Hi all.
> I have a custom MacPorts installation in /opt/macports-i386.
> Apart from the location, the only non-default option in macports.conf
> is 'build_arch i386'.
> Trying to install unzip I get a bunch of warnings like
> 
> ld: warning: in unzip.o, file was built for i386 which is not the
> architecture being linked (x86_64)
> 
> and the following error
> 
> Undefined symbols:
>  "_main", referenced from:
>      start in crt1.10.6.o
> ld: symbol(s) not found
> 
> This happens both with and without trace mode.
> Please find attached the main.log of `sudo /opt/macports-i386/bin/port
> -t install unzip`.
> 
> How can this be solved?

Thanks for reporting this problem. I've fixed it:

http://trac.macports.org/changeset/127838





More information about the macports-users mailing list