axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "João Carlos Bortoletto" <jbortole...@gmail.com>
Subject Re: [Axis2]Compilation and Linkedition problem
Date Tue, 18 Jul 2006 13:55:42 GMT
Hello Friends,

    I tried to export dlls to .a (mingw) doing the following:

-----------------------------------------------------------
pexports axiom.dll > axiomdll.def
dlltool --input-def axiomdll.def --dllname axiom.dll -l libaxiom.a -k
ranlib libaxiom.a
-----------------------------------------------------------

    I processed this step to every axis2 dll...
    A generated .def file appears like:

-----------------------------------------------------------
LIBRARY axiom.dll
EXPORTS
axiom_attribute_create@16
axiom_attribute_free_void_arg@8
axiom_child_element_iterator_create@8
axiom_children_iterator_create@8
axiom_children_qname_iterator_create@12
axiom_children_with_specific_attribute_iterator_create@20
axiom_comment_create@16
axiom_data_handler_create@12
axiom_doctype_create@16
axiom_document_create@12
axiom_element_create@20
axiom_element_create_with_qname@16
axiom_mime_body_part_create@4
axiom_mime_output_create@4
axiom_mime_parser_create@4
axiom_namespace_create@12
axiom_namespace_set_uri@12
axiom_navigator_create@8
axiom_node_create@4
axiom_node_get_builder@8
axiom_node_set_builder@12
axiom_node_set_complete@12
axiom_node_set_data_element@12
axiom_node_set_document@12
axiom_node_set_first_child@12
axiom_node_set_next_sibling@12
axiom_node_set_node_type@12
axiom_node_set_parent@12
axiom_node_set_previous_sibling@12
axiom_output_create@8
axiom_output_write_optimized@12
axiom_processing_instruction_create@20
axiom_soap11_builder_helper_create@12
axiom_soap12_builder_helper_create@8
axiom_soap_body_create@4
axiom_soap_body_create_with_parent@8
axiom_soap_builder_create@12
axiom_soap_envelope_create@8
axiom_soap_envelope_create_default_soap_envelope@8
axiom_soap_envelope_create_default_soap_fault_envelope@24
axiom_soap_envelope_create_null@4
axiom_soap_envelope_create_with_soap_version_prefix@12
axiom_soap_fault_code_create@4
axiom_soap_fault_code_create_with_parent@8
axiom_soap_fault_code_create_with_parent_value@12
axiom_soap_fault_create@4
axiom_soap_fault_create_default_fault@20
axiom_soap_fault_create_with_exception@12
axiom_soap_fault_create_with_parent@8
axiom_soap_fault_detail_create@4
axiom_soap_fault_detail_create_with_parent@8
axiom_soap_fault_node_create@4
axiom_soap_fault_node_create_with_parent@8
axiom_soap_fault_reason_create@4
axiom_soap_fault_reason_create_with_parent@8
axiom_soap_fault_role_create@4
axiom_soap_fault_role_create_with_parent@8
axiom_soap_fault_sub_code_create@4
axiom_soap_fault_sub_code_create_with_parent@8
axiom_soap_fault_sub_code_create_with_parent_value@12
axiom_soap_fault_text_create@4
axiom_soap_fault_text_create_with_parent@8
axiom_soap_fault_value_create@4
axiom_soap_fault_value_create_with_code@8
axiom_soap_fault_value_create_with_subcode@8
axiom_soap_header_block_create@4
axiom_soap_header_block_create_with_parent@16
axiom_soap_header_create@4
axiom_soap_header_create_with_parent@8
axiom_stax_builder_create@8
axiom_stax_builder_get_current_event@8
axiom_stax_builder_get_element_level@8
axiom_stax_builder_get_lastnode@8
axiom_stax_builder_set_element_level@12
axiom_stax_builder_set_lastnode@12
axiom_text_create@16
axiom_text_create_with_data_handler@16
axiom_util_get_child_elements@12
axiom_util_get_child_node_text@8
axiom_util_get_first_child_element@16
axiom_util_get_first_child_element_with_localname@20
axiom_util_get_first_child_element_with_localname_attr@28
axiom_util_get_first_child_element_with_localnames@20
axiom_util_get_first_child_element_with_uri@16
axiom_util_get_first_child_element_with_uri_localname@24
axiom_util_get_last_child_element@16
axiom_util_get_last_child_element_with_localname@20
axiom_util_get_last_child_element_with_localname_attr@28
axiom_util_get_last_child_element_with_localnames@20
axiom_util_get_last_child_element_with_uri_localname@24
axiom_util_get_localname@8
axiom_util_get_next_sibling_element@16
axiom_util_get_next_sibling_element_with_uri@16
axiom_util_get_next_sibling_element_with_uri_localname@24
axiom_util_get_next_siblng_element_with_localname@20
axiom_util_get_next_siblng_element_with_localname_attr@28
axiom_util_get_next_siblng_element_with_localnames@20
axiom_util_get_node_namespace_uri@8
axiom_output_write
-----------------------------------------------------------

    When I call my compilation routine:

-----------------------------------------------------------
set INC_DIR="D:\work\project"
set LIB_DIR="D:\work\project\lib"

gcc -o project -B %INC_DIR% echo.c -L %LIB_DIR% -laxiom -laxis2_engine
-laxis2_http_receiver -laxis2_http_sender -laxis2_parser -laxis2_util
-laxis2_wsdl -liconv -llibxml2 -lmod_axis2 -lwoden -lxml_schema -lzlib1
-----------------------------------------------------------

    I receive the following message:

-----------------------------------------------------------
C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/cc8wcaaa.o(.text+0x39c):echo.c: undefined
ref
erence to `_imp__axiom_namespace_create'
C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/cc8wcaaa.o(.text+0x3ca):echo.c: undefined
ref
erence to `_imp__axiom_element_create'
C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/cc8wcaaa.o(.text+0x3f8):echo.c: undefined
ref
erence to `_imp__axiom_element_create'
collect2: ld returned 1 exit status
-----------------------------------------------------------

    That's OK! If I remove '@number' from function in def file, this fail
not occurs and compilation appears OK.
    But when I try to execute my "project.exe", I receive the message:

-----------------------------------------------------------
Could not find the entry point "axiom_element_create" in the dynamic library
"axiom.dll".
-----------------------------------------------------------

    Anybody has any suggestion?
    Remember that I'm trying to compile under winXP and Mingw.
    Is Axis2 compatible with other compiles than MSVC??
    I'd like to thank Samisa that has been tried to help me...

    Joao Bortoletto


On 7/14/06, Samisa Abeysinghe <samisa.abeysinghe@gmail.com> wrote:
>
> The error basically suggests that you do not have the util, axiom and
> engine libs on your path.
> Does your %LIB_DIR% contain the path to these libs?
>
> Also, give that you are using gcc on windows, you must have build this
> from source. How did the build go?
>
> Thanks,
> Samisa...
>
> João Carlos Bortoletto wrote:
>
> > Hi Samisa,
> >
> >     Thanks for your reply.
> >     I tried to execute again following your instructions. The compiler
> > returned the same message:
> >
> > ------------------------------
> > D:\work\project\src\test>gcc -o echo -B %INC_DIR% echo.c -L %LIB_DIR%
> > -laxiom  -laxis2_engine  -laxis2_http_receiver  -laxis2_http_sender
> > -laxis2_parser  -laxis2_util  -laxis2_wsdl  -liconv  -liconv_a  -xml2
> > -xml2_a  -lmod_axis2 -lwoden  -lxml_schema  -lzdll
> >
> > C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccgzbaaa.o(.text+0x72): echo.c:
> > undefined reference to `_imp__axis2_env_create_all'
> > C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccgzbaaa.o(.text+0xa2):echo.c:
> > undefined reference to `_imp__axis2_strcmp'
> > C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccgzbaaa.o(.text+0xfa): echo.c:
> > undefined reference to `_imp__axis2_endpoint_ref_create'
> > C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccgzbaaa.o(.text+0x10a):echo.c:
> > undefined reference to `_imp__axis2_options_create'
> > C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccgzbaaa.o(.text+0x17a): echo.c:
> > undefined reference to `_imp__axis2_svc_client_create'
> > C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccgzbaaa.o(.text+0x39c):echo.c:
> > undefined reference to `_imp__axiom_namespace_create'
> > C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccgzbaaa.o(.text+0x3ca): echo.c:
> > undefined reference to `_imp__axiom_element_create'
> > C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccgzbaaa.o(.text+0x3f8):echo.c:
> > undefined reference to `_imp__axiom_element_create'
> > collect2: ld returned 1 exit status
> > ------------------------------
> >
> >     I'm working with axis2c 0.92... Do you think there are any library
> > missing?
> >     Thanks a lot for your help!
> >
> >
> >     Joao
> >
> > On 7/14/06, *Samisa Abeysinghe* <samisa.abeysinghe@gmail.com
> > <mailto:samisa.abeysinghe@gmail.com>> wrote:
> >
> >     Looks like you have not linked the libs correctly.
> >     You have to use
> >     -L{path to libs} -laxis2_util -laxis2_axiom -laxis2_wsdl
> >     -laxis2_engine
> >     -laxis2_parser -lpthread -lwoden -laxis2_xml_schema
> >     -laxis2_http_sender
> >     -laxis2_http_receiver  -lxml2 -lpthread -lz -lm   -ldl
> >
> >     when linking. You have to replace {path to libs} with the path
> >     where you
> >     have libs.
> >
> >     Samisa...
> >
> >     João Carlos Bortoletto wrote:
> >
> >     > Hi friends,
> >     >
> >     >     I'm new in C/C++ programming language. I was trying to
> >     compile the
> >     > simple example "echo.c" using gcc under mingw (win32).
> >     >     Compilation was successful (gcc -c), but when I try to link
> >     > (generate .exe) I receive the following messages:
> >     >
> >     >
> >     C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccW2baaa.o(.text+0x72):echo.c:
> >     > undefined reference to `_imp__axis2_env_create_all'
> >     >     C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccW2baaa.o(.text+0xa2):
> >     echo.c:
> >     > undefined reference to `_imp__axis2_strcmp'
> >     >
> >     C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccW2baaa.o(.text+0xfa):echo.c:
> >     > undefined reference to `_imp__axis2_endpoint_ref_create'
> >     >     C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccW2baaa.o(.text+0x10a):
> >     echo.c:
> >     > undefined reference to `_imp__axis2_options_create'
> >     >
> >     C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccW2baaa.o(.text+0x17a):echo.c:
> >     > undefined reference to `_imp__axis2_svc_client_create'
> >     >     C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccW2baaa.o(.text+0x39d):
> >     echo.c:
> >     > undefined reference to `_imp__axiom_namespace_create'
> >     >
> >     C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccW2baaa.o(.text+0x3cb):echo.c:
> >     > undefined reference to `_imp__axiom_element_create'
> >     >     C:\DOCUME~1\JBORTO~1\CONFIG~1\Temp/ccW2baaa.o(.text+0x3f9):
> >     echo.c:
> >     > undefined reference to `_imp__axiom_element_create'
> >     > collect2: ld returned 1 exit status
> >     >
> >     >     The command line is:
> >     >
> >     >     set LIB_DIR=D:\work\myproject\lib
> >     >     gcc -o echo -B D:\work\myproject echo.c %LIB_DIR%/axiom.lib
> >     > %LIB_DIR%/axis2_engine.lib %LIB_DIR%/axis2_http_receiver.lib
> >     > %LIB_DIR%/axis2_http_sender.lib %LIB_DIR%/axis2_parser.lib
> >     > %LIB_DIR%/axis2_util.lib %LIB_DIR%/axis2_wsdl.lib
> >     %LIB_DIR%/iconv.lib
> >     > %LIB_DIR%/iconv_a.lib %LIB_DIR%/libxml2.lib
> %LIB_DIR%/libxml2_a.lib
> >     > %LIB_DIR%/mod_axis2.lib %LIB_DIR%/woden.lib
> %LIB_DIR%/xml_schema.lib
> >     > %LIB_DIR%/zdll.lib %LIB_DIR%/zlib.lib
> >     >
> >     >
> >     >     Thanks for any help!
> >     >
> >     >     Joao Bortoletto
> >
> >
> >
> >
> ---------------------------------------------------------------------
> >     To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> >     <mailto:axis-c-user-unsubscribe@ws.apache.org>
> >     For additional commands, e-mail: axis-c-user-help@ws.apache.org
> >     <mailto:axis-c-user-help@ws.apache.org>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

Mime
View raw message