On Feb 19, 2008, at 2:58 AM, demingyin wrote:

Hi all,

Does anyone have integrated example for C WS Core?

And I got a question about ‘Counter Client’ example in C WS Core document:

‘Counter Client’ example (http://www.globus.org/toolkit/docs/4.0/ common/cwscore/C_WS_Core_Samples.html). After I generate my own makefile_header, I run ‘make’ command. Some errors look like “COUNTERSERVICE_MODULE should be defined before using it” happened, but I see all the header files have been included in the source codes, such as “CounterService_client.h”. Anyone came across the same problem?

Thanks in advance.

Regards,
Denny Yin

Some possible issues:

The command-line for using globus-makefile-header for this example is:

globus-makefile-header --flavor=FLAVOR globus_c_wsrf_sample_counter_bindings

Where FLAVOR is typically gcc32dbg (on linux systems) or vendorcc32dbg (some unix systems without gcc).

There is a bug in globus-makefile-header which causes it to leave \\ in some header path elements. Filter those out with globus-makefile-header --flavor=gcc32dbg globus_c_wsrf_sample_counter_bindings \
        | sed -e 's:\\::g' > makefile_header
This will complain if the bindings package isn't installed.

The Makefile requires the GLOBUS_FLAVOR_NAME macro to be defined, so the command to build the examples is:

make -f Makefile.example GLOBUS_FLAVOR_NAME=gcc32dbg

If these don't fix your issue, please send the actual error log to the list so we can see what's going on.

Joe

Reply via email to