Compiling with POSIX

From: Dege, Robert C. <robert.dege_at_ngc.com>
Date: Mon, 20 Dec 2004 13:38:08 -0600

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
Received on Mon Dec 20 2004 - 19:40:49 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT