how to compile daemon.pc
Date: Thu, 25 Jul 2002 08:02:24 +0200
Message-ID: <3D3F9470.2020708_at_schaefer-shop.de>
Hi guys and gals,
here's my problem.
I have an oracle 8.1.5 on a sun solaris server running.
And now I want to compile the daemon.pc.
The first step was to bring it through the Pro*C/C++ precompiler, which
worked fine without any errormessages.
The next step was to compile it with a C compiler. I have two to choose from.
the first one ist the C compile from the SUN workshop.
Here is the output
oracle_at_UE250:/oracle/Software/precomp/daemon # cc daemon.c
Undefined first referenced symbol in file sqlglm daemon.o sqlcxt daemon.old: fatal: Symbol referencing errors. No output written to a.out
the next one is a GNU C compiler
oracle_at_UE250:/oracle/Software/precomp/daemon # gcc daemon.c
/var/tmp/cc9nGPBP.o: In function `connect_error':
/var/tmp/cc9nGPBP.o(.text+0x18): undefined reference to `sqlglm'
/var/tmp/cc9nGPBP.o: In function `sql_error':
/var/tmp/cc9nGPBP.o(.text+0x84): undefined reference to `sqlglm'
/var/tmp/cc9nGPBP.o: In function `main':
/var/tmp/cc9nGPBP.o(.text+0x1dc): undefined reference to `sqlcxt'
/var/tmp/cc9nGPBP.o(.text+0x378): undefined reference to `sqlcxt'
/var/tmp/cc9nGPBP.o(.text+0x588): undefined reference to `sqlcxt'
/var/tmp/cc9nGPBP.o(.text+0x74c): undefined reference to `sqlcxt'
/var/tmp/cc9nGPBP.o(.text+0x928): undefined reference to `sqlcxt'
/var/tmp/cc9nGPBP.o(.text+0xaa4): more undefined references to `sqlcxt'
follow
collect2: ld returned 1 exit status
It seems, that in both cases the error is the same. Has anyone successfully compiled the daemon.c to get a working program?
Greetings
Markus
Received on Thu Jul 25 2002 - 08:02:24 CEST