Archived
This forum has been archived. Please start a new discussion on GitHub.
Freeze runtime error
ngambek2003
in Help Center
Hi,
I'm just trying out Freeze in my service and I'm getting the following error at runtime
Am I missing some shared libraries?
Thanks
Budyanto
I'm just trying out Freeze in my service and I'm getting the following error at runtime
09/29/09 14:43:08.793 CIceBoxServer2: error: ServiceManager: unable to load entry point `RngSvcI:create': /opt/ice/services/libRngSvcI.so: undefined symbol: _ZN11IceInternal6upCastEPN6Freeze10Connection.
Am I missing some shared libraries?
Thanks
Budyanto
0
Comments
-
Hi Budyanto,
You need to compile code with -fPIC see our demos as example of gcc options used to build the applicationc++ -c -I. -I../../../include -ftemplate-depth-128 -Wall -D_REENTRANT -I/usr/include/nptl -fPIC -g HelloServiceI.cpp rm -f libHelloService.so c++ -shared -Wl,--enable-new-dtags -Wl,-rpath,/opt/Ice-3.4b/lib -rdynamic -ftemplate-depth-128 -Wall -D_REENTRANT -I/usr/include/nptl -fPIC -g -L../../../lib -o libHelloService.so -Wl,-h,libHelloService.so Hello.o HelloI.o HelloServiceI.o -lIceBox -lIce -lIceUtil -lFreeze -lpthread -lrt
I have tested this with cpp/demo/IceBox/hello of the Ice distribution modified to create a Freeze env and connection on service start and it works
Hope this help,
José0
