Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


richard.westebbe at gmx

Mar 21, 2012, 8:40 AM

Post #1 of 15 (841 views)
Permalink
mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message

Hello,

I'm building several RPM's for CentOS 6.2 to get an LAMP environment with Apache 2.4.1 to work. With mod_fcgid I've got a strange problem I could'nt find a solution for in the web. When I try to load the module Apache won't start with the following message:


Starting httpd: httpd: Syntax error on line 46 of /etc/httpd/conf/httpd.conf: Syntax error on line 7 of /etc/httpd/mods-enabled/mod_fcgid.load: Cannot load /etc/httpd/modules/mod_fcgid.so into server: /etc/httpd/modules/mod_fcgid.so: undefined symbol: ap_unixd_setup_child


Within a forum thread I read that ap_unixd_setup_children() isn't available anymore in Apache 2.4.1. There they recomended to use the trunk version of mod_fcgid, what I did. With the same result...

When I searched the source code of Apache 2.4.1 for this function I found it declared in mod_unixd.h. So I would say it is still available in Apache 2.4.1, which makes me wonder what the problem might be. Further research in the web and this mailing lists archive didn't help. That why I ask you for assistance.

The build part of my spec for mod_fcgid file looks like this:

%build
./configure.apxs
make %{?_smp_mflags}

It compiles without any error messages.


Does anybody have an idea what's going wrong, or what I might be doing wrong? I'm going on to look for a solution for myself, but I would appreciate any help. This project takes much to much time...

Thanks a lot in advance!

Kind regards

Richard Westebbe


pablo.armando at dattatec

Mar 21, 2012, 8:53 AM

Post #2 of 15 (818 views)
Permalink
Re: mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message [In reply to]

Please see this URL:
https://mail-archives.apache.org/mod_mbox/httpd-users/201203.mbox/browser



On 03/21/2012 12:40 PM, Richard Westebbe wrote:
> Hello,
>
> I'm building several RPM's for CentOS 6.2 to get an LAMP environment
> with Apache 2.4.1 to work. With mod_fcgid I've got a strange problem I
> could'nt find a solution for in the web. When I try to load the module
> Apache won't start with the following message:
>
>
> Starting httpd: httpd: Syntax error on line 46 of
> /etc/httpd/conf/httpd.conf: Syntax error on line 7 of
> /etc/httpd/mods-enabled/mod_fcgid.load: Cannot load
> /etc/httpd/modules/mod_fcgid.so into server:
> /etc/httpd/modules/mod_fcgid.so: undefined symbol: ap_unixd_setup_child
>
>
> Within a forum thread I read that ap_unixd_setup_children() isn't
> available anymore in Apache 2.4.1. There they recomended to use the
> trunk version of mod_fcgid, what I did. With the same result...
>
> When I searched the source code of Apache 2.4.1 for this function I
> found it declared in mod_unixd.h. So I would say it is still available
> in Apache 2.4.1, which makes me wonder what the problem might be.
> Further research in the web and this mailing lists archive didn't
> help. That why I ask you for assistance.
>
> The build part of my spec for mod_fcgid file looks like this:
>
> %build
> ./configure.apxs
> make %{?_smp_mflags}
>
> It compiles without any error messages.
>
>
> Does anybody have an idea what's going wrong, or what I might be doing
> wrong? I'm going on to look for a solution for myself, but I would
> appreciate any help. This project takes much to much time...
>
> Thanks a lot in advance!
>
> Kind regards
>
> Richard Westebbe


richard.westebbe at gmx

Mar 21, 2012, 9:33 AM

Post #3 of 15 (817 views)
Permalink
Re: mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message [In reply to]

Hi Pablo,

thank you for your answer! :-) I guess you refer to your mail:

"mod_fcgid 2.3.6 not loading with Apache 2.4"

Actually I had already tried the given solution, as I had written before. I downloaded the trunk version and compiled it. The result was the same, as with the stable release. Apache still complains about ap_unixd_setup_child beeing undefined when I try to load mod_fcgid.

But it looks like you have solved the problem this way. Did you do something additional to what I've

Ciao

Richard Westebbe


pablo.armando at dattatec

Mar 21, 2012, 11:03 AM

Post #4 of 15 (843 views)
Permalink
Re: mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message [In reply to]

