Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile problems... #1

Open
Reiner030 opened this issue Jan 16, 2015 · 0 comments
Open

compile problems... #1

Reiner030 opened this issue Jan 16, 2015 · 0 comments

Comments

@Reiner030
Copy link

Hello,

I have actual Debian Wheezy setup with Apache 2.2 threaded version:

# lsb_release -d
Description:    Debian GNU/Linux 7.8 (wheezy)
# aptitude show apache2.2-bin | grep ^Version
Version: 2.2.22-13+deb7u4

and your latest commits intents that it should work also with 2.2.

1st I tried the "normal" way to compile the modul but it compiles with a for me unclear $includedir
error message:

# apxs2 -c -i mod_proxy_fcgi.c 
Use of uninitialized value $includedir in concatenation (.) or string at (eval 9) line 1.
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/xmltok -pthread  -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REENTRANT -I -I. -I/usr/include -I/usr/include/apr-1.0     -I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include  -c -o mod_proxy_fcgi.lo mod_proxy_fcgi.c && touch mod_proxy_fcgi.slo
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static x86_64-linux-gnu-gcc -Wl,--as-needed -Wl,-z,relro   -o mod_proxy_fcgi.la  -rpath /usr/lib/apache2/modules -module -avoid-version    mod_proxy_fcgi.lo
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' mod_proxy_fcgi.la /usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install cp mod_proxy_fcgi.la /usr/lib/apache2/modules/
libtool: install: cp .libs/mod_proxy_fcgi.so /usr/lib/apache2/modules/mod_proxy_fcgi.so
libtool: install: cp .libs/mod_proxy_fcgi.lai /usr/lib/apache2/modules/mod_proxy_fcgi.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/lib/apache2/modules
----------------------------------------------------------------------
[...]
chmod 644 /usr/lib/apache2/modules/mod_proxy_fcgi.so

Load directive is setup/activated:

# cat /etc/apache2/mods-enabled/proxy_fcgi.load
# Depends: proxy
LoadModule proxy_fcgi_module /usr/lib/apache2/modules/mod_proxy_fcgi.so

But Apache won't load it (long lines breaked for better reading):

# /etc/init.d/apache2 restart
apache2: Syntax error on line 244 of /etc/apache2/apache2.conf:
               Syntax error on line 2 of /etc/apache2/mods-enabled/proxy_fcgi.load:
               Cannot load /usr/lib/apache2/modules/mod_proxy_fcgi.so" into server:
              /usr/lib/apache2/modules/mod_proxy_fcgi.so": cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
 failed!
# ls -l /usr/lib/apache2/modules/mod_proxy_fcgi.so
-rw-r--r-- 1 root root 18009 Jan 16 18:24 /usr/lib/apache2/modules/mod_proxy_fcgi.so
# ldd /usr/lib/apache2/modules/mod_proxy_fcgi.so
    linux-vdso.so.1 =>  (0x00007fffe21ff000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ffd10bcc000)
    /lib64/ld-linux-x86-64.so.2 (0x00007ffd11165000)

# apache2ctl -S 
apache2: Syntax error on line 244 of /etc/apache2/apache2.conf:
               Syntax error on line 2 of /etc/apache2/mods-enabled/proxy_fcgi.load: 
               Cannot load /usr/lib/apache2/modules/mod_proxy_fcgi.so into server:
               /usr/lib/apache2/modules/mod_proxy_fcgi.so: undefined symbol: fcgi_process_request
Action '-S' failed.
The Apache error log may have more information.

(no infos in /var/log/apache2/error.log found)

2nd I got sources from Debian Testing for makepp and created and installed the Debian Wheezy package - but same problem:

# makepp
makepp: Loading makefile `/usr/src/mod_proxy_fcgi/mod_proxy_fcgi/Makefile'
makepp: warning: `/usr/src/mod_proxy_fcgi/mod_proxy_fcgi/%.lo' depends on itself; circular dependency removed
makepp: Entering directory `/usr/src/mod_proxy_fcgi/mod_proxy_fcgi'
/usr/bin/apxs2 -I/usr/include/apache2 -c %.lo -o %.o
Use of uninitialized value $includedir in concatenation (.) or string at (eval 9) line 1.
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static x86_64-linux-gnu-gcc -Wl,--as-needed -Wl,-z,relro   -o %.la  -rpath /usr/lib/apache2/modules -module -avoid-version    %.lo -o %.o
libtool: link: `%.lo' is not a valid libtool object
apxs:Error: Command failed with rc=65536
.
makepp: error: Failed to build target `/usr/src/mod_proxy_fcgi/mod_proxy_fcgi/%.lo' [1]
makepp: 0 files updated and 1 target failed

To be secure not to miss include/header files I also added package libfcgi-dev and added to be really
sure that nothing can be missed also /usr/include . But there was no changes in above error message. :(

Hope that's a small apache upgrade bug ? Would be nice to have fcgi:// useable by Apache threaded version with Tomcat running to call it on another instance.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant