You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Søren Berggreen <sh...@gmail.com> on 2010/02/17 13:35:38 UTC

Linker error

Hi.

I'm trying to build a client to a axis2c service, but I keep getting linker
errors saying something like:

File: test_client.o
In function 'main':
[Linker error] undefined reference to '_imp__axutil_env_create_all'
[Linker error] undefined reference to '_imp__axutil_strcmp'
[Linker error] undefined reference to '_imp__axutil_error_get_message'
[Linker error] undefined reference to '_imp__axis2_stub_free'
[Linker error] undefined reference to '_imp__axutil_env_free'
etc....

I'm doing the build on a Windows XP Pro.

I've also tried on an Ubuntu, which gives me no errors during the linking
process, but instead gives me:
Segmentation fault: 0xb7f882e6 in __do_global_dtors_aux ()

I've included the axis2c lib files in the linker options.

-- 
Med venlig hilsen/Best regards
Søren H. Berggreen

Re: Linker error

Posted by Søren Berggreen <sh...@gmail.com>.
I've been doing exactly that, but as can be seen in my earlier mail, I also
tried compiling my client code with visual studio.
I doesn't give me as many linker errors as using MinGW does, but it still
gives them.
It's the file called BuildLog.htm in the former mail.
There are still linker errors.
I guess there's som library I don't include, but I can't figure out which
one, as I include the entire lib-folder in the axis2c distribution.

Regards
Søren


On Fri, Feb 19, 2010 at 6:13 AM, Selvaratnam Uthaiyashankar <
uthaiyashankar@gmail.com> wrote:

> Hi,
>
> I think you are using Axis2/C binary release and you compile your
> program using MinGW? Is that correct?
>
> Axis2/C binary was compiled using microsoft compilers (visual studio).
>  So, I don't think you can use that with MinGW. Did you try to compile
> your client code with visual studio?
>
> Regards,
> Shankar
>
> On Thu, Feb 18, 2010 at 7:50 PM, Søren Berggreen <sh...@gmail.com>
> wrote:
> > Hi
> >
> > I'm using Axis2/C version 1.6.0 on a windows client.
> > I've noticed there are differences between windows and linux in the
> folder
> > layout of Axis2/C.
> >
> > Company rules prohibit me from attaching my client, but I've attached 3
> > files:
> >
> > SearchDocs_Compile_Log -> The log showing all the linker errors as they
> are
> > outputted from Dec-C++.
> > BuildLog.htm -> Build log from Visual Studio also showing linker errors.
> > Makefile.win -> The makefile.
> >
> > Regards
> > Søren
> >
> > On Thu, Feb 18, 2010 at 5:38 AM, Selvaratnam Uthaiyashankar
> > <ut...@gmail.com> wrote:
> >>
> >> Hi,
> >>
> >> can you attach your client and the makefile? Which Axis2/C version you
> >> are using?
> >>
> >> Regards,
> >> Shankar
> >>
> >> On Wed, Feb 17, 2010 at 6:05 PM, Søren Berggreen <sh...@gmail.com>
> >> wrote:
> >> > Hi.
> >> >
> >> > I'm trying to build a client to a axis2c service, but I keep getting
> >> > linker
> >> > errors saying something like:
> >> >
> >> > File: test_client.o
> >> > In function 'main':
> >> > [Linker error] undefined reference to '_imp__axutil_env_create_all'
> >> > [Linker error] undefined reference to '_imp__axutil_strcmp'
> >> > [Linker error] undefined reference to '_imp__axutil_error_get_message'
> >> > [Linker error] undefined reference to '_imp__axis2_stub_free'
> >> > [Linker error] undefined reference to '_imp__axutil_env_free'
> >> > etc....
> >> >
> >> > I'm doing the build on a Windows XP Pro.
> >> >
> >> > I've also tried on an Ubuntu, which gives me no errors during the
> >> > linking
> >> > process, but instead gives me:
> >> > Segmentation fault: 0xb7f882e6 in __do_global_dtors_aux ()
> >> >
> >> > I've included the axis2c lib files in the linker options.
> >> >
> >> > --
> >> > Med venlig hilsen/Best regards
> >> > Søren H. Berggreen
> >> >
> >>
> >>
> >>
> >> --
> >> S.Uthaiyashankar
> >> Software Architect
> >> WSO2 Inc.
> >> http://wso2.com/ - "lean . enterprise . middleware"
> >
> >
> >
> > --
> > Med venlig hilsen/Best regards
> > Søren H. Berggreen
> >
>
>
>
> --
> S.Uthaiyashankar
> Software Architect
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
>



-- 
Med venlig hilsen/Best regards
Søren H. Berggreen

Re: Linker error

Posted by Søren Berggreen <sh...@gmail.com>.
Hi

Problem solved.
The libraries used were VC++ compiled and therefore could not be used with
MinGW/Dev-C++.
I solved the problem by using a tool to create definition files from the
existing dll's.
I then edited the stdcall functions in the definition files. All the stdcall
functions in the file were in the form "_name@ordinal". I simply changed it
to be just "name".
This would have worked also:
name = _name@ordinal
I then used dlltool to create .a files from the dll's and the definition
files, .def.
After this, the linking went OK.

Regards
Søren


On Fri, Feb 19, 2010 at 6:13 AM, Selvaratnam Uthaiyashankar <
uthaiyashankar@gmail.com> wrote:

> Hi,
>
> I think you are using Axis2/C binary release and you compile your
> program using MinGW? Is that correct?
>
> Axis2/C binary was compiled using microsoft compilers (visual studio).
>  So, I don't think you can use that with MinGW. Did you try to compile
> your client code with visual studio?
>
> Regards,
> Shankar
>
> On Thu, Feb 18, 2010 at 7:50 PM, Søren Berggreen <sh...@gmail.com>
> wrote:
> > Hi
> >
> > I'm using Axis2/C version 1.6.0 on a windows client.
> > I've noticed there are differences between windows and linux in the
> folder
> > layout of Axis2/C.
> >
> > Company rules prohibit me from attaching my client, but I've attached 3
> > files:
> >
> > SearchDocs_Compile_Log -> The log showing all the linker errors as they
> are
> > outputted from Dec-C++.
> > BuildLog.htm -> Build log from Visual Studio also showing linker errors.
> > Makefile.win -> The makefile.
> >
> > Regards
> > Søren
> >
> > On Thu, Feb 18, 2010 at 5:38 AM, Selvaratnam Uthaiyashankar
> > <ut...@gmail.com> wrote:
> >>
> >> Hi,
> >>
> >> can you attach your client and the makefile? Which Axis2/C version you
> >> are using?
> >>
> >> Regards,
> >> Shankar
> >>
> >> On Wed, Feb 17, 2010 at 6:05 PM, Søren Berggreen <sh...@gmail.com>
> >> wrote:
> >> > Hi.
> >> >
> >> > I'm trying to build a client to a axis2c service, but I keep getting
> >> > linker
> >> > errors saying something like:
> >> >
> >> > File: test_client.o
> >> > In function 'main':
> >> > [Linker error] undefined reference to '_imp__axutil_env_create_all'
> >> > [Linker error] undefined reference to '_imp__axutil_strcmp'
> >> > [Linker error] undefined reference to '_imp__axutil_error_get_message'
> >> > [Linker error] undefined reference to '_imp__axis2_stub_free'
> >> > [Linker error] undefined reference to '_imp__axutil_env_free'
> >> > etc....
> >> >
> >> > I'm doing the build on a Windows XP Pro.
> >> >
> >> > I've also tried on an Ubuntu, which gives me no errors during the
> >> > linking
> >> > process, but instead gives me:
> >> > Segmentation fault: 0xb7f882e6 in __do_global_dtors_aux ()
> >> >
> >> > I've included the axis2c lib files in the linker options.
> >> >
> >> > --
> >> > Med venlig hilsen/Best regards
> >> > Søren H. Berggreen
> >> >
> >>
> >>
> >>
> >> --
> >> S.Uthaiyashankar
> >> Software Architect
> >> WSO2 Inc.
> >> http://wso2.com/ - "lean . enterprise . middleware"
> >
> >
> >
> > --
> > Med venlig hilsen/Best regards
> > Søren H. Berggreen
> >
>
>
>
> --
> S.Uthaiyashankar
> Software Architect
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
>



-- 
Med venlig hilsen/Best regards
Søren H. Berggreen



-- 
Med venlig hilsen/Best regards
Søren H. Berggreen

Re: Linker error

Posted by Selvaratnam Uthaiyashankar <ut...@gmail.com>.
Hi,

I think you are using Axis2/C binary release and you compile your
program using MinGW? Is that correct?

Axis2/C binary was compiled using microsoft compilers (visual studio).
 So, I don't think you can use that with MinGW. Did you try to compile
your client code with visual studio?

Regards,
Shankar

