[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster] OSX Testing Errors



Rizwan Kassim wrote:
A brand new behavior ...
sudo ./build -verbose -DCFLAGS=-I/usr/lib/malloc clean
sudo ./build -verbose -DCFLAGS=-I/usr/lib/malloc all
(compiles fine, with or without -DCFLAGS=-I/usr/lib/malloc)
sudo ./build -verbose -DCFLAGS=-I/usr/lib/malloc runTests
outputs the mess below in [1].

Any advice?
The linking below:

 gcc -g -o Publisher ../../../../build.tmp/objCD/Publisher.o

looks somehow castrated, no libxmlBlasterClientCD.so?


Here are complete examples from my build:

Compiling (with zlib compression and sqlite queue switched on):
gcc -Wall -pedantic -Wno-long-long -D_REENTRANT -c -g -DXMLBLASTER_PERSISTENT_QUEUE=1 -DXMLBLASTER_ZLIB=1 -I/home/xmlblast/xmlBlaster/build.tmp/src/c /home/xmlblast/xmlBlaster/demo/c/socket/Publisher.c


Linking:
gcc -Wl,-rpath=/home/xmlblast/xmlBlaster/lib:/usr/lib64:/usr/lib64 -g -o Publisher ../../../../build.tmp/objCD/Publisher.o -L/home/xmlblast/xmlBlaster/lib -lxmlBlasterClientCD -L/usr/lib64 -lsqlite -L/usr/lib64 -lz -lpthread


It is quite simple, you can do it without build or makefile directly
with the above command,

Marcel

[1] compileCExe: [echo] Compiling of C test client './demo/c/socket/bin/Publisher' to './demo/c/socket/bin/Publisher' Property ${LDFLAGS} has not been set Property ${LDFLAGS} has not been set Property ${ICC_HOME} has not been set Property ${ICC_HOME} has not been set Property ${LDFLAGS} has not been set Property ${LDFLAGS} has not been set Property ${LDFLAGS} has not been set [cc] 1 total files to be compiled. [cc] gcc -c -g -I/opt/xmlBlaster/build.tmp/src/c /opt/xmlBlaster/demo/c/socket/Publisher.c [cc] Starting link [cc] gcc -g -o Publisher ../../../../build.tmp/objCD/Publisher.o [cc] /usr/bin/ld: Undefined symbols: [cc] _freeMsgUnitData [cc] _freeQosArr [cc] _freeXmlBlasterAccessUnparsed [cc] _getXmlBlasterAccessUnparsed [cc] _getXmlBlasterVersion [cc] _sleepMillis [cc] _strcpyAlloc [cc] _xmlBlasterAccessUnparsedUsage [cc] _xmlBlasterFree [cc] collect2: ld returned 1 exit status [antcall] Exiting /opt/xmlBlaster/build.xml.

BUILD FAILED
/opt/xmlBlaster/build.xml:3076: The following error occurred while
executing this line:
/opt/xmlBlaster/build.xml:3091: gcc failed with return code 1
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)


at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
at net.sf.antcontrib.logic.ForEach.executeSequential(ForEach.java:178)
at net.sf.antcontrib.logic.ForEach.execute(ForEach.java:254)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.Main.start(Main.java:151)
at org.apache.tools.ant.Main.main(Main.java:241)
Caused by: /opt/xmlBlaster/build.xml:3091: gcc failed with return code 1
at net.sf.antcontrib.cpptasks.compiler.CommandLineLinker.link(CommandLineLinker.java:278)


at net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration.link(CommandLineLinkerConfiguration.java:117)

at net.sf.antcontrib.cpptasks.CCTask.execute(CCTask.java:773)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
... 15 more
--- Nested Exception ---
/opt/xmlBlaster/build.xml:3091: gcc failed with return code 1
at net.sf.antcontrib.cpptasks.compiler.CommandLineLinker.link(CommandLineLinker.java:278)


at net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration.link(CommandLineLinkerConfiguration.java:117)

at net.sf.antcontrib.cpptasks.CCTask.execute(CCTask.java:773)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
at net.sf.antcontrib.logic.ForEach.executeSequential(ForEach.java:178)
at net.sf.antcontrib.logic.ForEach.execute(ForEach.java:254)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.Main.start(Main.java:151)
at org.apache.tools.ant.Main.main(Main.java:241)


Total time: 39 seconds