Re: RTESys_TestAndLock/InitLock/Unlock on SunOS/x86

Daniel Dittmar <[email protected]> Wed, 05 Feb 2003 22:36:33 +0100
Newsgroups gmane.comp.db.sapdb.sources
Organization SAP AG
Message-ID <[email protected]>
Döhr, Markus Hermeskeil wrote:
> Undefiniertes                   erstmals referenziert
>  Symbol                             in Datei
> RTESys_TestAndLock                  ../obj//cservlib.a(SAPDBRTE.rel.o) \
> 
> RTESys_InitLock                     ../obj//cservlib.a(SAPDBRTE.rel.o) \
> 
> RTESys_Unlock                       ../obj//cservlib.a(SAPDBRTE.rel.o) \
> 
> e76_interlock                       ../obj//enalib.a(ven32-s.o) 
> ld: Schwerer Fehler: Symbolreferenzierungsfehler. Keine Ausgabe in dbmc\
> li geschrieben
> Error while executing CC -mt -ldl -o dbmcli -L/home/doehrm/sapdb/TOOLSR\
> C/lib -L/home/doehrm/sapdb/sapdb-74/usr/lib ../obj/cn/vcn12.o ../obj/cn/\
> vcn13.o ../obj/cn/vcn14.o ../obj//cservlib.a ../obj//splib.a ../obj//eox\
> lib.a ../obj//enalib.a s100buildnumber_PID24107.o /home/doehrm/sapdb/TOO\
> LSRC/lib/libsqlptc.a -lcurses -Bdynamic -lm -Bdynamic -lsocket -lnsl -lp\
> thread -lrt what_dbmcli_PID24107.o 
> message: 
> COMMAND error 1 
> 05-02-03 21:25:29 end    of    dbmcli.lnk   fast 
> 
> 
> These functions are defined in RTESys_Spinlock.c; the problem is, that for
> Sun/SPARC the functions are implemented using RTESys_AtomicSwapSun which is
> assembler (== Greek to me), so my question: Could the adopted sources for
> LINUX/IA64 be used, it appears to me the most ANSI like implementation...

As you're porting to a Intel platform, using either the linux or win32 
code seems your best bet. It simply depends on wether the compiler 
understands the same asm syntax.

Daniel Dittmar

-- 
Daniel Dittmar
SAP DB, SAP Labs Berlin
[email protected]
http://www.sapdb.org