Board.KolibriOS.org

Official KolibriOS board
It is currently Sat Sep 21, 2019 6:35 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Building Kpack on Linux
PostPosted: Sun Mar 03, 2013 2:51 am 
Offline

Joined: Tue Feb 12, 2013 9:48 pm
Posts: 166
Hi,
I'm trying to build kpack for linux on my Ubuntu machine. But I get the next errors:
Code:
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?


Top
   
PostPosted: Sun Mar 03, 2013 11:45 am 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
Link it to libc.


Top
   
PostPosted: Sun Mar 03, 2013 3:38 pm 
Offline
Kernel Developer

Joined: Sun Feb 10, 2013 12:37 pm
Posts: 2329
esevece
http://websvn.kolibrios.org/listing.php ... 3640bc5ef9
You use these sources? Or others?

_________________
Всем чмоки в этом проекте! Засуньте эти 11 лет себе в жопу!


Top
   
PostPosted: Tue Mar 05, 2013 3:36 am 
Offline

Joined: Tue Feb 12, 2013 9:48 pm
Posts: 166
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.


Top
   
PostPosted: Wed Mar 13, 2013 5:22 pm 
Offline

Joined: Tue Feb 12, 2013 9:48 pm
Posts: 166
Now works!
Thank you.


Top
   
PostPosted: Wed Mar 13, 2013 5:26 pm 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
You used 32-bit libc for linking this time, right?


Top
   
PostPosted: Wed Mar 13, 2013 7:52 pm 
Offline

Joined: Tue Feb 12, 2013 9:48 pm
Posts: 166
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited