Hi all,
Really thanks for your help.
I tried:
debianGrid002:/home/ade/counter# globus-makefile-header --flavor=gcc32dbg
globus_c_wsrf_sample_counter_bindings |sed -e 's:\\::g' >makefile_header
and makefile_header is created without error
then:
debianGrid002:/home/ade/counter# make -f Makefile GLOBUS_FLAVOR_NAME=gcc32dbg
(I renamed Makefile.example to Makefile)
errors:
/usr/bin/gcc -I/sandbox/bacon/globus-4.0.1/include/gcc32dbg/wsrf/services
-I/sandbox/bacon/globus-4.0.1/include/gcc32dbg/
-ILOBUS_LOCATION/include/gcc32dbg/wsrf/services -g -Wall
-I/usr/local/globus-4.0.1/include/gcc32dbg \
-o create-count create_count.c \
-L/usr/local/globus-4.0.1/lib -L/usr/local/globus-4.0.1/lib
-lglobus_c_wsrf_sample_counter_client_bindings_gcc32dbg
-lglobus_c_wsrf_sample_counter_types_gcc32dbg -lglobus_wsrf_core_tools_gcc32dbg
-lglobus_c_wsrf_resource_gcc32dbg -lglobus_wsa_bindings_gcc32dbg
-lglobus_ds_bindings_gcc32dbg -lglobus_wsu_bindings_gcc32dbg
-lglobus_wsp_bindings_gcc32dbg -lglobus_wst_bindings_gcc32dbg
-lglobus_wsse_bindings_gcc32dbg -lglobus_wsseu_bindings_gcc32dbg
-lglobus_wsc_bindings_gcc32dbg -lglobus_wsbf_bindings_gcc32dbg
-lglobus_wsnt_bindings_gcc32dbg -lglobus_wsrl_bindings_gcc32dbg
-lglobus_wsrp_bindings_gcc32dbg -lglobus_wssg_bindings_gcc32dbg
-lglobus_notification_consumer_bindings_gcc32dbg
-lglobus_subscription_manager_bindings_gcc32dbg -lglobus_ws_messaging_gcc32dbg
-lglobus_usage_gcc32dbg -lglobus_xio_gcc32dbg -lgssapi_error_gcc32dbg
-lglobus_gss_assist_gcc32dbg -lglobus_gssapi_gsi_gcc32dbg
-lglobus_gsi_proxy_core_gcc32dbg -lglobus_gsi_credential_gcc32dbg
-lglobus_gsi_callback_gcc32dbg -lglobus_oldgaa_gcc32dbg
-lglobus_gsi_sysconfig_gcc32dbg -lglobus_gsi_cert_utils_gcc32dbg
-lglobus_openssl_gcc32dbg -lglobus_openssl_error_gcc32dbg
-lglobus_callout_gcc32dbg -lglobus_proxy_ssl_gcc32dbg -lglobus_common_gcc32dbg
-lssl_gcc32dbg -lcrypto_gcc32dbg -lxml2_gcc32dbg -lltdl_gcc32dbg -lm -lm -ldl
-ldl -lm
create_count.c:4:35: CounterService_client.h: No such file or directory
In file included from create_count.c:5:
/usr/local/globus-4.0.1/include/gcc32dbg/globus_wsrf_core_tools.h:21:39:
wsa_EndpointReferenceType.h: No such file or directory
/usr/local/globus-4.0.1/include/gcc32dbg/globus_wsrf_core_tools.h:26:32:
wsbf_BaseFaultType.h: No such file or directory
In file included from create_count.c:5:
/usr/local/globus-4.0.1/include/gcc32dbg/globus_wsrf_core_tools.h:46: error:
syntax error before "wsa_EndpointReferenceType"
/usr/local/globus-4.0.1/include/gcc32dbg/globus_wsrf_core_tools.h:52: error:
syntax error before "wsa_EndpointReferenceType"
/usr/local/globus-4.0.1/include/gcc32dbg/globus_wsrf_core_tools.h:56: error:
syntax error before '*' token
/usr/local/globus-4.0.1/include/gcc32dbg/globus_wsrf_core_tools.h:61: warning:
type defaults to `int' in declaration of `wsa_EndpointReferenceType'
/usr/local/globus-4.0.1/include/gcc32dbg/globus_wsrf_core_tools.h:61: error:
syntax error before '*' token
/usr/local/globus-4.0.1/include/gcc32dbg/globus_wsrf_core_tools.h:68: error:
syntax error before "wsa_EndpointReferenceType"
/usr/local/globus-4.0.1/include/gcc32dbg/globus_wsrf_core_tools.h:79: error:
syntax error before '*' token
/usr/local/globus-4.0.1/include/gcc32dbg/globus_wsrf_core_tools.h:92: warning:
type defaults to `int' in declaration of `wsbf_BaseFaultType'
/usr/local/globus-4.0.1/include/gcc32dbg/globus_wsrf_core_tools.h:92: error:
syntax error before '*' token
create_count.c: In function `main':
create_count.c:24: error: `CounterService_client_handle_t' undeclared (first
use in this function)
create_count.c:24: error: (Each undeclared identifier is reported only once
create_count.c:24: error: for each function it appears in.)
create_count.c:24: error: syntax error before "client_handle"
create_count.c:27: error: `createCounterType' undeclared (first use in this
function)
create_count.c:27: error: syntax error before "createCounter"
create_count.c:28: error: `createCounterResponseType' undeclared (first use in
this function)
create_count.c:28: error: `createCounterResponse' undeclared (first use in this
function)
create_count.c:41: error: `COUNTERSERVICE_MODULE' undeclared (first use in this
function)
create_count.c:47: warning: implicit declaration of function
`CounterService_client_init'
create_count.c:47: error: `client_handle' undeclared (first use in this
function)
create_count.c:50: warning: implicit declaration of function
`CounterPortType_createCounter'
create_count.c:53: error: `createCounter' undeclared (first use in this
function)
create_count.c:55: error: `CounterPortType_createCounter_fault_t' undeclared
(first use in this function)
create_count.c:55: error: syntax error before ')' token
create_count.c:65: warning: implicit declaration of function
`wsa_EndpointReferenceType_serialize'
create_count.c:73: warning: implicit declaration of function
`CounterService_client_destroy'
make: *** [create-count] Error 1
My Globus configuration:
Debian 3.1 r0a "Sarge"
Globus 4.0.1 Binary
$GLOBUS_LOCATION=/usr/local/globus-4.0.1
grid user: ade
Regards,
Denny
----- Original Message -----
From: "Joseph Bester" <[EMAIL PROTECTED]>
To: "demingyin" <[EMAIL PROTECTED]>
Cc: "GT User" <[email protected]>
Sent: Tuesday, February 19, 2008 10:04 PM
Subject: Re: [gt-user] any example for C WS Core
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