On Thu, Feb 18, 2010 at 7:50 PM, Søren Berggreen <sh...@gmail.com> wrote:
> Hi
>
> I'm using Axis2/C version 1.6.0 on a windows client.
> I've noticed there are differences between windows and linux in the folder
> layout of Axis2/C.
>
> Company rules prohibit me from attaching my client, but I've attached 3
> files:
>
> SearchDocs_Compile_Log -> The log showing all the linker errors as they are
> outputted from Dec-C++.
> BuildLog.htm -> Build log from Visual Studio also showing linker errors.
> Makefile.win -> The makefile.
>
> Regards
> Søren
>
> On Thu, Feb 18, 2010 at 5:38 AM, Selvaratnam Uthaiyashankar
> <ut...@gmail.com> wrote:
>>
>> Hi,
>>
>> can you attach your client and the makefile? Which Axis2/C version you
>> are using?
>>
>> Regards,
>> Shankar
>>
>> On Wed, Feb 17, 2010 at 6:05 PM, Søren Berggreen <sh...@gmail.com>
>> wrote:
>> > Hi.
>> >
>> > I'm trying to build a client to a axis2c service, but I keep getting
>> > linker
>> > errors saying something like:
>> >
>> > File: test_client.o
>> > In function 'main':
>> > [Linker error] undefined reference to '_imp__axutil_env_create_all'
>> > [Linker error] undefined reference to '_imp__axutil_strcmp'
>> > [Linker error] undefined reference to '_imp__axutil_error_get_message'
>> > [Linker error] undefined reference to '_imp__axis2_stub_free'
>> > [Linker error] undefined reference to '_imp__axutil_env_free'
>> > etc....
>> >
>> > I'm doing the build on a Windows XP Pro.
>> >
>> > I've also tried on an Ubuntu, which gives me no errors during the
>> > linking
>> > process, but instead gives me:
>> > Segmentation fault: 0xb7f882e6 in __do_global_dtors_aux ()
>> >
>> > I've included the axis2c lib files in the linker options.
>> >
>> > --
>> > Med venlig hilsen/Best regards
>> > Søren H. Berggreen
>> >
>>
>>
>>
>> --
>> S.Uthaiyashankar
>> Software Architect
>> WSO2 Inc.
>> http://wso2.com/ - "lean . enterprise . middleware"
>
>
>
> --
> Med venlig hilsen/Best regards
> Søren H. Berggreen
>



-- 
S.Uthaiyashankar
Software Architect
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"

Re: Linker error

Posted by Søren Berggreen <sh...@gmail.com>.
Hi

I'm using Axis2/C version 1.6.0 on a windows client.
I've noticed there are differences between windows and linux in the folder
layout of Axis2/C.

Company rules prohibit me from attaching my client, but I've attached 3
files:

SearchDocs_Compile_Log -> The log showing all the linker errors as they are
outputted from Dec-C++.
BuildLog.htm -> Build log from Visual Studio also showing linker errors.
Makefile.win -> The makefile.

Regards
S�ren

On Thu, Feb 18, 2010 at 5:38 AM, Selvaratnam Uthaiyashankar <
uthaiyashankar@gmail.com> wrote:

> Hi,
>
> can you attach your client and the makefile? Which Axis2/C version you
> are using?
>
> Regards,
> Shankar
>
> On Wed, Feb 17, 2010 at 6:05 PM, S�ren Berggreen <sh...@gmail.com>
> wrote:
> > Hi.
> >
> > I'm trying to build a client to a axis2c service, but I keep getting
> linker
> > errors saying something like:
> >
> > File: test_client.o
> > In function 'main':
> > [Linker error] undefined reference to '_imp__axutil_env_create_all'
> > [Linker error] undefined reference to '_imp__axutil_strcmp'
> > [Linker error] undefined reference to '_imp__axutil_error_get_message'
> > [Linker error] undefined reference to '_imp__axis2_stub_free'
> > [Linker error] undefined reference to '_imp__axutil_env_free'
> > etc....
> >
> > I'm doing the build on a Windows XP Pro.
> >
> > I've also tried on an Ubuntu, which gives me no errors during the linking
> > process, but instead gives me:
> > Segmentation fault: 0xb7f882e6 in __do_global_dtors_aux ()
> >
> > I've included the axis2c lib files in the linker options.
> >
> > --
> > Med venlig hilsen/Best regards
> > S�ren H. Berggreen
> >
>
>
>
> --
> S.Uthaiyashankar
> Software Architect
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
>



-- 
Med venlig hilsen/Best regards
S�ren H. Berggreen

Re: Linker error

Posted by Selvaratnam Uthaiyashankar <ut...@gmail.com>.
Hi,

can you attach your client and the makefile? Which Axis2/C version you
are using?

Regards,
Shankar

On Wed, Feb 17, 2010 at 6:05 PM, Søren Berggreen <sh...@gmail.com> wrote:
> Hi.
>
> I'm trying to build a client to a axis2c service, but I keep getting linker
> errors saying something like:
>
> File: test_client.o
> In function 'main':
> [Linker error] undefined reference to '_imp__axutil_env_create_all'
> [Linker error] undefined reference to '_imp__axutil_strcmp'
> [Linker error] undefined reference to '_imp__axutil_error_get_message'
> [Linker error] undefined reference to '_imp__axis2_stub_free'
> [Linker error] undefined reference to '_imp__axutil_env_free'
> etc....
>
> I'm doing the build on a Windows XP Pro.
>
> I've also tried on an Ubuntu, which gives me no errors during the linking
> process, but instead gives me:
> Segmentation fault: 0xb7f882e6 in __do_global_dtors_aux ()
>
> I've included the axis2c lib files in the linker options.
>
> --
> Med venlig hilsen/Best regards
> Søren H. Berggreen
>



-- 
S.Uthaiyashankar
Software Architect
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"