Sorry, but I have not tried to compile the module for Apache 2.4.1.I'm
waiting for a stable version of the module. I guess the SVN version was
good, but did not. :(

On 03/21/2012 01:33 PM, Richard Westebbe wrote:
> Hi Pablo,
>
> thank you for your answer! :-) I guess you refer to your mail:
>
> "mod_fcgid 2.3.6 not loading with Apache 2.4"
>
> Actually I had already tried the given solution, as I had written
> before. I downloaded the trunk version and compiled it. The result was
> the same, as with the stable release. Apache still complains about
> ap_unixd_setup_child beeing undefined when I try to load mod_fcgid.
>
> But it looks like you have solved the problem this way. Did you do
> something additional to what I've
>
> Ciao
>
> Richard Westebbe


wrowe at rowe-clan

Mar 21, 2012, 12:36 PM

Post #5 of 15 (818 views)
Permalink
Re: mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message [In reply to]

On 3/21/2012 11:33 AM, Richard Westebbe wrote:
> Hi Pablo,
>
> thank you for your answer! :-) I guess you refer to your mail:
>
> "mod_fcgid 2.3.6 not loading with Apache 2.4"
>
> Actually I had already tried the given solution, as I had written before. I downloaded the
> trunk version and compiled it. The result was the same, as with the stable release. Apache
> still complains about ap_unixd_setup_child beeing undefined when I try to load mod_fcgid.

Thanks for the report; I'll investigate and report back to users@ to give
this a try when ready. Same goes for mod_ftp. I'd really like to tag
both in the coming days for potential "2.4-ready" releases.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


richard.westebbe at gmx

Mar 21, 2012, 1:45 PM

Post #6 of 15 (819 views)
Permalink
Re: mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message [In reply to]

On 3/21/2012 11:33 AM, Richard Westebbe wrote: > Hi Pablo, > > thank you for your answer! :-) I guess you refer to your mail: > > "mod_fcgid 2.3.6 not loading with Apache 2.4" > > Actually I had already tried the given solution, as I had written before. I downloaded the > trunk version and compiled it. The result was the same, as with the stable release. Apache > still complains about ap_unixd_setup_child beeing undefined when I try to load mod_fcgid. Thanks for the report; I'll investigate and report back to users@ to give this a try when ready. Same goes for mod_ftp. I'd really like to tag both in the coming days for potential "2.4-ready" releases. Thanks for the reply! I'll gonna go on trying to find a solution, too. If I find one I'll report it here as well.

Ciao

Richard Westebbe


tixu at cs

Mar 22, 2012, 1:25 AM

Post #7 of 15 (812 views)
Permalink
Re: mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message [In reply to]

Hi, Richard,

The problem you found is really interesting to me. I would like to take a
look at it.

But it seems that the module "mod_fcgid" is not an official Apache module?
Since I cannot find it in the manual of Apache httpd-2.4.1 (see the
following link)

http://httpd.apache.org/docs/2.4/mod/

Also, using "configure -h", I cannot find an "--enable" option related to
mod_fcgid.

Please tell me where can I find it. I guess it's not an Apache module so
the upgrading of Apache causes some incompatibility.

Thanks a lot!
Tianyin


On Wed, Mar 21, 2012 at 8:40 AM, Richard Westebbe
<richard.westebbe [at] gmx>wrote:

> Hello,
>
> I'm building several RPM's for CentOS 6.2 to get an LAMP environment with
> Apache 2.4.1 to work. With mod_fcgid I've got a strange problem I could'nt
> find a solution for in the web. When I try to load the module Apache won't
> start with the following message:
>
>
> Starting httpd: httpd: Syntax error on line 46 of
> /etc/httpd/conf/httpd.conf: Syntax error on line 7 of
> /etc/httpd/mods-enabled/mod_fcgid.load: Cannot load
> /etc/httpd/modules/mod_fcgid.so into server:
> /etc/httpd/modules/mod_fcgid.so: undefined symbol: ap_unixd_setup_child
>
>
> Within a forum thread I read that ap_unixd_setup_children() isn't
> available anymore in Apache 2.4.1. There they recomended to use the trunk
> version of mod_fcgid, what I did. With the same result...
>
> When I searched the source code of Apache 2.4.1 for this function I found
> it declared in mod_unixd.h. So I would say it is still available in Apache
> 2.4.1, which makes me wonder what the problem might be. Further research in
> the web and this mailing lists archive didn't help. That why I ask you for
> assistance.
>
> The build part of my spec for mod_fcgid file looks like this:
>
> %build
> ./configure.apxs
> make %{?_smp_mflags}
>
> It compiles without any error messages.
>
>
> Does anybody have an idea what's going wrong, or what I might be doing
> wrong? I'm going on to look for a solution for myself, but I would
> appreciate any help. This project takes much to much time...
>
> Thanks a lot in advance!
>
> Kind regards
>
> Richard Westebbe
>



--
Tianyin XU,
http://cseweb.ucsd.edu/~tixu/


wrowe at rowe-clan

Mar 22, 2012, 1:45 AM

Post #8 of 15 (807 views)
Permalink
Re: mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message [In reply to]

On 3/22/2012 3:25 AM, Tianyin Xu wrote:
> Hi, Richard,
>
> The problem you found is really interesting to me. I would like to take a look at it.
>
> But it seems that the module "mod_fcgid" is not an official Apache module? Since I cannot
> find it in the manual of Apache httpd-2.4.1 (see the following link)
>
> http://httpd.apache.org/docs/2.4/mod/

It's not core, it's not in 2.4 tarballs.

http://httpd.apache.org/mod_fcgid/
http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


richard.westebbe at gmx

Mar 22, 2012, 2:20 AM

Post #9 of 15 (823 views)
Permalink
Re: mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message [In reply to]

Hi William,

thank you that you've already answered the question of Tianyin!

@Tianyin:

Hi, thank you for your time and interest! I'm trying to solve the problem too, at the moment.

The appears to me, that the problem is caused by the fact, that mod_unixd is new in 2.4.1.

I compiled 2.4.1 with mod_unixd as an DSO, what might be the reason for the problem. Though
mod_fcgid is including mod_unixd.h in fcgid_pm_unix.c in line 35:

#if MODULE_MAGIC_NUMBER_MAJOR >= 20090209
#include "mod_unixd.h"
#endif

As I wasn't sure, whether the MODULE_MAGIC_NUMBER_MAJOR condition works, or not. So I forced
the inclusion of mod_unixd.h by deleting the condition. The result was the same. The function still isn't
defined.

I guess I'll give it a try with an statically linked mod_unixd in the httpd executable. Maybe this might help.
I'll report the result at this mailing list.

Ciao
Richard

----- Ursprüngliche Nachricht -----
Von: William A. Rowe Jr.
Gesendet: 22.03.12 09:45 Uhr
An: users [at] httpd
Betreff: Re: [users [at] http] mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message

On 3/22/2012 3:25 AM, Tianyin Xu wrote: > Hi, Richard, > > The problem you found is really interesting to me. I would like to take a look at it. > > But it seems that the module "mod_fcgid" is not an official Apache module? Since I cannot > find it in the manual of Apache httpd-2.4.1 (see the following link) > > http://httpd.apache.org/docs/2.4/mod/ It's not core, it's not in 2.4 tarballs. http://httpd.apache.org/mod_fcgid/ http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe [at] httpd For additional commands, e-mail: users-help [at] httpd



------------------------------------------
Richard Westebbe

Engersche Str. 14
33611 Bielefeld
Germany

Tel.: +49-521-1364062
Mobil: +49-151-41223005
Mail: richard.westebbe [at] gmx
www: http://www.richard-westebbe.de


richard.westebbe at gmx

Mar 22, 2012, 4:21 AM

Post #10 of 15 (839 views)
Permalink
Re: mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message [In reply to]

Well,

it seems like I wasn't totally wrong with my assumption...

With a statically linked mod_unixd mod_fcgid is working! The error message is gone and a few some small tests
showed that mod_fcgid is doing what it shall do.

Strange thing about it is that it is a problem to stop httpd now. The only possible way is a kill -9. Something
I wouldn't regard as everything is working fine.

The changes in the compilation of Apache 2.4.1 was to add the following lines to the configure configuration:

--enable-unixd
--enable-mods-static='unixd'

all other modules are compiled with a

