Porting Pro*C to Linux 2.2.7

From: Thomas Pietz <top_at_intakt-online.de>
Date: Fri, 20 Aug 1999 14:45:35 +0200
Message-ID: <37BD4DEF.6449733D_at_intakt-online.de>



Hello !

I got a small problem when I try porting my C-Source from RS6000/AIX to Linux
2.2.7.

  1. Question: Where can I find the function sigrelse an sighold? Usuallay the protoypes of these functions are included in /usr/include/signal.h.
  2. Question: When I try to link the object files with the following command:

cc -L/opt/oracle/app/oracle/product/8.0.5/lib -o my_programm.o -lc
-lclntsh /opt/oracle/app/oracle/product/8.0.5/lib/scorept.o /opt/ora
cle/app/oracle/product/8.0.5/lib/sscoreed.o

/opt/oracle/app/oracle/product/8.0.5
/rdbms/lib/kpudfo.o -lclient -lsql
/opt/oracle/app/oracle/product/8.0.5/lib/naut
ab.o /opt/oracle/app/oracle/product/8.0.5/lib/naeet.o /opt/oracle/app/oracle/pro
duct/8.0.5/lib/naect.o /opt/oracle/app/oracle/product/8.0.5/lib/naedhs.o `cat /o
pt/oracle/app/oracle/product/8.0.5/lib/naldflgs` -lnetv2 -lnttcp
-lnetwork -lncr

 -lnetv2 -lnttcp -lnetwork -lclient -lvsn -lcommon -lgeneric -lmm
-lnlsrtl3 -lco

re4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lnetv2 -lnttcp -lnetwork -lncr -lnetv2
-lnttcp
-lnetwork -lclient -lvsn -lcommon -lgeneric
/opt/oracle/app/oracle/product/8.0.5
/lib/libplsf.a /opt/oracle/app/oracle/product/8.0.5/lib/libplsb.a
/opt/oracle/ap

p/oracle/product/8.0.5/lib/libextp.a -lepc -lnlsrtl3 -lcore4 -lnlsrtl3
-lcore4 -

lnlsrtl3 -lclient -lvsn -lcommon -lgeneric -lnlsrtl3 -lcore4 -lnlsrtl3
-lcore4 -

lnlsrtl3 `cat /opt/oracle/app/oracle/product/8.0.5/lib/sysliblist` -ldl
-lm

the linking fails with an error:

/usr/lib/crt1.o(.text+0x36): undefined reference to `main' collect2: ld returned 1 exit status

Thanks

Thomas Received on Fri Aug 20 1999 - 14:45:35 CEST

Original text of this message