You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Petr Hracek <ph...@gmail.com> on 2010/04/07 14:46:03 UTC
Problem with compiling module
Hello all,
I would like to compile my module under UnixWare 7.1.4 but it shows me
following error:
UX:cc: WARNING: -Kthread and -Kpthread both supplied; -Kpthread used
Undefined
symbol
ap_get_server_version
ap_log_error
UX:ld: ERROR: Symbol referencing errors.
Version of apache which is used is 2.2.14.
Libraries which were used during the compilation were:
*/usr/ccs/bin/cc* *-DRT_OS_UW=714* -DUSE_SYSVSEM_SERIALIZED_ACCEPT
-DNEED_UNION_SEMUN -Kthread -lapr-1 -laprutil-1 -lsocket -ljoyin -lpthread
-o module.la <list of objects>
Thank you in advance
Petr
Re: Problem with compiling module
Posted by Jeff Trawick <tr...@gmail.com>.
On Thu, Apr 8, 2010 at 7:44 AM, Petr Hracek <ph...@gmail.com> wrote:
> I have found another strange thing:
> During the compilation I have found that it failed because of
> XtOffsetOf is missing and on the UnixWare I did not find any header where it
> could be mentioned.
> Could you please help me with that issue as well?
XtOffsetOf is not defined or used in httpd (since 1.3 AFAIK). If your
module is using XtOffsetOf, try APR_OFFSETOF instead.
Re: Problem with compiling module
Posted by Petr Hracek <ph...@gmail.com>.
2010/4/8 Petr Hracek <ph...@gmail.com>
> Sorry for that mail.
> I have found that my_module.so is stored in directory .libs.
> --
> Petr Hracek
>
> 2010/4/8 Petr Hracek <ph...@gmail.com>
>
> Problem was within the makefile.
>> All C files has been compiled alone and
>> I wanted to run apxs -o my_module.la but it failed.
>>
>> Finally I have my_module.la.
>> How can I convert my_module.la to my_module.so?
>>
>> best regards
>> --
>> Petr Hracek
>>
>> 2010/4/7 Jeff Trawick <tr...@gmail.com>
>>
>> On Wed, Apr 7, 2010 at 10:03 AM, Petr Hracek <ph...@gmail.com> wrote:
>>> > Unfortunatelly I do not have apr on the system.
>>> > Do you know where I can get them?
>>>
>>> since you have a working httpd 2.2.14, you have apr already
>>>
>>> what happens when you try to build your module with apxs?
>>>
>>
>>
>>
>>
>>
>
>
I have found another strange thing:
During the compilation I have found that it failed because of
XtOffsetOf is missing and on the UnixWare I did not find any header where it
could be mentioned.
Could you please help me with that issue as well?
--
Petr Hracek
Re: Problem with compiling module
Posted by Petr Hracek <ph...@gmail.com>.
Sorry for that mail.
I have found that my_module.so is stored in directory .libs.
--
Petr Hracek
2010/4/8 Petr Hracek <ph...@gmail.com>
> Problem was within the makefile.
> All C files has been compiled alone and
> I wanted to run apxs -o my_module.la but it failed.
>
> Finally I have my_module.la.
> How can I convert my_module.la to my_module.so?
>
> best regards
> --
> Petr Hracek
>
> 2010/4/7 Jeff Trawick <tr...@gmail.com>
>
> On Wed, Apr 7, 2010 at 10:03 AM, Petr Hracek <ph...@gmail.com> wrote:
>> > Unfortunatelly I do not have apr on the system.
>> > Do you know where I can get them?
>>
>> since you have a working httpd 2.2.14, you have apr already
>>
>> what happens when you try to build your module with apxs?
>>
>
>
>
>
>
Re: Problem with compiling module
Posted by Petr Hracek <ph...@gmail.com>.
Problem was within the makefile.
All C files has been compiled alone and
I wanted to run apxs -o my_module.la but it failed.
Finally I have my_module.la.
How can I convert my_module.la to my_module.so?
best regards
--
Petr Hracek
2010/4/7 Jeff Trawick <tr...@gmail.com>
> On Wed, Apr 7, 2010 at 10:03 AM, Petr Hracek <ph...@gmail.com> wrote:
> > Unfortunatelly I do not have apr on the system.
> > Do you know where I can get them?
>
> since you have a working httpd 2.2.14, you have apr already
>
> what happens when you try to build your module with apxs?
>
Re: Problem with compiling module
Posted by Jeff Trawick <tr...@gmail.com>.
On Wed, Apr 7, 2010 at 10:03 AM, Petr Hracek <ph...@gmail.com> wrote:
> Unfortunatelly I do not have apr on the system.
> Do you know where I can get them?
since you have a working httpd 2.2.14, you have apr already
what happens when you try to build your module with apxs?
Re: Problem with compiling module
Posted by Petr Hracek <ph...@gmail.com>.
Unfortunatelly I do not have apr on the system.
Do you know where I can get them?
Thank you in advance
--
Petr Hracek
2010/4/7 Nick Kew <ni...@webthing.com>
> On Wed, 7 Apr 2010 14:46:03 +0200
> Petr Hracek <ph...@gmail.com> wrote:
>
> > Hello all,
> >
> > I would like to compile my module under UnixWare 7.1.4 but it shows me
> > following error:
> > UX:cc: WARNING: -Kthread and -Kpthread both supplied; -Kpthread used
> > Undefined
> > symbol
>
> You shouldn't try to link the module!
>
> Use apxs to get the right build options for your platform
> (though on a minority platform, there might be issues to sort).
>
> --
> Nick Kew
>
Re: Problem with compiling module
Posted by Nick Kew <ni...@webthing.com>.
On Wed, 7 Apr 2010 14:46:03 +0200
Petr Hracek <ph...@gmail.com> wrote:
> Hello all,
>
> I would like to compile my module under UnixWare 7.1.4 but it shows me
> following error:
> UX:cc: WARNING: -Kthread and -Kpthread both supplied; -Kpthread used
> Undefined
> symbol
You shouldn't try to link the module!
Use apxs to get the right build options for your platform
(though on a minority platform, there might be issues to sort).
--
Nick Kew