Compiling differences between Linux and FreeBSD

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    Compiling differences between Linux and FreeBSD

    I have a program that runs fine on FreeBSD but yesterday I transferred it over to a linux box and it failed. (Actually it's a web server on a shared host). What is happening is a run time linker utility is in /libexec but that path does not exist in Linux and, perhaps, not even that utility, don't know.

    The utility is ld-elf.so.1. It tries to call in some run-time libraries, I guess. I tried to compile it with gcc -static but it still fails to run.

    This little app only does a short series of 'printf's' and nothing else.

    I tried all this right before going to bed so I haven't looked into it yet. Hoping someone here might have a ready solution. In the meantime, I'm going to fire up one of my boxes and reinstall Linux on it. Perhaps just copying the code to there and recompiling will solve the issue.
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    I compiled this little program with Knoppix and it worked but I'm still wondering if anyone would know of a workaround so I don't have to run to a Linux boxevery time.

    Comment

    Working...