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.