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

Re: [xmlblaster] OSX Testing Errors



I'm sorry, I don't fully understand.

I can't do the compilation because of the number of missing symbols -
when I try to compile directly with

[administrator at slave /opt/xmlBlaster/build.tmp/src/c]$ sudo gcc -Wall
-pedantic -Wno-long-long -D_REENTRANT  -c -g
-DXMLBLASTER_PERSISTENT_QUEUE=1 -DXMLBLASTER_ZLIB=1 .
/opt/xmlblaster/demo/c/socket/Publisher.c
or with
[administrator at slave /opt/xmlBlaster]$ sudo gcc -Wall -pedantic
-Wno-long-long -D_REENTRANT  -c -g -DXMLBLASTER_PERSISTENT_QUEUE=1
-DXMLBLASTER_ZLIB=1 build.tmp/src/c demo/c/socket/Publisher.c

I get [1].

Even if it did compile fine, I wouldn't know the next steps to
continue with to finish Build RunTests.

Thoughts?

Thanks,
Rizwan


[1] /opt/xmlblaster/demo/c/socket/Publisher.c:15:38: error: XmlBlasterAccessUnparsed.h: No such file or directory /opt/xmlblaster/demo/c/socket/Publisher.c: In function 'main': /opt/xmlblaster/demo/c/socket/Publisher.c:28: error: 'XmlBlasterException' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:28: error: (Each undeclared identifier is reported only once /opt/xmlblaster/demo/c/socket/Publisher.c:28: error: for each function it appears in.) /opt/xmlblaster/demo/c/socket/Publisher.c:28: error: parse error before 'xmlBlasterException' /opt/xmlblaster/demo/c/socket/Publisher.c:29: error: 'XmlBlasterAccessUnparsed' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:29: error: 'xa' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:30: error: 'bool' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:30: error: parse error before 'disconnect' /opt/xmlblaster/demo/c/socket/Publisher.c:35: warning: implicit declaration of function 'getXmlBlasterVersion' /opt/xmlblaster/demo/c/socket/Publisher.c:35: warning: format '%s' expects type 'char *', but argument 2 has type 'int' /opt/xmlblaster/demo/c/socket/Publisher.c:39: error: 'XMLBLASTER_MAX_USAGE_LEN' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:45: warning: implicit declaration of function 'xmlBlasterAccessUnparsedUsage' /opt/xmlblaster/demo/c/socket/Publisher.c:45: warning: format '%s' expects type 'char *', but argument 2 has type 'int' /opt/xmlblaster/demo/c/socket/Publisher.c:45: warning: format '%s' expects type 'char *', but argument 3 has type 'int' /opt/xmlblaster/demo/c/socket/Publisher.c:39: warning: unused variable 'usage' /opt/xmlblaster/demo/c/socket/Publisher.c:50: warning: implicit declaration of function 'getXmlBlasterAccessUnparsed' /opt/xmlblaster/demo/c/socket/Publisher.c:51: error: 'xmlBlasterException' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:51: error: 'false' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:54: warning: implicit declaration of function 'freeXmlBlasterAccessUnparsed' /opt/xmlblaster/demo/c/socket/Publisher.c:58: error: 'disconnect' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:59: error: 'erase' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:65: warning: ISO C forbids nested functions /opt/xmlblaster/demo/c/socket/Publisher.c:65: error: syntax error before 'persistent' /opt/xmlblaster/demo/c/socket/Publisher.c:86: error: 'persistent' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:95: warning: implicit declaration of function 'xmlBlasterFree' /opt/xmlblaster/demo/c/socket/Publisher.c:105: error: parse error before 'interactive' /opt/xmlblaster/demo/c/socket/Publisher.c:110: error: parse error before 'oneway' /opt/xmlblaster/demo/c/socket/Publisher.c:116: error: parse error before 'persistentPublish' /opt/xmlblaster/demo/c/socket/Publisher.c:118: error: parse error before 'verbose' /opt/xmlblaster/demo/c/socket/Publisher.c:123: error: parse error before 'createDomEntry' /opt/xmlblaster/demo/c/socket/Publisher.c:126: error: parse error before 'forceQueuing' /opt/xmlblaster/demo/c/socket/Publisher.c:143: error: 'readonly' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:145: error: 'createDomEntry' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:151: error: 'forceQueuing' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:158: error: 'MsgUnit' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:158: error: parse error before 'msgUnit' /opt/xmlblaster/demo/c/socket/Publisher.c:159: error: 'msgUnit' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:161: error: 'interactive' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:169: warning: implicit declaration of function 'sleepMillis' /opt/xmlblaster/demo/c/socket/Publisher.c:171: error: 'verbose' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:186: warning: implicit declaration of function 'strcpyAlloc' /opt/xmlblaster/demo/c/socket/Publisher.c:201: error: 'subscribable' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:203: error: 'persistentPublish' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:204: error: 'forceUpdate' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:205: error: 'forceDestroy' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:243: error: 'oneway' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:244: error: 'MsgUnitArr' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:244: error: parse error before 'msgUnitArr' /opt/xmlblaster/demo/c/socket/Publisher.c:245: error: 'msgUnitArr' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:252: warning: implicit declaration of function 'freeMsgUnitData' /opt/xmlblaster/demo/c/socket/Publisher.c:267: error: 'true' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:269: error: parse error before 'interactive' /opt/xmlblaster/demo/c/socket/Publisher.c:279: error: 'QosArr' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:279: error: 'resp' undeclared (first use in this function) /opt/xmlblaster/demo/c/socket/Publisher.c:280: warning: ISO C90 forbids mixed declarations and code /opt/xmlblaster/demo/c/socket/Publisher.c:290: warning: implicit declaration of function 'freeQosArr'




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,




On 1/14/07, Marcel Ruff <mr at marcelruff.info> wrote:
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
>
>




--
Rizwan Kassim
Software and Systems Engineer, uWink Interactive Bistro
http://www.geekymedia.com

"If you have a problem and you think awk(1) is the solution, then you
have two problems." -David Tilbrook