Ken, Did you configure the build.properties file appropriately? You have to set the "lejos.ostype" property to "linux".
Which version of gcc are you using? Cheers, Matthias Ken Pugsley wrote: > I'm trying to use Ubuntu 6.10 and Lejos 3.0.0-RC2. When I go to lejos/build > and run 'ant', I'm getting the message posted below. Any help appreciated. > > Thanks - > Ken > > ~/lejos/build$ ant > Buildfile: build.xml > > clean: > [echo] saving existing files to .bak files > > emulator: > > clean: > > make: > [cc] 2 total files to be compiled. > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:6:23: error: > sys/types.h: No such file or directory > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:7:20: error: stdlib.h: > No such file or directory > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:8:20: error: unistd.h: > No such file or directory > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:9:20: error: string.h: > No such file or directory > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:10:22: error: > sys/stat.h: No such file or directory > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c: In function > ‘lastIndexOf’: > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:34: warning: > incompatible implicit declaration of built-in function ‘strlen’ > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c: In function > ‘newString’: > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:50: warning: > incompatible implicit declaration of built-in function ‘malloc’ > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:50: warning: > incompatible implicit declaration of built-in function ‘strlen’ > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:51: warning: > incompatible implicit declaration of built-in function ‘strcpy’ > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c: In function > ‘substring’: > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:65: error: ‘NULL’ > undeclared (first use in this function) > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:65: error: (Each > undeclared identifier is reported only once > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:65: error: for each > function it appears in.) > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:66: warning: > incompatible implicit declaration of built-in function ‘malloc’ > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:67: warning: > incompatible implicit declaration of built-in function ‘strncpy’ > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c: In function > ‘pdirname’: > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:94: error: ‘NULL’ > undeclared (first use in this function) > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c: In function ‘append’: > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:106: warning: > incompatible implicit declaration of built-in function ‘malloc’ > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:106: warning: > incompatible implicit declaration of built-in function ‘strlen’ > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:107: warning: > incompatible implicit declaration of built-in function ‘strcpy’ > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:108: warning: > incompatible implicit declaration of built-in function ‘strcat’ > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c: In function > ‘fileExists’: > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:114: error: storage > size of ‘st’ isn’t known > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c: In function ‘whichp’: > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:143: error: ‘NULL’ > undeclared (first use in this function) > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c: In function ‘which’: > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:153: warning: > assignment makes pointer from integer without a cast > [cc] /home/ken/lejos/src/tools/emu-lejos/util.c:154: error: ‘NULL’ > undeclared (first use in this function) > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:7:19: error: > stdio.h: No such file or directory > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:8:20: error: > stdlib.h: No such file or directory > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:9:20: error: > unistd.h: No such file or directory > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:11:20: error: > string.h: No such file or directory > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c: In function > ‘get_loader_classpath’: > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:102: warning: > assignment makes pointer from integer without a cast > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:103: error: ‘NULL’ > undeclared (first use in this function) > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:103: error: (Each > undeclared identifier is reported only once > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:103: error: for > each function it appears in.) > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c: In function > ‘main’: > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:133: error: ‘NULL’ > undeclared (first use in this function) > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:135: warning: > incompatible implicit declaration of built-in function ‘fprintf’ > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:135: error: > ‘stderr’ undeclared (first use in this function) > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:136: warning: > incompatible implicit declaration of built-in function ‘exit’ > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:151: warning: > incompatible implicit declaration of built-in function ‘malloc’ > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:170: warning: > assignment makes pointer from integer without a cast > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:183: warning: > assignment makes pointer from integer without a cast > [cc] /home/ken/lejos/src/tools/emu-lejos/javaexec.c:202: warning: > incompatible implicit declaration of built-in function ‘fprintf’ > > BUILD FAILED > /home/ken/lejos/build/build.xml:64: The following error occurred while > executing this line: > /home/ken/lejos/src/tools/emu-lejos/build.xml:24: gcc failed with return code > 1 > > Total time: 2 seconds > > > > > > > > ____________________________________________________________________________________ > Want to start your own business? > Learn how on Yahoo! Small Business. > http://smallbusiness.yahoo.com/r-index > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Lejos-discussion mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/lejos-discussion ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Lejos-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lejos-discussion
