freebsd to ubuntu

A

akiuni

Hi everybody,

I have to make a C program, built on freeBSD 5.3, compiling and working
well on Linux Ubuntu Dapper-Drake (6.0 if I remember)

I have never done that before, and I don't know how to proceed... Does
someone know a good way ?


NB:
If I try to compile my code on ubuntu, gcc wasn't able to find the
id_dl.h library.

After a little search, I have found that the "oskit package" was
including it:
( http://packages.ubuntu.com/ -> search if_dl.h )

I have installed it ( to see... ) and compiled my code with -I option,
but ubuntu found errors in the library (syntax error near __dead2 ...)

Do you think it is a solution ?



Thanks in advance
 
J

jacob navia

akiuni a écrit :
Hi everybody,

I have to make a C program, built on freeBSD 5.3, compiling and working
well on Linux Ubuntu Dapper-Drake (6.0 if I remember)

You have some work ahead.
I have never done that before, and I don't know how to proceed... Does
someone know a good way ?

1) Send the code to the ubuntu machine.
2) Build the software
3) If you get errors find somebody that knows how to do that.

If you do not find anyone or if you have no money to pay
a programmer then you will have to fix that yourself.
NB:
If I try to compile my code on ubuntu, gcc wasn't able to find the
id_dl.h library.

That's not a library, it is a header file. Since you apparently
don't know the difference between those, this job is too much for
your level of knowledge. Get a book about Unix and C and
start learning.
After a little search, I have found that the "oskit package" was
including it:
( http://packages.ubuntu.com/ -> search if_dl.h )

I have installed it ( to see... ) and compiled my code with -I option,
but ubuntu found errors in the library (syntax error near __dead2 ...)

Do you think it is a solution ?

No, that is not a solution. Why did you install the package?
Did you check the compile time flags? Maybe that
package is not needed but the compilation flags weren't set
so it will include a lot of stuff it doesn't need.

There is no other solution than learning what you are
doing. Before starting things try to understand what
is happening and why things fail.
 
S

santosh

akiuni said:
Hi everybody,

I have to make a C program, built on freeBSD 5.3, compiling and working
well on Linux Ubuntu Dapper-Drake (6.0 if I remember)

I have never done that before, and I don't know how to proceed... Does
someone know a good way ?

Please try comp.unix.programmer or the Ubuntu support forums.
 
A

akiuni

Hi,

Thank you for your answers.

The program that I have to port on Unbuntu is quite small (about 1500
lines). I've started to re-write it using Linux "headers", everythings
is going well...

As you have guessed, I'm not a real C programmer, but sometimes you
don't have the choice ! ;-)

many thanks

PS: the header file is if_dl.h


jacob navia a écrit :
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top