Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> REPOST: linking oracle program using $(STATICPROLDLIBS)

REPOST: linking oracle program using $(STATICPROLDLIBS)

From: nico <nico.blokhuis_at_centric.nl>
Date: 27 Dec 2001 03:50:36 -0800
Message-ID: <2$--$$_--%%___--_$@news.noc.cabal.int>


I try to link an oracle 8 program using $(STATICPROLDLIBS) Still get undefined symbols, next is the output using -bnoquiet. Using $(PROLDLIBS), the shared libs version for the program, gives no undefined symbols. What goes wrong in making the static version?

My makefile:

gserver: gba.c con_sql.c

        cc -bnoquiet -o connect gba.c con_sql.c \
        -I$(ORACLE_HOME)/rdbms/demo \
        -L$(ORACLE_HOME)/lib $(STATICPROLDLIBS)

The output:  

ld: 0711-318 ERROR: Undefined symbols were found.

        The following symbols are in error:
 Symbol                    Inpndx  TY CL Source-File(Object-File) OR
Import-File
{Shared-object}
                              RLD: Address  Section  Rld-type
Referencing Symbol

 .odescr                   [312]   ER PR con_sql.c(con_sql.o)
                                   00000090 .text    R_RBR    [12]   

.describe_

define_p
                                   000002cc .text    R_RBR    [14]   

.describe_

define_c
                                   00001f64 .text    R_RBR    [40]   

.describe_

define
 .odefin                   [314]   ER PR con_sql.c(con_sql.o)
                                   000001c8 .text    R_RBR    [12]   

.describe_

define_p
                                   00000404 .text    R_RBR    [14]   

.describe_

define_c
                                   0000209c .text    R_RBR    [40]   

.describe_

define
 .oerhms                   [326]   ER PR con_sql.c(con_sql.o)
                                   000007c8 .text    R_RBR    [22]   

.ora_error
.ofetch [330] ER PR con_sql.c(con_sql.o) 00000a04 .text R_RBR [26]
.get_row_2
0000111c .text R_RBR [32]
.get_row
00001bbc .text R_RBR [38]

.get_keyva

l
 .oparse                   [334]   ER PR con_sql.c(con_sql.o)
                                   00000d68 .text    R_RBR    [28]   

.get_cdata
00001934 .text R_RBR [34]
.get_pdata
00002e14 .text R_RBR [54]
.getkeys
.oexec [336] ER PR con_sql.c(con_sql.o) 00000dc4 .text R_RBR [28]
.get_cdata
00001990 .text R_RBR [34]
.get_pdata
00002e70 .text R_RBR [54]
.getkeys
.ocom [340] ER PR con_sql.c(con_sql.o) 00001e38 .text R_RBR [38]

.get_keyva

l
                                   00001e68 .text    R_RBR    [38]   

.get_keyva

l
                                   00002ed4 .text    R_RBR    [54]   

.getkeys
.ocan [342] ER PR con_sql.c(con_sql.o) 00001e8c .text R_RBR [38]

.get_keyva

l
 .oclose                   [356]   ER PR con_sql.c(con_sql.o)
                                   00002fa4 .text    R_RBR    [56]   

.close_db
00002fe4 .text R_RBR [56]
.close_db
00003028 .text R_RBR [56]
.close_db
.ologof [358] ER PR con_sql.c(con_sql.o) 0000306c .text R_RBR [56]
.close_db
.olog [360] ER PR con_sql.c(con_sql.o) 0000316c .text R_RBR [58]

.connect_d

b
 .oopen                    [362]   ER PR con_sql.c(con_sql.o)
                                   000031cc .text    R_RBR    [58]   

.connect_d

b
                                   0000322c .text    R_RBR    [58]   

.connect_d

b
                                   0000328c .text    R_RBR    [58]   

.connect_d

b
 .ocof                     [364]   ER PR con_sql.c(con_sql.o)
                                   000032d4 .text    R_RBR    [58]   

.connect_d

b
ER: The return code is 8.
make: The error code from the last command is 8.

This message was cancelled from within Mozilla. Received on Thu Dec 27 2001 - 05:50:36 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US