pc3.lnk [was:Re: RTESys_TestAndLock/InitLock/Unlock on SunOS/x86 ]

"Döhr, Markus Hermeskeil" <[email protected]> Thu, 6 Feb 2003 13:02:31 +0100
Newsgroups gmane.comp.db.sapdb.sources
Message-ID <220DA83AFDFED6119BB0000802249E42AD0028@si-ntmail.siegenia-aubi.com>
Got pas the last error with some advise :-)

The dbmcli is running and I can connect to an R/3-System:

./dbmcli on aubir3t1 : T01>dbm_version
OK
VERSION    = 7.3.0
BUILD      = DBMServer 7.3.0    Build 029-000-087-696
OS         = UNIX
INSTROOT   = /sapdb/T01/db
LOGON      = False
CODE       = ASCII
SWAP       = full
UNICODE    = NO
INSTANCE   = OLTP
SYSNAME    = Linux 

---

*smile*


Next problem is real weired:

pc3.lnk   fast 
cc: Warning: using -Xt, ignoring all other -X options
cc: Warning: using -Xt, ignoring all other -X options
Undefined                       first referenced
 symbol                             in file
s30lenl                             ../obj//pc.rel.o
ld: fatal: Symbol referencing errors. No output written to pc3
Error while executing CC -mt -o pc3 -L/home/doehrm/sapdb/TOOLSRC/lib -L\
/home/doehrm/sapdb/sapdb-74/usr/lib ../obj/pc/vpc30c.o ../obj/pc/vpc31.o\
 ../obj/pc/vpc32c.o ../obj/pc/vpc13.o ../obj/pc/vpc11Version.o ../obj//p\
c.rel.o ../obj//libsqlrte-NoNI.rel.o ../obj//libsqlptc.rel.o s100buildnu\
mber_PID27471.o /home/doehrm/sapdb/TOOLSRC/lib/libsqlptc.a -lcurses -Bdy\
namic -lm -Bdynamic -lsocket -lnsl -lpthread -lrt what_pc3_PID27471.o 
message: 
COMMAND error 1 
userx.lnk fast 

Interesting enough that s30len1 is exported in libsqlrte-NoNI.rel.o:

bash-2.05$ nm libsqlrte-NoNI.rel.o | grep -v UNDEF | grep s30len1
[1432]  |    320632|      78|FUNC |GLOB |0    |1      |s30len1


and it's getting more weired:


userx.lnk fast 
Undefined                       first referenced
 symbol                             in file
initscr32                           ../obj//enalib.a(ven041.o)
cur_strs                            ../obj//enalib.a(ven042.o)
getcurx                             ../obj//enalib.a(ven041.o)
getcury                             ../obj//enalib.a(ven041.o)
w32attrset                          ../obj//enalib.a(ven041.o)
s30lenl                             ../obj//inlib.a(vin32.o)
vid32attr                           ../obj//enalib.a(ven041.o)
acs32map                            ../obj//enalib.a(ven042.o)
w32addch                            ../obj//enalib.a(ven041.o)
ld: fatal: Symbol referencing errors. No output written to userx
Error while executing CC -mt -o userx -L/home/doehrm/sapdb/TOOLSRC/lib \
-L/home/doehrm/sapdb/sapdb-74/usr/lib ../obj/in/vin85.o ../obj/eo/veo301\
-in85.o ../obj//inlib.a ../obj/en/ven06.o ../obj/en/ven17.o ../obj/en/ve\
n37.o ../obj//enalib.a ../obj//splib.a s100buildnumber_PID28308.o /home/\
doehrm/sapdb/TOOLSRC/lib/libsqlptc.a -lcurses -Bdynamic -lm -Bdynamic -l\
socket -lnsl -lpthread -lrt what_userx_PID28308.o 


initscr32 and the like are definitely defined in libcurses.a:

bash-2.05$ nm /usr/lib/libcurses.a | grep initscr32 | grep -v UNDEF
[19]    |         6|     259|FUNC |GLOB |0    |3      |initscr32

which is already on the link line. I tried back and forth for hours and I
found out, that it _only_ works, if /usr/lib is also included in the -L
flags... which is true for the libcurse problem but not for the s30len1...


Anyone seen this before? I can reproduce this on SPARC too... Can someone
post a build extract from a SPARC build? Just curious what options are used
there...

Thanx!

-- 
Markus Doehr            	     SIEGENIA-AUBI KG
CCC - SAP R/3 Basis, SAPDB-DBA     Industriestr. 1 - 3 
fon: +49 6503 917 152              57234 Wilnsdorf-Niederdielfen
fax: +49 6503 917 190              http://www.siegenia-aubi.com