Created On: 08 June 2012 Problem: When compiling a number of examples from the $VBROKERDIR/examples directory the following error message is printed during linking: " /user/bin/ld: skipping incompatible $VBROKERDIR/lib/libvport_r.so when searching for -lvport_r " Similar error messages occurs for all the ORB libraries. Is there an incompatibility between 32-bit VB8.5 and 64-bit Linux box? Resolution: The ld attempt to link 64 bit library due to g++ generates 64bit code by default on 64bit Linux. To force g++ to generate 32bit code, add " -m32 " flag to g++ in the stdmk . For example: ### Platform specific compiler definitions (multi-threaded) CC = g++ -D_REENTRANT -DTHREAD -DPTHREADS -m32 The stdmk is located in $VBROKER/examples/vbroker . Note that you should clean up the 64 bits object files (using " make -f Makefile_cpp clean " command) before compiling the 32 bits version. Incident #2553936 Old KB# 35999
↧