Page 1 of 1

Building Kpack on Linux

Posted: Sun Mar 03, 2013 2:51 am
by stefano
Hi,
I'm trying to build kpack for linux on my Ubuntu machine. But I get the next errors:

Code: Select all

kpack.o: In function `_start':
(.text+0x5e8): undefined reference to `putchar'
kpack.o: In function `_start':
(.text+0x614): undefined reference to `fopen'
kpack.o: In function `_start':
(.text+0x630): undefined reference to `ftell'
kpack.o: In function `_start':
(.text+0x640): undefined reference to `fseek'
kpack.o: In function `_start':
(.text+0x64c): undefined reference to `ftell'
kpack.o: In function `_start':
(.text+0x65e): undefined reference to `fseek'
kpack.o: In function `_start':
(.text+0x67f): undefined reference to `malloc'
kpack.o: In function `_start':
(.text+0x69e): undefined reference to `fread'
kpack.o: In function `_start':
(.text+0x6c8): undefined reference to `fwrite'
kpack.o: In function `_start':
(.text+0x6e8): undefined reference to `fclose'
kpack.o: In function `_start':
(.text+0x6fd): undefined reference to `free'
kpack.o: In function `_start':
(.text+0x70f): undefined reference to `exit'
Some suggestion?

Re: Building Kpack on Linux

Posted: Sun Mar 03, 2013 11:45 am
by SoUrcerer
Link it to libc.

Re: Building Kpack on Linux

Posted: Sun Mar 03, 2013 3:38 pm
by Mario_r4
esevece
http://websvn.kolibrios.org/listing.php ... 3640bc5ef9
You use these sources? Or others?

Re: Building Kpack on Linux

Posted: Tue Mar 05, 2013 3:36 am
by stefano
SoUrcerer wrote:Link it to libc.
How can I do that?
Mario_r4 wrote:esevece
http://websvn.kolibrios.org/listing.php ... 3640bc5ef9
You use these sources? Or others?
Yes. I'm using these on Ubuntu 12.04 64 bits.

Re: Building Kpack on Linux

Posted: Wed Mar 13, 2013 5:22 pm
by stefano
Now works!
Thank you.

Re: Building Kpack on Linux

Posted: Wed Mar 13, 2013 5:26 pm
by SoUrcerer
You used 32-bit libc for linking this time, right?

Re: Building Kpack on Linux

Posted: Wed Mar 13, 2013 7:52 pm
by stefano
I don't know.
I have removed the directory where I had the source of Kolibri, and I have run "svn co svn://kolibrios.org" to recreate the directory. After that I tried to build kpack and an error appeared that said something like I have to compile it as 32 bits (no the errors that I posted in the first post). So, I added "-m32" to the line of build.sh where calls to gcc.