--enable-mods-shared=all

I hope this information helps all of you, who are looking for a solution for this problem! I'll gonna go on looking for
one, as well.

Ciao
Richard



----- Ursprüngliche Nachricht -----
Von: Richard Westebbe
Gesendet: 22.03.12 10:20 Uhr
An: users [at] httpd
Betreff: Re: [users [at] http] mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message

Hi William,

thank you that you've already answered the question of Tianyin!

@Tianyin:

Hi, thank you for your time and interest! I'm trying to solve the problem too, at the moment.

The appears to me, that the problem is caused by the fact, that mod_unixd is new in 2.4.1.

I compiled 2.4.1 with mod_unixd as an DSO, what might be the reason for the problem. Though
mod_fcgid is including mod_unixd.h in fcgid_pm_unix.c in line 35:

#if MODULE_MAGIC_NUMBER_MAJOR >= 20090209
#include "mod_unixd.h"
#endif

As I wasn't sure, whether the MODULE_MAGIC_NUMBER_MAJOR condition works, or not. So I forced
the inclusion of mod_unixd.h by deleting the condition. The result was the same. The function still isn't
defined.

I guess I'll give it a try with an statically linked mod_unixd in the httpd executable. Maybe this might help.
I'll report the result at this mailing list.

Ciao
Richard


nick at webthing

Mar 22, 2012, 4:50 AM

Post #11 of 15 (806 views)
Permalink
Re: mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message [In reply to]

On Thu, 22 Mar 2012 12:21:09 +0100
"Richard Westebbe" <richard.westebbe [at] gmx> wrote:

> Well,
>
> it seems like I wasn't totally wrong with my assumption...
>
> With a statically linked mod_unixd mod_fcgid is working! The error message is gone and a few some small tests
> showed that mod_fcgid is doing what it shall do.

Interesting. I think this should be worth a bugzilla entry.

Did you test it with everything dynamically loaded but with
mod_unixd loaded before mod_fcgid? I'd expect that to work,
given what you've told us!

> Strange thing about it is that it is a problem to stop httpd now. The only possible way is a kill -9. Something
> I wouldn't regard as everything is working fine.

What exactly happens when it fails? Anything in the
error logs?

Did you tell us the details of what platform you're on?


> The appears to me, that the problem is caused by the fact, that mod_unixd is new in 2.4.1.

Yes, it was formerly in core, but was modularised to enable more
fine-grained security models.

> I compiled 2.4.1 with mod_unixd as an DSO, what might be the reason for the problem. Though
> mod_fcgid is including mod_unixd.h in fcgid_pm_unix.c in line 35:
>
> #if MODULE_MAGIC_NUMBER_MAJOR >= 20090209
> #include "mod_unixd.h"
> #endif

That means it'll compile, but does nothing at runtime.

Thanks for the report.

--
Nick Kew

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


richard.westebbe at gmx

Mar 22, 2012, 6:10 AM

Post #12 of 15 (809 views)
Permalink
Re: mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message [In reply to]

Hi Nick,

> Did you test it with everything dynamically loaded but with
> mod_unixd loaded before mod_fcgid? I'd expect that to work,
> given what you've told us!

I tried this now. The result is, that Apache 2.4.1 is starting without any complains, so you where right.
The order of how the modules are loaded is relevant.

But I still have the problem, that I can't stop the httpd process with the init script. And I can't find any
hints in the log files what might be the reason for it. Though I'm not sure, whether this problem is
really connected to the mod_fcgid problem or not.

As I've the problem now even with an shared mod_unixd module, it might be that I broke something in
my spec file during my attempts to debug the problem.

The platform I'm on is a CentOS 6.2, with the following packages created by myself:

httpd-2.4.1
httpd-tools-2.4.1
apr-1.4.6
apr-util-1.4.1
mod_fcgid-2.3.6

Additionally I builded packages for PHP-5.4.0. But as it didn't matter, whether they where installed or
not, I don't think this is relevant for the problem.

Ciao
Richard


nick at webthing

Mar 22, 2012, 6:25 AM

Post #13 of 15 (807 views)
Permalink
Re: mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message [In reply to]

On Thu, 22 Mar 2012 14:10:03 +0100
"Richard Westebbe" <richard.westebbe [at] gmx> wrote:

