|
|
Subject: Re: How can I be getting compilation errors already? - msg#00022
List: web.fastcgi.devel
Check the version of Apache you have installed. You need to have Apache
version 2.0.x or later
Regards.
D. Alvarado wrote:
> Thanks for this reply but the top result
>
> http://www.fastcgi.com/archives/fastcgi-developers/2005-December/004060.html
>
> refers to a "patch" but I don't understand where that is installed or
> what file I need to copy and paste this text into. I'm still weary
> about whether this is the right thing to do. I'm very new to
> Linux/Apache and there may be unspoken implications of the above that
> I'm not aware of yet.
>
> Thanks for your help, -
>
> On 1/23/07, Divák Ádám <divak.adam-oT9FGbSODyY@xxxxxxxxxxxxxxxx> wrote:
>
> > D. Alvarado wrote:
> >
> >> Hi,
> >>
> >> I'm using Fedora Core 5 Linux on an x86 machine. I also have Apache
> >> 2.2 installed. I just downloaded mod_fastcgi-2.4.2.tar.gz, unzipped,
> >> configured, but when I tried to make (following the copy instruction)
> >> I got errors. What am I doing wrong? Below are the steps I followed
> >> ...
> >>
> >> [root@localhost src]# wget http://fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz
> >> [root@localhost src]# tar xvzf mod_fastcgi-2.4.2.tar.gz
> >> [root@localhost src]# cd mod_fastcgi-2.4.2
> >> [root@localhost mod_fastcgi-2.4.2]# cp Makefile.AP2 Makefile
> >> [root@localhost mod_fastcgi-2.4.2]# make
> >> /usr/lib/apr-1/build/libtool --silent --mode=compile gcc -pthread
> >> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
> >> -I/usr/local/apache2/include -I. -I/usr/include/apr-1 -I/usr/include
> >> -I/usr/kerberos/include -prefer-pic -c mod_fastcgi.c && touch
> >> mod_fastcgi.slo
> >> mod_fastcgi.c: In function 'init_module':
> >> mod_fastcgi.c:270: error: 'ap_null_cleanup' undeclared (first use in
> >> this function)
> >> mod_fastcgi.c:270: error: (Each undeclared identifier is reported only once
> >> mod_fastcgi.c:270: error: for each function it appears in.)
> >> mod_fastcgi.c: In function 'process_headers':
> >> mod_fastcgi.c:725: warning: return makes pointer from integer without a cast
> >> mod_fastcgi.c:729: warning: assignment makes pointer from integer without a
> >> cast
> >> mod_fastcgi.c:739: warning: assignment makes pointer from integer without a
> >> cast
> >> mod_fastcgi.c:768: warning: initialization makes pointer from integer
> >> without a cast
> >> mod_fastcgi.c:838: warning: return makes pointer from integer without a cast
> >> mod_fastcgi.c:842: warning: return makes pointer from integer without a cast
> >> mod_fastcgi.c: In function 'set_uid_n_gid':
> >> mod_fastcgi.c:1022: warning: passing argument 1 of 'memcpy' makes
> >> pointer from integer without a cast
> >> mod_fastcgi.c:1024: warning: assignment makes pointer from integer
> >> without a cast
> >> mod_fastcgi.c:1033: warning: assignment makes pointer from integer
> >> without a cast
> >> mod_fastcgi.c:1034: warning: assignment makes pointer from integer
> >> without a cast
> >> mod_fastcgi.c: In function 'do_work':
> >> mod_fastcgi.c:2321: error: 'ap_null_cleanup' undeclared (first use in
> >> this function)
> >> mod_fastcgi.c: In function 'create_fcgi_request':
> >> mod_fastcgi.c:2479: warning: assignment makes pointer from integer
> >> without a cast
> >> mod_fastcgi.c:2492: warning: assignment makes pointer from integer
> >> without a cast
> >> mod_fastcgi.c: In function 'apache_is_scriptaliased':
> >> mod_fastcgi.c:2534: warning: initialization makes pointer from integer
> >> without a cast
> >> mod_fastcgi.c: In function 'post_process_for_redirects':
> >> mod_fastcgi.c:2559: warning: passing argument 1 of
> >> 'ap_internal_redirect_handler' makes pointer from integer without a
> >> cast
> >> mod_fastcgi.c: In function 'check_user_authentication':
> >> mod_fastcgi.c:2682: warning: assignment makes pointer from integer
> >> without a cast
> >> mod_fastcgi.c:2700: warning: comparison between pointer and integer
> >> mod_fastcgi.c: In function 'check_user_authorization':
> >> mod_fastcgi.c:2749: warning: assignment makes pointer from integer
> >> without a cast
> >> mod_fastcgi.c:2765: warning: comparison between pointer and integer
> >> mod_fastcgi.c: In function 'check_access':
> >> mod_fastcgi.c:2809: warning: assignment makes pointer from integer
> >> without a cast
> >> mod_fastcgi.c:2826: warning: comparison between pointer and integer
> >> make: *** [mod_fastcgi.slo] Error 1
> >>
> >> Please let me know what other information I can include to fix this
> >> problem. Thanks, - Dave
> >> ___________________________________
> >> fastcgi-developers mailing list
> >> http://fastcgi.com/fastcgi-developers/
> >>
> >>
> > If i were you, i'd try googling for "apache 2.2 fastcgi". the solution
> > lies there.
> > good luck
> >
> >
> ___________________________________
> fastcgi-developers mailing list
> http://fastcgi.com/fastcgi-developers/
>
>
>
>
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: How can I be getting compilation errors already?
D. Alvarado wrote:
> Thanks for this reply but the top result
>
> http://www.fastcgi.com/archives/fastcgi-developers/2005-December/004060.html
>
> refers to a "patch" but I don't understand where that is installed or
> what file I need to copy and paste this text into. I'm still weary
> about whether this is the right thing to do. I'm very new to
> Linux/Apache and there may be unspoken implications of the above that
> I'm not aware of yet.
>
> Thanks for your help, -
>
> On 1/23/07, Divák Ádám <divak.adam-oT9FGbSODyY@xxxxxxxxxxxxxxxx> wrote:
> > D. Alvarado wrote:
> > > Hi,
> > >
> > > I'm using Fedora Core 5 Linux on an x86 machine. I also have Apache
> > > 2.2 installed. I just downloaded mod_fastcgi-2.4.2.tar.gz, unzipped,
> > > configured, but when I tried to make (following the copy instruction)
> > > I got errors. What am I doing wrong? Below are the steps I followed
> > > ...
> > >
> > > [root@localhost src]# wget
> > > http://fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz
> > > [root@localhost src]# tar xvzf mod_fastcgi-2.4.2.tar.gz
> > > [root@localhost src]# cd mod_fastcgi-2.4.2
> > > [root@localhost mod_fastcgi-2.4.2]# cp Makefile.AP2 Makefile
> > > [root@localhost mod_fastcgi-2.4.2]# make
> > > /usr/lib/apr-1/build/libtool --silent --mode=compile gcc -pthread
> > > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
> > > -I/usr/local/apache2/include -I. -I/usr/include/apr-1 -I/usr/include
> > > -I/usr/kerberos/include -prefer-pic -c mod_fastcgi.c && touch
> > > mod_fastcgi.slo
> > > mod_fastcgi.c: In function 'init_module':
> > > mod_fastcgi.c:270: error: 'ap_null_cleanup' undeclared (first use in
> > > this function)
> > > mod_fastcgi.c:270: error: (Each undeclared identifier is reported only
> > > once
> > > mod_fastcgi.c:270: error: for each function it appears in.)
> > > mod_fastcgi.c: In function 'process_headers':
> > > mod_fastcgi.c:725: warning: return makes pointer from integer without a
> > > cast
> > > mod_fastcgi.c:729: warning: assignment makes pointer from integer without
> > > a cast
> > > mod_fastcgi.c:739: warning: assignment makes pointer from integer without
> > > a cast
> > > mod_fastcgi.c:768: warning: initialization makes pointer from integer
> > > without a cast
> > > mod_fastcgi.c:838: warning: return makes pointer from integer without a
> > > cast
> > > mod_fastcgi.c:842: warning: return makes pointer from integer without a
> > > cast
> > > mod_fastcgi.c: In function 'set_uid_n_gid':
> > > mod_fastcgi.c:1022: warning: passing argument 1 of 'memcpy' makes
> > > pointer from integer without a cast
> > > mod_fastcgi.c:1024: warning: assignment makes pointer from integer
> > > without a cast
> > > mod_fastcgi.c:1033: warning: assignment makes pointer from integer
> > > without a cast
> > > mod_fastcgi.c:1034: warning: assignment makes pointer from integer
> > > without a cast
> > > mod_fastcgi.c: In function 'do_work':
> > > mod_fastcgi.c:2321: error: 'ap_null_cleanup' undeclared (first use in
> > > this function)
> > > mod_fastcgi.c: In function 'create_fcgi_request':
> > > mod_fastcgi.c:2479: warning: assignment makes pointer from integer
> > > without a cast
> > > mod_fastcgi.c:2492: warning: assignment makes pointer from integer
> > > without a cast
> > > mod_fastcgi.c: In function 'apache_is_scriptaliased':
> > > mod_fastcgi.c:2534: warning: initialization makes pointer from integer
> > > without a cast
> > > mod_fastcgi.c: In function 'post_process_for_redirects':
> > > mod_fastcgi.c:2559: warning: passing argument 1 of
> > > 'ap_internal_redirect_handler' makes pointer from integer without a
> > > cast
> > > mod_fastcgi.c: In function 'check_user_authentication':
> > > mod_fastcgi.c:2682: warning: assignment makes pointer from integer
> > > without a cast
> > > mod_fastcgi.c:2700: warning: comparison between pointer and integer
> > > mod_fastcgi.c: In function 'check_user_authorization':
> > > mod_fastcgi.c:2749: warning: assignment makes pointer from integer
> > > without a cast
> > > mod_fastcgi.c:2765: warning: comparison between pointer and integer
> > > mod_fastcgi.c: In function 'check_access':
> > > mod_fastcgi.c:2809: warning: assignment makes pointer from integer
> > > without a cast
> > > mod_fastcgi.c:2826: warning: comparison between pointer and integer
> > > make: *** [mod_fastcgi.slo] Error 1
> > >
> > > Please let me know what other information I can include to fix this
> > > problem. Thanks, - Dave
> > > ___________________________________
> > > fastcgi-developers mailing list
> > > http://fastcgi.com/fastcgi-developers/
> > >
> > If i were you, i'd try googling for "apache 2.2 fastcgi". the solution
> > lies there.
> > good luck
> >
> ___________________________________
> fastcgi-developers mailing list
> http://fastcgi.com/fastcgi-developers/
>
(please don't top-post)
yep, you just found the right patch, the only thing you have to do is
(to save it to a file and then)
google for the command patch :)
http://linux.about.com/od/commands/l/blcmdl1_patch.htm
or, if you prefer doing things by hand, this tutorial is the same thing
http://hack.emilykwan.com/node/95
(obviously you don't need rubyonrails, etc, just simply add the lines
and compile apache normally)
cheers
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
Next Message by Date:
click to view message preview
Re: How can I be getting compilation errors already?
Sorry if I'm top-posting, I'm not sure what that means.
Ok, I copied everything from
http://www.fastcgi.com/archives/fastcgi-developers/2005-December/004060.html
starting with
diff -ruN mod_fastcgi-2.4.2/fcgi.h mod_fastcgi-2.4.2-ap22/fcgi.h
and ending with
-rm -f *.o *.lo *.slo *.la
and put it into a file named, "patchfile". Then I ran
[root@localhost mod_fastcgi-2.4.2]# patch patchfile
but the command never comes back. What am I doing wrong?
Thanks, - Dave
On 1/23/07, Divák Ádám <divak.adam-oT9FGbSODyY@xxxxxxxxxxxxxxxx> wrote:
> D. Alvarado wrote:
> > Thanks for this reply but the top result
> >
> > http://www.fastcgi.com/archives/fastcgi-developers/2005-December/004060.html
> >
> > refers to a "patch" but I don't understand where that is installed or
> > what file I need to copy and paste this text into. I'm still weary
> > about whether this is the right thing to do. I'm very new to
> > Linux/Apache and there may be unspoken implications of the above that
> > I'm not aware of yet.
> >
> > Thanks for your help, -
> >
> > On 1/23/07, Divák Ádám <divak.adam-oT9FGbSODyY@xxxxxxxxxxxxxxxx> wrote:
> > > D. Alvarado wrote:
> > > > Hi,
> > > >
> > > > I'm using Fedora Core 5 Linux on an x86 machine. I also have Apache
> > > > 2.2 installed. I just downloaded mod_fastcgi-2.4.2.tar.gz, unzipped,
> > > > configured, but when I tried to make (following the copy instruction)
> > > > I got errors. What am I doing wrong? Below are the steps I followed
> > > > ...
> > > >
> > > > [root@localhost src]# wget
> > > > http://fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz
> > > > [root@localhost src]# tar xvzf mod_fastcgi-2.4.2.tar.gz
> > > > [root@localhost src]# cd mod_fastcgi-2.4.2
> > > > [root@localhost mod_fastcgi-2.4.2]# cp Makefile.AP2 Makefile
> > > > [root@localhost mod_fastcgi-2.4.2]# make
> > > > /usr/lib/apr-1/build/libtool --silent --mode=compile gcc -pthread
> > > > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
> > > > -I/usr/local/apache2/include -I. -I/usr/include/apr-1 -I/usr/include
> > > > -I/usr/kerberos/include -prefer-pic -c mod_fastcgi.c && touch
> > > > mod_fastcgi.slo
> > > > mod_fastcgi.c: In function 'init_module':
> > > > mod_fastcgi.c:270: error: 'ap_null_cleanup' undeclared (first use in
> > > > this function)
> > > > mod_fastcgi.c:270: error: (Each undeclared identifier is reported only
> > > > once
> > > > mod_fastcgi.c:270: error: for each function it appears in.)
> > > > mod_fastcgi.c: In function 'process_headers':
> > > > mod_fastcgi.c:725: warning: return makes pointer from integer without a
> > > > cast
> > > > mod_fastcgi.c:729: warning: assignment makes pointer from integer
> > > > without a cast
> > > > mod_fastcgi.c:739: warning: assignment makes pointer from integer
> > > > without a cast
> > > > mod_fastcgi.c:768: warning: initialization makes pointer from integer
> > > > without a cast
> > > > mod_fastcgi.c:838: warning: return makes pointer from integer without a
> > > > cast
> > > > mod_fastcgi.c:842: warning: return makes pointer from integer without a
> > > > cast
> > > > mod_fastcgi.c: In function 'set_uid_n_gid':
> > > > mod_fastcgi.c:1022: warning: passing argument 1 of 'memcpy' makes
> > > > pointer from integer without a cast
> > > > mod_fastcgi.c:1024: warning: assignment makes pointer from integer
> > > > without a cast
> > > > mod_fastcgi.c:1033: warning: assignment makes pointer from integer
> > > > without a cast
> > > > mod_fastcgi.c:1034: warning: assignment makes pointer from integer
> > > > without a cast
> > > > mod_fastcgi.c: In function 'do_work':
> > > > mod_fastcgi.c:2321: error: 'ap_null_cleanup' undeclared (first use in
> > > > this function)
> > > > mod_fastcgi.c: In function 'create_fcgi_request':
> > > > mod_fastcgi.c:2479: warning: assignment makes pointer from integer
> > > > without a cast
> > > > mod_fastcgi.c:2492: warning: assignment makes pointer from integer
> > > > without a cast
> > > > mod_fastcgi.c: In function 'apache_is_scriptaliased':
> > > > mod_fastcgi.c:2534: warning: initialization makes pointer from integer
> > > > without a cast
> > > > mod_fastcgi.c: In function 'post_process_for_redirects':
> > > > mod_fastcgi.c:2559: warning: passing argument 1 of
> > > > 'ap_internal_redirect_handler' makes pointer from integer without a
> > > > cast
> > > > mod_fastcgi.c: In function 'check_user_authentication':
> > > > mod_fastcgi.c:2682: warning: assignment makes pointer from integer
> > > > without a cast
> > > > mod_fastcgi.c:2700: warning: comparison between pointer and integer
> > > > mod_fastcgi.c: In function 'check_user_authorization':
> > > > mod_fastcgi.c:2749: warning: assignment makes pointer from integer
> > > > without a cast
> > > > mod_fastcgi.c:2765: warning: comparison between pointer and integer
> > > > mod_fastcgi.c: In function 'check_access':
> > > > mod_fastcgi.c:2809: warning: assignment makes pointer from integer
> > > > without a cast
> > > > mod_fastcgi.c:2826: warning: comparison between pointer and integer
> > > > make: *** [mod_fastcgi.slo] Error 1
> > > >
> > > > Please let me know what other information I can include to fix this
> > > > problem. Thanks, - Dave
> > > > ___________________________________
> > > > fastcgi-developers mailing list
> > > > http://fastcgi.com/fastcgi-developers/
> > > >
> > > If i were you, i'd try googling for "apache 2.2 fastcgi". the solution
> > > lies there.
> > > good luck
> > >
> > ___________________________________
> > fastcgi-developers mailing list
> > http://fastcgi.com/fastcgi-developers/
> >
> (please don't top-post)
> yep, you just found the right patch, the only thing you have to do is
> (to save it to a file and then)
> google for the command patch :)
> http://linux.about.com/od/commands/l/blcmdl1_patch.htm
> or, if you prefer doing things by hand, this tutorial is the same thing
> http://hack.emilykwan.com/node/95
> (obviously you don't need rubyonrails, etc, just simply add the lines
> and compile apache normally)
> cheers
>
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
Previous Message by Thread:
click to view message preview
Re: How can I be getting compilation errors already?
On Tue, 23 Jan 2007, D. Alvarado wrote:
> Little by little, I tried to run the patch and got a "Hunk" error.
> Ideas? Am I running it from the right directory?
>
>
> [root@localhost mod_fastcgi-2.4.2]# patch Makefile.AP2 patchfile
> patching file Makefile.AP2
> Hunk #1 FAILED at 73.
> 1 out of 1 hunk FAILED -- saving rejects to file Makefile.AP2.rej
> patching file Makefile.AP2
> [root@localhost mod_fastcgi-2.4.2]#
This is the wrong directory to run the command. You can determine this by
looking at the first line before the actually patch. See below:
diff -ruN mod_fastcgi-2.4.2/fcgi.h mod_fastcgi-2.4.2-ap22/fcgi.h
This means that the diff was run from the parent folder of
mod_fastcgi-2.4.2. Therefore, do teh following:
[root@localhost mod_fastcgi-2.4.2]# cd ..
[root@localhost ]# patch -p0 <./mod_fastcgi-2.4.2/patchfile
That should do the trick. I put together some instructions about this a
while ago. Hope they help:
http://www.fastcgi.com/archives/fastcgi-developers/2006-October/004557.html
Regards,
Gerald.
--
Begumisa Gerald M.
Senior Software Engineer
Computer Frontiers International
Plot 32 Lumumba Avenue, Kampala
Office Tel.: +256 41 434 0451
Mobile Tel.: +256 71 299 1983
Fax: +256 41 340456
Web: www.cfi.co.ug
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
Next Message by Thread:
click to view message preview
FastCGI Installation Query
Hi All,
I am getting the following installation error while
installing FastCGI ver 2.4.0 or 2.4.2. Can somebody
please help ?
Regards
Souvik
[root@ijsasic2 mod_fastcgi-2.4.0]# make
/usr/local/apache2/build/libtool --silent
--mode=compile gcc -g -O2 -pthread -DLINUX=2
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
-I/usr/local/apache2/include -I.
-I/root/httpd-2.2.3/srclib/apr/include
-I/root/httpd-2.2.3/srclib/apr-util/include
-I/usr/kerberos/include -prefer-pic -c mod_fastcgi.c
&& touch mod_fastcgi.slo
mod_fastcgi.c: In function `init_module':
mod_fastcgi.c:270: `ap_null_cleanup' undeclared (first
use in this function)
mod_fastcgi.c:270: (Each undeclared identifier is
reported only once
mod_fastcgi.c:270: for each function it appears in.)
mod_fastcgi.c: In function `process_headers':
mod_fastcgi.c:726: warning: return makes pointer from
integer without a cast
mod_fastcgi.c:730: warning: assignment makes pointer
from integer without a cast
mod_fastcgi.c:740: warning: assignment makes pointer
from integer without a cast
mod_fastcgi.c:769: warning: initialization makes
pointer from integer without a cast
mod_fastcgi.c:833: warning: return makes pointer from
integer without a cast
mod_fastcgi.c:837: warning: return makes pointer from
integer without a cast
mod_fastcgi.c: In function `set_uid_n_gid':
mod_fastcgi.c:1017: warning: passing arg 1 of `memcpy'
makes pointer from integer without a cast
mod_fastcgi.c:1019: warning: assignment makes pointer
from integer without a cast
mod_fastcgi.c:1028: warning: assignment makes pointer
from integer without a cast
mod_fastcgi.c:1029: warning: assignment makes pointer
from integer without a cast
mod_fastcgi.c: In function `do_work':
mod_fastcgi.c:2292: `ap_null_cleanup' undeclared
(first use in this function)
mod_fastcgi.c: In function `create_fcgi_request':
mod_fastcgi.c:2457: warning: assignment makes pointer
from integer without a cast
mod_fastcgi.c:2470: warning: assignment makes pointer
from integer without a cast
mod_fastcgi.c: In function `apache_is_scriptaliased':
mod_fastcgi.c:2510: warning: initialization makes
pointer from integer without a cast
mod_fastcgi.c: In function
`post_process_for_redirects':
mod_fastcgi.c:2535: warning: passing arg 1 of
`ap_internal_redirect_handler' makes pointer from
integer without a cast
mod_fastcgi.c: In function
`check_user_authentication':
mod_fastcgi.c:2650: warning: assignment makes pointer
from integer without a cast
mod_fastcgi.c:2668: warning: comparison between
pointer and integer
mod_fastcgi.c: In function `check_user_authorization':
mod_fastcgi.c:2714: warning: assignment makes pointer
from integer without a cast
mod_fastcgi.c:2730: warning: comparison between
pointer and integer
mod_fastcgi.c: In function `check_access':
mod_fastcgi.c:2771: warning: assignment makes pointer
from integer without a cast
mod_fastcgi.c:2788: warning: comparison between
pointer and integer
make: *** [mod_fastcgi.slo] Error 1
[root@ijsasic2 mod_fastcgi-2.4.0]#
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
|
|