Simple ebuild for install mod_caucho from resin sources. For install this you need apache 1.3.33-r1. Its using new eclass apache-module for installation. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 56327 [details] Ebuild & some patches
resin ebuild you can get here http://bugs.gentoo.org/show_bug.cgi?id=89156
Please, attach ebuild and patches as plaintext. Forcing everyone to download and unpack sucks. Thanks.
Created attachment 56333 [details] ebuild
Created attachment 56334 [details, diff] patch
Created attachment 56335 [details] config
>Bug 89158 blocks: 89156 What do mean ?
Please add mod_caucho to portage... It is very usefull for getting Apache and Resin together...
Created attachment 66360 [details] mod_caucho-3.0.12.ebuild Ebuild compile fail... With modification it works... Modified ebuild attached...
Hmm... i'm think need add DEPEND=">=virtual/jdk-1.4" to my DEPEND string. DEPEND=">=net-www/apache-1.3.33-r1 >=virtual/jdk-1.4"
*** Bug 103682 has been marked as a duplicate of this bug. ***
Created attachment 66849 [details] Ebuild
Created attachment 66850 [details] ebuild with patch & configuration file Version 3.0.14
Both ebuild doesn't work (3.0.12 and 3.0.14) for me. I getting the message: cannot stat ...mod_caucho.so. Therefore no mod_caucho module is installed...
(In reply to comment #14) > Both ebuild doesn't work (3.0.12 and 3.0.14) for me. > You can get me full log ? My emerge info: Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.5-r1, 2.6.12-gentoo-r8 i686) ================================================================= System uname: 2.6.12-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.12.0_pre6 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.5-r1, 2.6.12-gentoo-r9 i686) ================================================================= System uname: 2.6.12-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2
Ok view me full emerge mod_caucho log.
Here you have: emerge mod_caucho Calculating dependencies ...done! >>> emerge (1 of 1) www-apache/mod_caucho-3.0.14 to / >>> Downloading http://distfiles.gentoo.org/distfiles/resin-3.0.14.tar.gz --17:55:39-- http://distfiles.gentoo.org/distfiles/resin-3.0.14.tar.gz => `/usr/portage/distfiles/resin-3.0.14.tar.gz' Resolving distfiles.gentoo.org... 156.56.247.195, 216.165.129.135 Connecting to distfiles.gentoo.org[156.56.247.195]:80... connected. HTTP request sent, awaiting response... 404 Not Found 17:55:39 ERROR 404: Not Found. >>> Downloading http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/resin-3 .0.14.tar.gz --17:55:39-- http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/resin-3.0 .14.tar.gz => `/usr/portage/distfiles/resin-3.0.14.tar.gz' Resolving distro.ibiblio.org... 152.2.210.109 Connecting to distro.ibiblio.org[152.2.210.109]:80... connected. HTTP request sent, awaiting response... 404 Not Found 17:55:40 ERROR 404: Not Found. >>> Downloading http://www.caucho.com/download/resin-3.0.14.tar.gz --17:55:40-- http://www.caucho.com/download/resin-3.0.14.tar.gz => `/usr/portage/distfiles/resin-3.0.14.tar.gz' Resolving www.caucho.com... 209.162.192.247 Connecting to www.caucho.com[209.162.192.247]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 6,275,586 [application/octet-stream] 100%[==============================================>] 6,275,586 43.22K/s ETA 00:00 17:58:20 (38.79 KB/s) - `/usr/portage/distfiles/resin-3.0.14.tar.gz' saved [6,275,586/6,27 5,586] >>> md5 files ;-) mod_caucho-3.0.14.ebuild >>> md5 files ;-) files/digest-mod_caucho-3.0.14 >>> md5 files ;-) files/3.0.14/resin-gentoo_fix.patch >>> md5 files ;-) files/3.0.14/10_mod_caucho.conf >>> md5 src_uri ;-) resin-3.0.14.tar.gz >>> Unpacking source... >>> Unpacking resin-3.0.14.tar.gz to /var/tmp/portage/mod_caucho-3.0.14/work * Applying resin-gentoo_fix.patch ... [ ok ] >>> Source unpacked. * econf: updating resin-3.0.14/automake/config.guess with /usr/share/gnuconfig/config.gue ss * econf: updating resin-3.0.14/automake/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/ share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc -linux-gnu --with-apxs=/usr/sbin/apxs2 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of i686-pc-linux-gnu-gcc... none checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/i686-pc-linux-gnu-nm -B checking for a sed that does not truncate output... /bin/sed checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking command to parse /usr/bin/i686-pc-linux-gnu-nm -B output... ok checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip checking for objdir... .libs checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC checking if i686-pc-linux-gnu-gcc PIC flag -fPIC works... yes checking if i686-pc-linux-gnu-gcc static flag -static works... yes checking if i686-pc-linux-gnu-gcc supports -c -o file.o... yes checking if i686-pc-linux-gnu-gcc supports -c -o file.lo... yes checking if i686-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... y es checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether -lc should be explicitly linked in... no creating libtool Using shared library flags from /usr/sbin/apxs2 checking for JAVA_HOME... /opt/sun-jdk-1.4.2.08 checking if Java is 64-bit... no Using Apache configuration /etc/apache2/httpd.conf Using Apache CFLAGS: -march=pentium4 -O3 -pipe -fomit-frame-pointer checking for JNI in /opt/sun-jdk-1.4.2.08/include/linux ... found Using openssl include in ... /usr/include Using openssl lib in ... /usr/lib Using openssl libraries in ... -lcrypto -lssl configure: creating ./config.status config.status: creating Makefile config.status: creating bin/wrapper.pl config.status: creating modules/c/src/Makefile config.status: creating modules/c/src/common/Makefile config.status: creating modules/c/src/apache1/Makefile config.status: creating modules/c/src/apache2/Makefile config.status: creating modules/c/src/resin_os/Makefile config.status: creating contrib/init.resin config.status: executing depfiles commands (cd modules/c/src; make) make[1]: Entering directory `/tmp/portage/mod_caucho-3.0.14/work/resin-3.0.14/modules/c/sr c' for dir in common apache1 resin_os; do (cd $dir; make); done make[2]: Entering directory `/tmp/portage/mod_caucho-3.0.14/work/resin-3.0.14/modules/c/sr c/common' i686-pc-linux-gnu-gcc -c -I/usr/include -march=pentium4 -O3 -pipe -fomit-frame-pointer -DP OLL stream.c i686-pc-linux-gnu-gcc -c -I/usr/include -march=pentium4 -O3 -pipe -fomit-frame-pointer -DP OLL config.c i686-pc-linux-gnu-gcc -c -I/usr/include -march=pentium4 -O3 -pipe -fomit-frame-pointer -DP OLL memory.c /var/tmp/portage/mod_caucho-3.0.14/work/resin-3.0.14/libtool --silent --mode=compile i686- pc-linux-gnu-gcc -o stream.lo -c -I/usr/include -march=pentium4 -O3 -pipe -fomit-frame-poi nter -DPOLL stream.c /var/tmp/portage/mod_caucho-3.0.14/work/resin-3.0.14/libtool --silent --mode=compile i686- pc-linux-gnu-gcc -o config.lo -c -I/usr/include -march=pentium4 -O3 -pipe -fomit-frame-poi nter -DPOLL config.c /var/tmp/portage/mod_caucho-3.0.14/work/resin-3.0.14/libtool --silent --mode=compile i686- pc-linux-gnu-gcc -o memory.lo -c -I/usr/include -march=pentium4 -O3 -pipe -fomit-frame-poi nter -DPOLL memory.c /usr/i686-pc-linux-gnu/bin/ld -r -o common.o stream.o config.o memory.o make[2]: Leaving directory `/tmp/portage/mod_caucho-3.0.14/work/resin-3.0.14/modules/c/src /common' make[2]: Entering directory `/tmp/portage/mod_caucho-3.0.14/work/resin-3.0.14/modules/c/sr c/apache1' /var/tmp/portage/mod_caucho-3.0.14/work/resin-3.0.14/libtool --silent --mode=compile i686- pc-linux-gnu-gcc -o mod_caucho.lo -c -I/usr/include/apache2 -I/usr/include/apr-0 -DRESIN _HOME=\"/var/tmp/portage/mod_caucho-3.0.14/work/resin-3.0.14\" -I../common -march=pentium4 -O3 -pipe -fomit-frame-pointer -DPOLL -march=pentium4 -O3 -pipe -fomit-frame-pointer mod_ caucho.c mod_caucho.c:54: error: syntax error before "caucho_module" mod_caucho.c:54: warning: data definition has no type or storage class mod_caucho.c:60: error: syntax error before '*' token mod_caucho.c:60: warning: data definition has no type or storage class mod_caucho.c:165: warning: `struct pool' declared inside parameter list mod_caucho.c:165: warning: its scope is only this definition or declaration, which is prob ably not what you want mod_caucho.c: In function `cse_module_init': mod_caucho.c:167: warning: passing arg 1 of `ap_add_version_component' from incompatible p ointer type mod_caucho.c:167: error: too few arguments to function `ap_add_version_component' mod_caucho.c: At top level: mod_caucho.c:171: error: syntax error before '*' token mod_caucho.c: In function `cse_create_server_config': mod_caucho.c:176: error: `p' undeclared (first use in this function) mod_caucho.c:176: error: (Each undeclared identifier is reported only once mod_caucho.c:176: error: for each function it appears in.) mod_caucho.c:176: warning: assignment makes pointer from integer without a cast mod_caucho.c: At top level: mod_caucho.c:190: error: syntax error before '*' token mod_caucho.c: In function `cse_create_dir_config': mod_caucho.c:195: error: `p' undeclared (first use in this function) mod_caucho.c:195: warning: assignment makes pointer from integer without a cast mod_caucho.c: In function `cse_get_module_config': mod_caucho.c:218: error: request for member `module_index' in something not a structure or union mod_caucho.c:223: error: request for member `module_index' in something not a structure or union mod_caucho.c: In function `cse_get_cmd_config': mod_caucho.c:235: error: request for member `module_index' in something not a structure or union mod_caucho.c:240: error: request for member `module_index' in something not a structure or union mod_caucho.c: In function `cse_clean_jsessionid': mod_caucho.c:415: error: request for member `module_index' in something not a structure or union mod_caucho.c:429: error: structure has no member named `st_mode' mod_caucho.c:438: error: request for member `module_index' in something not a structure or union mod_caucho.c:452: error: structure has no member named `st_mode' mod_caucho.c: In function `get_session_index': mod_caucho.c:512: error: `array_header' undeclared (first use in this function) mod_caucho.c:512: error: `hdrs_arr' undeclared (first use in this function) mod_caucho.c:513: error: `table_entry' undeclared (first use in this function) mod_caucho.c:513: error: `hdrs' undeclared (first use in this function) mod_caucho.c:513: error: syntax error before ')' token mod_caucho.c:533: error: request for member `module_index' in something not a structure or union mod_caucho.c: In function `write_env': mod_caucho.c:576: error: request for member `module_index' in something not a structure or union mod_caucho.c:591: warning: passing arg 3 of `cse_write_string' makes pointer from integer without a cast mod_caucho.c:593: error: too few arguments to function `ap_get_remote_host' mod_caucho.c:601: error: request for member `sin_port' in something not a structure or uni on mod_caucho.c:601: warning: passing arg 3 of `cse_write_string' makes pointer from integer without a cast mod_caucho.c:603: error: structure has no member named `user' mod_caucho.c:604: error: structure has no member named `user' mod_caucho.c:605: error: structure has no member named `ap_auth_type' mod_caucho.c:606: error: structure has no member named `ap_auth_type' mod_caucho.c: In function `write_headers': mod_caucho.c:652: error: `array_header' undeclared (first use in this function) mod_caucho.c:652: error: `hdrs_arr' undeclared (first use in this function) mod_caucho.c:653: error: `table_entry' undeclared (first use in this function) mod_caucho.c:653: error: `hdrs' undeclared (first use in this function) mod_caucho.c:653: error: syntax error before ')' token mod_caucho.c: In function `write_added_headers': mod_caucho.c:681: error: `array_header' undeclared (first use in this function) mod_caucho.c:681: error: `hdrs_arr' undeclared (first use in this function) mod_caucho.c:682: error: `table_entry' undeclared (first use in this function) mod_caucho.c:682: error: `hdrs' undeclared (first use in this function) mod_caucho.c:682: error: syntax error before ')' token mod_caucho.c:702: error: structure has no member named `user' mod_caucho.c: In function `send_data': mod_caucho.c:819: warning: assignment makes pointer from integer without a cast mod_caucho.c:827: warning: assignment makes pointer from integer without a cast mod_caucho.c: In function `caucho_request': mod_caucho.c:965: error: request for member `module_index' in something not a structure or union mod_caucho.c:967: error: request for member `module_index' in something not a structure or union mod_caucho.c: At top level: mod_caucho.c:1194: error: syntax error before "pool" mod_caucho.c:1208: error: syntax error before "pool" mod_caucho.c:1249: error: syntax error before "caucho_handlers" mod_caucho.c:1251: warning: braces around scalar initializer mod_caucho.c:1251: warning: (near initialization for `caucho_handlers[0]') mod_caucho.c:1251: warning: initialization makes integer from pointer without a cast mod_caucho.c:1251: warning: excess elements in scalar initializer mod_caucho.c:1251: warning: (near initialization for `caucho_handlers[0]') mod_caucho.c:1252: warning: braces around scalar initializer mod_caucho.c:1252: warning: (near initialization for `caucho_handlers[1]') mod_caucho.c:1252: warning: initialization makes integer from pointer without a cast mod_caucho.c:1252: warning: excess elements in scalar initializer mod_caucho.c:1252: warning: (near initialization for `caucho_handlers[1]') mod_caucho.c:1253: warning: braces around scalar initializer mod_caucho.c:1253: warning: (near initialization for `caucho_handlers[2]') mod_caucho.c:1253: warning: initialization makes integer from pointer without a cast mod_caucho.c:1254: warning: data definition has no type or storage class mod_caucho.c:1265: error: conflicting types for `caucho_module' mod_caucho.c:54: error: previous declaration of `caucho_module' mod_caucho.c:1267: error: `this_module_needs_to_be_ported_to_apache_2_0' undeclared here ( not in a function) mod_caucho.c:1267: error: initializer element is not constant mod_caucho.c:1267: error: (near initialization for `caucho_module.version') mod_caucho.c:1268: warning: initialization makes integer from pointer without a cast mod_caucho.c:1269: warning: initialization makes integer from pointer without a cast mod_caucho.c:1273: warning: initialization makes integer from pointer without a cast mod_caucho.c:1274: warning: initialization from incompatible pointer type mod_caucho.c:1275: warning: initialization from incompatible pointer type mod_caucho.c:1279: warning: initialization from incompatible pointer type mod_caucho.c:1281: warning: excess elements in struct initializer mod_caucho.c:1281: warning: (near initialization for `caucho_module') mod_caucho.c:1282: warning: excess elements in struct initializer mod_caucho.c:1282: warning: (near initialization for `caucho_module') mod_caucho.c:1283: warning: excess elements in struct initializer mod_caucho.c:1283: warning: (near initialization for `caucho_module') mod_caucho.c:1284: warning: excess elements in struct initializer mod_caucho.c:1284: warning: (near initialization for `caucho_module') mod_caucho.c:1285: warning: excess elements in struct initializer mod_caucho.c:1285: warning: (near initialization for `caucho_module') make[2]: *** [mod_caucho.lo] Error 1 make[2]: Leaving directory `/tmp/portage/mod_caucho-3.0.14/work/resin-3.0.14/modules/c/src /apache1' make[2]: Entering directory `/tmp/portage/mod_caucho-3.0.14/work/resin-3.0.14/modules/c/sr c/resin_os' i686-pc-linux-gnu-gcc -march=pentium4 -O3 -pipe -fomit-frame-pointer -DPOLL -fPIC -DRESIN_ HOME=\"/var/tmp/portage/mod_caucho-3.0.14/work/resin-3.0.14\" -I/usr/include -I/opt/sun-jd k-1.4.2.08/include -I/opt/sun-jdk-1.4.2.08/include/linux -I../common -DCPU=\"i386\" -DOS= -c -o jni_os.o jni_os.c /usr/i686-pc-linux-gnu/bin/ld -shared -L/usr/lib -o libresin_os.so jni_os.o -lpthread make[2]: Leaving directory `/tmp/portage/mod_caucho-3.0.14/work/resin-3.0.14/modules/c/src /resin_os' make[1]: Leaving directory `/tmp/portage/mod_caucho-3.0.14/work/resin-3.0.14/modules/c/src ' >>> Test phase [not enabled]: www-apache/mod_caucho-3.0.14 >>> Install mod_caucho-3.0.14 into /var/tmp/portage/mod_caucho-3.0.14/image/ category www- apache /usr/portage/eclass/apache-module.eclass: line 285: cd: /var/tmp/portage/mod_caucho-3.0.14 /work/resin-3.0.14/modules/c/src/apache2/.libs/: No such file or directory !!! ERROR: www-apache/mod_caucho-3.0.14 failed. !!! Function apache2_src_install, Line 285, Exitcode 1 !!! cd /var/tmp/portage/mod_caucho-3.0.14/work/resin-3.0.14/modules/c/src/apache2/.libs/ f ailed !!! If you need support, post the topmost build error, NOT this status message.
Created attachment 66897 [details] Ebuild Fixed apache2 issues.
Created attachment 66898 [details] Ebuild with patch & configuration file New ebuild and patch with fix apache2 issues.
Created attachment 73669 [details] Ebuild with patch & configuration file New ebuild for mod_caucho. Remove unless depends.
Created attachment 73670 [details] Ebuild New ebuild for mod_caucho for resin 3.0.15
Created attachment 77318 [details] mod_caucho-3.0.17.ebuild
Created attachment 77319 [details, diff] files/3.0.17/resin-gentoo_fix.patch
Created attachment 77320 [details] files/3.0.17/10_mod_caucho.conf
mod_caucho is in https://svn.gentooexperimental.org/svn/java/gentoo-java-experimental/ When resin-3.0.17 gets into the tree mod_caucho will too.
Wow! Big thanks :)
In portage (3.0.19).