Hallo I am new to gemstone and still leaning c. I am writing c code for gembuilder for c.I wrote a c program that includes gci.hf and gcirtl.hf as specified in the GemBuilder for C documentation. I am using the next commands to compile the code. Compile c code: $ g++ -fmessage-length=0 -fcheck-new -O3 -ggdb -m64 -pipe -D_REENTRANT -D_GNU_SOURCE -pthread -fPIC -fno-strict-aliasing -fno-exceptions -I/opt/gemstone/ Link c objects: $ g++ userCode.o $GEMSTONE/lib/gcirtlobj.o -Wl,-traditional -Wl,--warn-unresolved-symbols -m64 -lpthread -lcrypt -ldl -lc -lm -lrt -lpam -lpam_misc -Wl,-z,muldefs -o userAppl Can you please help me by giving some suggestions on debugging the code? When I compile and link the c code I get the following warnings: /opt/gemstone/GemStone64Bit3.3 /export/derby1/users/buildgss/ /opt/gemstone/GemStone64Bit3.3 /export/derby1/users/buildgss/ /opt/gemstone/GemStone64Bit3.3 /export/derby1/users/buildgss/ /export/derby1/users/buildgss/ /opt/gemstone/GemStone64Bit3.3 /export/derby1/users/buildgss/ I had some problems importing the pam libs, the system could not locate them. I installed libpam0g-dev this solved the problem. Should I have done something else? Are there any more libs that is recommended to install? Any pointers and advice will be appreciated. Thanking you in advance Gustav _______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Gustav, Here'sthe answer from engineering: The warnings about undefined Gci* symbols is
normal.
Those functions are resolved at runtime after one of the
$GEMSTONE/lib/libgci*.so
library is loaded. The library load is normally
accomplished by
calling GciRtlLoad or GciTsLoad from your application's
initialization code .
See comments on gcirtl.hf for GciRtlLoad and GciTsLoad
The "default path" is $GEMSTONE/lib
libpam0g-dev is an appropriate package .
If using the thread-safe GCI library , include gcits.hf
instead of gci.hf
and call GciTsLoad instead of GciRtlLoad .
Dale On 8/7/17 10:29 PM, gustav de ridder
via Glass wrote:
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Dale, Allen Thank you very much for the quick response, I appreciate it.On Tue, Aug 8, 2017 at 7:39 PM, Dale Henrichs via Glass <[hidden email]> wrote:
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Free forum by Nabble | Edit this page |