Hi MacPorters! I'm trying to create a Portfile for 9base [1], a collection of utilities ported from Plan9 (actually a stripped down version of plan9ports). So i studied a few different Portfiles and came up with a draft, i'll attach to this mail.
Now, my problem is that linking fails with:
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
(The full build log is attached to this mail. )
Googling didn't help me much, i only came up with people having problems
building universal binaries [2].
I had a look and the SDK seems only to contain a crt1.o:
-rw-r--r-- 1 root wheel 15K Mar 26 07:12
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/crt1.o
Has anybody an idea, what could be causing this?
I'm quite new to the whole macports business so please excuse if this is
obvious :)
Ciao,
Sven
[1]<http://tools.suckless.org/9base>
[2]<http://lists.apple.com/archives/Xcode-users/2007/Oct/msg00686.html>
build.log
Description: Binary data
Portfile
Description: Binary data
_______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
