Compiling with POSIX

From: Dege, Robert C. (robert.dege@ngc.com)
Date: Mon Dec 20 2004 - 14:38:08 EST


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



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:50:13 EDT