OK... I solved this issue.  After some searching and installing libraries, I 
finally got the build to complile.  In Ubuntu 6.10, you must make sure you have 
the libc6-dev package installed.  I think you may also need to have the gcj and 
gcj-4.1 packages installed as well.

- Ken

----- Original Message ----
From: Ken Pugsley <[EMAIL PROTECTED]>
To: Matthias Paul Scholz <[EMAIL PROTECTED]>
Cc: lejos-discussion@lists.sourceforge.net
Sent: Tuesday, November 28, 2006 4:02:14 PM
Subject: Re: [Lejos-discussion] Lejos on Ubuntu 6.10 - problems compiling

Matthias - 

I did not change the build.properties file, however it already has these 
settings:

    lejos.compiler=gcc 
    lejos.ostype=linux

As for gcc, the gcc -dumpversion says "4.1.2".

- Ken

----- Original Message ----
From: Matthias Paul Scholz <[EMAIL PROTECTED]>
To: Ken Pugsley <[EMAIL PROTECTED]>
Cc: lejos-discussion@lists.sourceforge.net
Sent: Tuesday, November 28, 2006 10:40:14 AM
Subject: Re: [Lejos-discussion] Lejos on Ubuntu 6.10 - problems compiling

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
> Lejos-discussion@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lejos-discussion





 
____________________________________________________________________________________
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
Lejos-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lejos-discussion





 
____________________________________________________________________________________
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited

-------------------------------------------------------------------------
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
Lejos-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lejos-discussion

Reply via email to