> Hi Nick,
>
> > Did you test it with everything dynamically loaded but with
> > mod_unixd loaded before mod_fcgid? I'd expect that to work,
> > given what you've told us!
>
> I tried this now. The result is, that Apache 2.4.1 is starting without any complains, so you where right.
> The order of how the modules are loaded is relevant.
>
> But I still have the problem, that I can't stop the httpd process with the init script.

What init script is that? Is it apache's own apachectl, or
one supplied by your distro?

> The platform I'm on is a CentOS 6.2, with the following packages created by myself:
>
> httpd-2.4.1
> httpd-tools-2.4.1

What's httpd-tools?

> apr-1.4.6
> apr-util-1.4.1
> mod_fcgid-2.3.6

When you say packages, do you mean built direct from source, or via an
intermediate platform package stage?

--
Nick Kew

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


richard.westebbe at gmx

Mar 22, 2012, 6:57 AM

Post #14 of 15 (846 views)
Permalink
Re: mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message [In reply to]

Hi Nick,

first an update:

- The problem, that I couldn't stop the httpd was caused by the init script. It was the original Apache init file,
which searched for the pid file in /var/log/httpd/. I moved in my spec file to /var/run to make it fit to the terms
of CentOS.

- The kill -9 was nescessary, due to an configuration error of mine in httpd.conf. I put the User and Group directives
into an <IfModule unixd_module.c>. This caused mod_fcgid to crash and restart with the following message:

[:error] [pid 26757] mod_fcgid: fcgid process manager died, restarting the server

[unixd:alert] [pid 27801] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive
[core:warn] [pid 26757] AH00045: child process 27801 still did not exit, sending a SIGTERM
When I tried to kill a process with a SIGTERM it was already killed and a new process was started. Somehow a kill -9 worked, maybe because
that won't wait for a process to quit.

- When mod_unixd is loaded before mod_fcgid everything seems to work fine. So I don't think that an bugzilla report is nescessary.
Though I think it might be a great advantage, if such dependencies would be resolved internaly by the Apache.

(e.g.: I've changed the layout of the configuration directory to something quite simmilar to Debian with .load and .conf files
in a mods-available directory. Symlinks to them in a mods-enabled directory are then included into the httpd.conf file. As the order
of how modules are loaded is then defined by an alphabetical order such problems like mine could easily occour.)


I guess some of your questions are answered now. httpd-tools is an typical RPM of CentOS and Red Hat, it contains for example the programms ab, htdbm, htdigest, htpasswd, etc. The packeges I talked of are RPMs I build from slightly modified CentOS spec files.


I guess, we could mark this topic as solved, and I'm sorry for the alarm I might have caused.

Thanks a lot to all who tried to help! I'm really delighted, how friendly and with how much interest my question was handled!

Ciao
Richard


nick at webthing

Mar 22, 2012, 7:47 AM

Post #15 of 15 (810 views)
Permalink
Re: mod_fcgid 2.3.6 causes Apache 2.4.1 not to start with undefined symbol: ap_unixd_setup_child message [In reply to]

On Thu, 22 Mar 2012 14:57:02 +0100
"Richard Westebbe" <richard.westebbe [at] gmx> wrote:


> - When mod_unixd is loaded before mod_fcgid everything seems to work fine. So I don't think that an bugzilla report is nescessary.
> Though I think it might be a great advantage, if such dependencies would be resolved internaly by the Apache.

Yep. That kind of order-dependency is always on the radar, and
we try to avoid it creeping into released versions. For example,
we have to take some care to avoid similar issues if mod_dbd or
mod_ldap are loaded after their respective dependencies!

> I guess some of your questions are answered now. httpd-tools is an typical RPM of CentOS and Red Hat, it contains for example the programms ab, htdbm, htdigest, htpasswd, etc. The packeges I talked of are RPMs I build from slightly modified CentOS spec files.
>
>
> I guess, we could mark this topic as solved, and I'm sorry for the alarm I might have caused.

This is the kind of bump in the road we expect with a new release,
and why we need users like yourself who are sufficiently techie to
work through them and bring them to our attention.

Looks like one bug for us to deal with, and one on your side!

--
Nick Kew

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.