473,395 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

freebsd to ubuntu

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


Jan 15 '07 #1
3 2076
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.
Jan 15 '07 #2
akiuni wrote:
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.

Jan 15 '07 #3
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 :
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.
Jan 21 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Martin Maney | last post by:
Apologies if this isn't news here - I've been too busy this last week or so for even skimming the traffic here, in part because I've been messing around with Ubuntu's preview release on a spare...
2
by: SPE - Stani's Python Editor | last post by:
Hi, I'm playing around with the latest (soon to be released) SPE on Ubuntu. This probably will increase the quality of SPE on Ubuntu and Linux/GTK in general. I already made some patches, but I...
2
by: Pradnyesh Sawant | last post by:
Hello, I have a newly installed ubuntu 6.06 system. I am trying to install pyqt4 on it, but without success. The contents of the /etc/apt/sources.list file are:...
1
by: SPE - Stani's Python Editor | last post by:
Hi All, If you wrote some python code that you want to package or know a cool python application of which you like to make a deb installer, the python packaging session is all for you! Do you...
11
by: Ix | last post by:
It seems not remember how to compile with gcc a C program in linux (ubuntu) how i have to compile this programme? It seems gcc doesn't find stdio.h.. why is all antiintuitive? Thank you and...
3
by: azrael | last post by:
Hy folks A friend of mine told me something about Guido and google developing an Ubuntu distribution based and totaly oriented for the Python appliction development. I googled for it with no...
0
by: Akira Kitada | last post by:
Hi list, I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed to build some of the modules. """ Failed to find the necessary bits to build these modules: _bsddb ...
0
by: Akira Kitada | last post by:
Hi Marc-Andre, Thanks for the suggestion. I opened a ticket for this issue: http://bugs.python.org/issue4204 Now I understand the state of the multiprocessing module, but it's too bad to see...
0
by: M.-A. Lemburg | last post by:
On 2008-10-25 20:19, Akira Kitada wrote: Thanks. The errors you are getting appear to be related to either some missing header files or a missing symbol definition to enable these - looking...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.