Compiling with POSIX

From: Dege, Robert C. (robert.dege_at_ngc.com)
Date: 12/20/04

  • Next message: Maglinger, Paul: "Slightly off topic - Is there a SCO Unix Managers list?"
    Date: Mon, 20 Dec 2004 13:38:08 -0600
    To: "Tru64 list (E-mail)" <tru64-unix-managers@ornl.gov>
    
    

    I'm trying to compile a program on TRU64 5.1B machine, but am running into problems when
    including the posix libraries. Here is my output:

    # cc -o try -O4 -pthread -std -D_INTRINSICS -fprm d -ieee -DLANGUAGE_C try.c -ldbm -ldb -lm -lutil -lposix -lpthread -lexc

    # ./try
    460777:./try: /sbin/loader: Error: libposix.so: symbol "__ADA_NONBLOCKING_IO" unresolved
    460777:./try: /sbin/loader: Fatal Error: Load of "./try" failed: Unresolved symbol name

    # cat try.c
    #include <stdio.h>
    int main() { printf("Ok\n"); return(0); }

    If I remove the -lposix from the compile line, then the program runs fine. Am I missing
    some additional files that the posix libraries depend on?

    Any insight is appreciated.
    -Rob


  • Next message: Maglinger, Paul: "Slightly off topic - Is there a SCO Unix Managers list?"

    Relevant Pages

    • Compiling php on tru64 5.1b
      ... It really seems like tru64 is more and more neglected by developers. ... I was able to compile php a few years ago without too much trouble, ... declared type of that name visible. ...
      (Tru64-UNIX-Managers)
    • g++ missing
      ... I then proceeded with make and install for gcc-3.3.1. ... use, as make fails on the package I need to compile, as above. ... Apologies if this is a GNU question, but the GNU documentation seems to ... something about Tru64 that is getting in the way.... ...
      (Tru64-UNIX-Managers)
    • Re: using system to echo "hello world" gives SystemStackError
      ... thufir@arrakis:~/sun_tutorial$ cat build.rb ... require 'compile' ... puts "cleaning all class files..." ... def compile ...
      (comp.lang.ruby)
    • gcc & assembler
      ... bash-2.05$ cat rdtick.s ... int main ... But When I compile it as 32bit binary: ...
      (SunManagers)
    • Re: translate this psudocode to fortran..
      ... I tried googing it and saw couple of samples and came ... up with this but gfortran refueses to compile it ... # cat a.f ...
      (comp.lang.fortran)