Linking error when building 9base

Sven Schober sschober at sssm.de
Sun May 30 12:08:38 PDT 2010


Thx. I was just preparing a mail quoting the man page too :) RTFM i guess...


Ciao,
 Sven

On May 30, 2010, at 8:54 PM, Rainer Müller wrote:

> On 2010-05-30 19:12 , Sven Schober wrote:
>> LD yacc
>> ld: library not found for -lcrt0.o
>> collect2: ld returned 1 exit status
>> make[1]: *** [yacc] Error 1
>> make: *** [all] Error 2
>> Error: Target org.macports.build returned: shell command " cd "/Users/sven/.macports/opt/local/var/macports/build/_Users_sven_Fun_macports_ports_sysutils_9base/work/9base-5" && /usr/bin/make -j4 all CC="/usr/bin/gcc-4.2" LDFLAGS="-L/opt/local/lib -static" " returned error 2
>> DEBUG: Backtrace: shell command " cd "/Users/sven/.macports/opt/local/var/macports/build/_Users_sven_Fun_macports_ports_sysutils_9base/work/9base-5" && /usr/bin/make -j4 all CC="/usr/bin/gcc-4.2" LDFLAGS="-L/opt/local/lib -static" " returned error 2
>>    while executing
> 
> Static linking is not supported on Mac OS X. See the documentation for
> -static in gcc(1):
> 
> -static
>    On systems that support dynamic linking, this preve
> 
> nts linking with
>    the shared libraries.  On other systems, this option has no effect.
> 
>    This option will not work on Mac OS X unless all libraries
>    (including libgcc.a) have also been compiled with -static.  Since
>    neither a static version of libSystem.dylib nor crt0.o are
>    provided, this option is not useful to most people.
> 
> See also this article in the Mac OS X Reference Library:
> http://developer.apple.com/mac/library/qa/qa2001/qa1118.html
> 
> Rainer



More information about the macports-dev mailing list