Thread: [Modcplusplus-devel] Apache segfaults w/mod_cplusplus-1.4.3
Brought to you by:
gr84b8,
johnksterling
From: Michael S. <ms...@ca...> - 2005-01-24 15:21:38
|
Hi I managed to compile mod_cplusplus-1.4.3 on Gentoo. ./autogen.sh --with-apxs=/usr/sbin/apxs2 ./autogen.sh --with-apxs=/usr/sbin/apxs2 make cp src/.libs/libmod_cplusplus.* /usr/lib/apache2/modules/ cp include/* /usr/include/apache2/ Apache segfaults when it loads the module. The end of my apache startup log: [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module suexec_module [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module disk_cache_module [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module file_cache_module [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module mem_cache_module [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module cgi_module [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module cplusplus_module [EOF] # gdb apache2 core GNU gdb 6.0 Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1". Core was generated by `/usr/sbin/apache2 -f /etc/httpd/httpd.conf -DSSL -e debug -E /var/log/httpd'. Program terminated with signal 11, Segmentation fault. [---snip---] Reading symbols from /usr/lib/libmd5.so.0...done. Loaded symbols for /usr/lib/libmd5.so.0 Reading symbols from /usr/lib/libmysqlclient.so.12...done. Loaded symbols for /usr/lib/libmysqlclient.so.12 #0 0x409c26a5 in pcre_free_substring () from /usr/lib/libpcre.so.0 (gdb) (gdb) bt #0 0x409c26a5 in pcre_free_substring () from /usr/lib/libpcre.so.0 #1 0x08137cc0 in ?? () #2 0x407811a8 in ?? () from /usr/lib/libglib-2.0.so.0 #3 0x40781dc0 in _g_debug_flags () from /usr/lib/libglib-2.0.so.0 #4 0x40732c7c in _g_messages_thread_private_init () from /usr/lib/libglib-2.0.so.0 I have dev-libs/libpcre-4.5 installed via emerge/portage. Any idea, somebody |
From: John K. S. <jo...@st...> - 2005-01-24 16:36:36
|
Hi Michael - couple of questions: 1) have you run 'make check'? It runs the test cases against your apache install with the built in config file. I'd be curious if that segfaults, too. 2) What MPM are you running (prefork?) 3) Can you send your config file over? I'll try to reproduce. Thanks - John > Hi > > I managed to compile mod_cplusplus-1.4.3 on Gentoo. > > ./autogen.sh --with-apxs=/usr/sbin/apxs2 > ./autogen.sh --with-apxs=/usr/sbin/apxs2 > make > cp src/.libs/libmod_cplusplus.* /usr/lib/apache2/modules/ > cp include/* /usr/include/apache2/ > > Apache segfaults when it loads the module. > > The end of my apache startup log: > > [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module > suexec_module > [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module > disk_cache_module > [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module > file_cache_module > [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module > mem_cache_module > [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module > cgi_module [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded > module > cplusplus_module > [EOF] > > # gdb apache2 core > GNU gdb 6.0 > Copyright 2003 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. This GDB was configured as "i686-pc-linux-gnu"...(no debugging > symbols found)...Using host libthread_db library > "/lib/libthread_db.so.1". > > Core was generated by `/usr/sbin/apache2 -f /etc/httpd/httpd.conf -DSSL > -e debug -E /var/log/httpd'. > Program terminated with signal 11, Segmentation fault. > > [---snip---] > > Reading symbols from /usr/lib/libmd5.so.0...done. > Loaded symbols for /usr/lib/libmd5.so.0 > Reading symbols from /usr/lib/libmysqlclient.so.12...done. > Loaded symbols for /usr/lib/libmysqlclient.so.12 > #0 0x409c26a5 in pcre_free_substring () from /usr/lib/libpcre.so.0 > (gdb) > (gdb) bt > #0 0x409c26a5 in pcre_free_substring () from /usr/lib/libpcre.so.0 #1 > 0x08137cc0 in ?? () > #2 0x407811a8 in ?? () from /usr/lib/libglib-2.0.so.0 > #3 0x40781dc0 in _g_debug_flags () from /usr/lib/libglib-2.0.so.0 #4 > 0x40732c7c in _g_messages_thread_private_init () from > /usr/lib/libglib-2.0.so.0 > > I have dev-libs/libpcre-4.5 installed via emerge/portage. > > Any idea, somebody > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time by > over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Modcplusplus-devel mailing list > Mod...@li... > https://lists.sourceforge.net/lists/listinfo/modcplusplus-devel |
From: Michael S. <ms...@ca...> - 2005-01-25 00:22:08
|
Thanks John by looking at 'make check' I saw that the problem seems to be the CPPHandler that gets loaded by mod_cplusplus. mod_cplusplus loads just fine with the 'make check' config. will now look into the CPPHandler issue. It has been written for mod_cplusplus-1.2 and confirmed to work in 1.3, but not 1.4. Mike John K. Sterling wrote: > Hi Michael - > > couple of questions: > > 1) have you run 'make check'? It runs the test cases against your apache > install with the built in config file. I'd be curious if that segfaults, > too. > 2) What MPM are you running (prefork?) > 3) Can you send your config file over? I'll try to reproduce. > > Thanks - > > John > > >>Hi >> >>I managed to compile mod_cplusplus-1.4.3 on Gentoo. >> >>./autogen.sh --with-apxs=/usr/sbin/apxs2 >>./autogen.sh --with-apxs=/usr/sbin/apxs2 >>make >>cp src/.libs/libmod_cplusplus.* /usr/lib/apache2/modules/ >>cp include/* /usr/include/apache2/ >> >>Apache segfaults when it loads the module. >> >>The end of my apache startup log: >> >>[Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>suexec_module >>[Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>disk_cache_module >>[Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>file_cache_module >>[Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>mem_cache_module >>[Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>cgi_module [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded >>module >>cplusplus_module >>[EOF] >> >># gdb apache2 core >>GNU gdb 6.0 >>Copyright 2003 Free Software Foundation, Inc. >>GDB is free software, covered by the GNU General Public License, and you >>are welcome to change it and/or distribute copies of it under certain >>conditions. >>Type "show copying" to see the conditions. >>There is absolutely no warranty for GDB. Type "show warranty" for >>details. This GDB was configured as "i686-pc-linux-gnu"...(no debugging >>symbols found)...Using host libthread_db library >>"/lib/libthread_db.so.1". >> >>Core was generated by `/usr/sbin/apache2 -f /etc/httpd/httpd.conf -DSSL >>-e debug -E /var/log/httpd'. >>Program terminated with signal 11, Segmentation fault. >> >>[---snip---] >> >>Reading symbols from /usr/lib/libmd5.so.0...done. >>Loaded symbols for /usr/lib/libmd5.so.0 >>Reading symbols from /usr/lib/libmysqlclient.so.12...done. >>Loaded symbols for /usr/lib/libmysqlclient.so.12 >>#0 0x409c26a5 in pcre_free_substring () from /usr/lib/libpcre.so.0 >>(gdb) >>(gdb) bt >>#0 0x409c26a5 in pcre_free_substring () from /usr/lib/libpcre.so.0 #1 >>0x08137cc0 in ?? () >>#2 0x407811a8 in ?? () from /usr/lib/libglib-2.0.so.0 >>#3 0x40781dc0 in _g_debug_flags () from /usr/lib/libglib-2.0.so.0 #4 >>0x40732c7c in _g_messages_thread_private_init () from >>/usr/lib/libglib-2.0.so.0 >> >>I have dev-libs/libpcre-4.5 installed via emerge/portage. >> >>Any idea, somebody >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting >>Tool for open source databases. Create drag-&-drop reports. Save time by >>over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >>Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>_______________________________________________ >>Modcplusplus-devel mailing list >>Mod...@li... >>https://lists.sourceforge.net/lists/listinfo/modcplusplus-devel |
From: John S. <jo...@st...> - 2005-01-25 00:27:04
|
Interesting. Feel free to send the code along, if you'd like - i'll have a look. John On Jan 24, 2005, at 7:23 PM, Michael Steinmann wrote: > Thanks John > > by looking at 'make check' I saw that the problem seems to be the > CPPHandler that gets loaded by mod_cplusplus. mod_cplusplus loads just > fine with the 'make check' config. > > will now look into the CPPHandler issue. It has been written for > mod_cplusplus-1.2 and confirmed to work in 1.3, but not 1.4. > Mike > > John K. Sterling wrote: >> Hi Michael - >> couple of questions: >> 1) have you run 'make check'? It runs the test cases against your >> apache >> install with the built in config file. I'd be curious if that >> segfaults, >> too. >> 2) What MPM are you running (prefork?) >> 3) Can you send your config file over? I'll try to reproduce. >> Thanks - >> John >>> Hi >>> >>> I managed to compile mod_cplusplus-1.4.3 on Gentoo. >>> >>> ./autogen.sh --with-apxs=/usr/sbin/apxs2 >>> ./autogen.sh --with-apxs=/usr/sbin/apxs2 >>> make >>> cp src/.libs/libmod_cplusplus.* /usr/lib/apache2/modules/ >>> cp include/* /usr/include/apache2/ >>> >>> Apache segfaults when it loads the module. >>> >>> The end of my apache startup log: >>> >>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>> suexec_module >>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>> disk_cache_module >>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>> file_cache_module >>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>> mem_cache_module >>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>> cgi_module [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded >>> module >>> cplusplus_module >>> [EOF] >>> >>> # gdb apache2 core >>> GNU gdb 6.0 >>> Copyright 2003 Free Software Foundation, Inc. >>> GDB is free software, covered by the GNU General Public License, and >>> you >>> are welcome to change it and/or distribute copies of it under certain >>> conditions. >>> Type "show copying" to see the conditions. >>> There is absolutely no warranty for GDB. Type "show warranty" for >>> details. This GDB was configured as "i686-pc-linux-gnu"...(no >>> debugging >>> symbols found)...Using host libthread_db library >>> "/lib/libthread_db.so.1". >>> >>> Core was generated by `/usr/sbin/apache2 -f /etc/httpd/httpd.conf >>> -DSSL >>> -e debug -E /var/log/httpd'. >>> Program terminated with signal 11, Segmentation fault. >>> >>> [---snip---] >>> >>> Reading symbols from /usr/lib/libmd5.so.0...done. >>> Loaded symbols for /usr/lib/libmd5.so.0 >>> Reading symbols from /usr/lib/libmysqlclient.so.12...done. >>> Loaded symbols for /usr/lib/libmysqlclient.so.12 >>> #0 0x409c26a5 in pcre_free_substring () from /usr/lib/libpcre.so.0 >>> (gdb) >>> (gdb) bt >>> #0 0x409c26a5 in pcre_free_substring () from /usr/lib/libpcre.so.0 >>> #1 >>> 0x08137cc0 in ?? () >>> #2 0x407811a8 in ?? () from /usr/lib/libglib-2.0.so.0 >>> #3 0x40781dc0 in _g_debug_flags () from /usr/lib/libglib-2.0.so.0 #4 >>> 0x40732c7c in _g_messages_thread_private_init () from >>> /usr/lib/libglib-2.0.so.0 >>> >>> I have dev-libs/libpcre-4.5 installed via emerge/portage. >>> >>> Any idea, somebody >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: IntelliVIEW -- Interactive >>> Reporting >>> Tool for open source databases. Create drag-&-drop reports. Save >>> time by >>> over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>> _______________________________________________ >>> Modcplusplus-devel mailing list >>> Mod...@li... >>> https://lists.sourceforge.net/lists/listinfo/modcplusplus-devel > |
From: Michael S. <mic...@ca...> - 2005-01-26 00:18:22
|
Hi compilation of 1.4.3 now works fine on my Gentoo system. I created a beta quality ebuild for mod_cplusplus-1.4.3 (tested on 4 x86 machines). I'm using mod_cplusplus together with SIPfoundry.org's sipXpbx, a software PBX for the SIP protocol. Instructions on how to use my ebuild can be found here: http://wiki.calivia.com/index.php/SIPfoundry.org_sipX_Ebuilds_for_Gentoo_Linux Anyone to test the ebuild and give feedback is more than welcome. Mike John Sterling wrote: > Interesting. Feel free to send the code along, if you'd like - i'll > have a look. > > John > > On Jan 24, 2005, at 7:23 PM, Michael Steinmann wrote: > >> Thanks John >> >> by looking at 'make check' I saw that the problem seems to be the >> CPPHandler that gets loaded by mod_cplusplus. mod_cplusplus loads >> just fine with the 'make check' config. >> >> will now look into the CPPHandler issue. It has been written for >> mod_cplusplus-1.2 and confirmed to work in 1.3, but not 1.4. >> Mike >> >> John K. Sterling wrote: >> >>> Hi Michael - >>> couple of questions: >>> 1) have you run 'make check'? It runs the test cases against your >>> apache >>> install with the built in config file. I'd be curious if that >>> segfaults, >>> too. >>> 2) What MPM are you running (prefork?) >>> 3) Can you send your config file over? I'll try to reproduce. >>> Thanks - >>> John >>> >>>> Hi >>>> >>>> I managed to compile mod_cplusplus-1.4.3 on Gentoo. >>>> >>>> ./autogen.sh --with-apxs=/usr/sbin/apxs2 >>>> ./autogen.sh --with-apxs=/usr/sbin/apxs2 >>>> make >>>> cp src/.libs/libmod_cplusplus.* /usr/lib/apache2/modules/ >>>> cp include/* /usr/include/apache2/ >>>> >>>> Apache segfaults when it loads the module. >>>> >>>> The end of my apache startup log: >>>> >>>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>>> suexec_module >>>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>>> disk_cache_module >>>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>>> file_cache_module >>>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>>> mem_cache_module >>>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>>> cgi_module [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded >>>> module >>>> cplusplus_module >>>> [EOF] >>>> >>>> # gdb apache2 core >>>> GNU gdb 6.0 >>>> Copyright 2003 Free Software Foundation, Inc. >>>> GDB is free software, covered by the GNU General Public License, >>>> and you >>>> are welcome to change it and/or distribute copies of it under certain >>>> conditions. >>>> Type "show copying" to see the conditions. >>>> There is absolutely no warranty for GDB. Type "show warranty" for >>>> details. This GDB was configured as "i686-pc-linux-gnu"...(no >>>> debugging >>>> symbols found)...Using host libthread_db library >>>> "/lib/libthread_db.so.1". >>>> >>>> Core was generated by `/usr/sbin/apache2 -f /etc/httpd/httpd.conf >>>> -DSSL >>>> -e debug -E /var/log/httpd'. >>>> Program terminated with signal 11, Segmentation fault. >>>> >>>> [---snip---] >>>> >>>> Reading symbols from /usr/lib/libmd5.so.0...done. >>>> Loaded symbols for /usr/lib/libmd5.so.0 >>>> Reading symbols from /usr/lib/libmysqlclient.so.12...done. >>>> Loaded symbols for /usr/lib/libmysqlclient.so.12 >>>> #0 0x409c26a5 in pcre_free_substring () from /usr/lib/libpcre.so.0 >>>> (gdb) >>>> (gdb) bt >>>> #0 0x409c26a5 in pcre_free_substring () from /usr/lib/libpcre.so.0 #1 >>>> 0x08137cc0 in ?? () >>>> #2 0x407811a8 in ?? () from /usr/lib/libglib-2.0.so.0 >>>> #3 0x40781dc0 in _g_debug_flags () from /usr/lib/libglib-2.0.so.0 #4 >>>> 0x40732c7c in _g_messages_thread_private_init () from >>>> /usr/lib/libglib-2.0.so.0 >>>> >>>> I have dev-libs/libpcre-4.5 installed via emerge/portage. >>>> >>>> Any idea, somebody >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.Net email is sponsored by: IntelliVIEW -- Interactive >>>> Reporting >>>> Tool for open source databases. Create drag-&-drop reports. Save >>>> time by >>>> over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >>>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>>> _______________________________________________ >>>> Modcplusplus-devel mailing list >>>> Mod...@li... >>>> https://lists.sourceforge.net/lists/listinfo/modcplusplus-devel >>> >> > |
From: John S. <jo...@st...> - 2005-01-26 09:10:59
|
Hi Mike - The links at http://wiki.calivia.com/index.php/Mod_cplusplus seem to be broken - although I find a single patch file at http://wiki.calivia.com/svn/sipx-ebuilds/www-apache/mod_cplusplus/ files/1.4.3.patch that contains both patches. I've applied the test_auth.cpp portion (thanks). For the configure.in patch - it would be best to find a more portable way to determine the shared library suffix instead of patching it. On gentoo is libc.so somewhere other than /usr/lib? I can fix configure to look in other places for it. Also, does make install not work for you? I notice your instructions manually copy things in, I will fix that if its not working. Thanks - Send me the above info and the patches should be applied in the next release. I look forward to more patches! John On Jan 26, 2005, at 8:19 AM, Michael Steinmann wrote: > Hi > > compilation of 1.4.3 now works fine on my Gentoo system. I created a > beta quality ebuild for mod_cplusplus-1.4.3 (tested on 4 x86 > machines). I'm using mod_cplusplus together with SIPfoundry.org's > sipXpbx, a software PBX for the SIP protocol. > > Instructions on how to use my ebuild can be found here: > http://wiki.calivia.com/index.php/ > SIPfoundry.org_sipX_Ebuilds_for_Gentoo_Linux > > Anyone to test the ebuild and give feedback is more than welcome. > Mike > > John Sterling wrote: > >> Interesting. Feel free to send the code along, if you'd like - i'll >> have a look. >> >> John >> >> On Jan 24, 2005, at 7:23 PM, Michael Steinmann wrote: >> >>> Thanks John >>> >>> by looking at 'make check' I saw that the problem seems to be the >>> CPPHandler that gets loaded by mod_cplusplus. mod_cplusplus loads >>> just fine with the 'make check' config. >>> >>> will now look into the CPPHandler issue. It has been written for >>> mod_cplusplus-1.2 and confirmed to work in 1.3, but not 1.4. >>> Mike >>> >>> John K. Sterling wrote: >>> >>>> Hi Michael - >>>> couple of questions: >>>> 1) have you run 'make check'? It runs the test cases against your >>>> apache >>>> install with the built in config file. I'd be curious if that >>>> segfaults, >>>> too. >>>> 2) What MPM are you running (prefork?) >>>> 3) Can you send your config file over? I'll try to reproduce. >>>> Thanks - >>>> John >>>> >>>>> Hi >>>>> >>>>> I managed to compile mod_cplusplus-1.4.3 on Gentoo. >>>>> >>>>> ./autogen.sh --with-apxs=/usr/sbin/apxs2 >>>>> ./autogen.sh --with-apxs=/usr/sbin/apxs2 >>>>> make >>>>> cp src/.libs/libmod_cplusplus.* /usr/lib/apache2/modules/ >>>>> cp include/* /usr/include/apache2/ >>>>> >>>>> Apache segfaults when it loads the module. >>>>> >>>>> The end of my apache startup log: >>>>> >>>>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>>>> suexec_module >>>>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>>>> disk_cache_module >>>>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>>>> file_cache_module >>>>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>>>> mem_cache_module >>>>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>>>> cgi_module [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded >>>>> module >>>>> cplusplus_module >>>>> [EOF] >>>>> >>>>> # gdb apache2 core >>>>> GNU gdb 6.0 >>>>> Copyright 2003 Free Software Foundation, Inc. >>>>> GDB is free software, covered by the GNU General Public License, >>>>> and you >>>>> are welcome to change it and/or distribute copies of it under >>>>> certain >>>>> conditions. >>>>> Type "show copying" to see the conditions. >>>>> There is absolutely no warranty for GDB. Type "show warranty" for >>>>> details. This GDB was configured as "i686-pc-linux-gnu"...(no >>>>> debugging >>>>> symbols found)...Using host libthread_db library >>>>> "/lib/libthread_db.so.1". >>>>> >>>>> Core was generated by `/usr/sbin/apache2 -f /etc/httpd/httpd.conf >>>>> -DSSL >>>>> -e debug -E /var/log/httpd'. >>>>> Program terminated with signal 11, Segmentation fault. >>>>> >>>>> [---snip---] >>>>> >>>>> Reading symbols from /usr/lib/libmd5.so.0...done. >>>>> Loaded symbols for /usr/lib/libmd5.so.0 >>>>> Reading symbols from /usr/lib/libmysqlclient.so.12...done. >>>>> Loaded symbols for /usr/lib/libmysqlclient.so.12 >>>>> #0 0x409c26a5 in pcre_free_substring () from /usr/lib/libpcre.so.0 >>>>> (gdb) >>>>> (gdb) bt >>>>> #0 0x409c26a5 in pcre_free_substring () from >>>>> /usr/lib/libpcre.so.0 #1 >>>>> 0x08137cc0 in ?? () >>>>> #2 0x407811a8 in ?? () from /usr/lib/libglib-2.0.so.0 >>>>> #3 0x40781dc0 in _g_debug_flags () from /usr/lib/libglib-2.0.so.0 >>>>> #4 >>>>> 0x40732c7c in _g_messages_thread_private_init () from >>>>> /usr/lib/libglib-2.0.so.0 >>>>> >>>>> I have dev-libs/libpcre-4.5 installed via emerge/portage. >>>>> >>>>> Any idea, somebody >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> This SF.Net email is sponsored by: IntelliVIEW -- Interactive >>>>> Reporting >>>>> Tool for open source databases. Create drag-&-drop reports. Save >>>>> time by >>>>> over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >>>>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>>>> _______________________________________________ >>>>> Modcplusplus-devel mailing list >>>>> Mod...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/modcplusplus-devel >>>> >>> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Modcplusplus-devel mailing list > Mod...@li... > https://lists.sourceforge.net/lists/listinfo/modcplusplus-devel > |
From: Michael S. <ms...@ca...> - 2005-01-26 22:22:35
|
Hi John thanks for pointing out the broken link in the wiki; it's fixed now. The patch to configure.in solves the issue where libmod_cplusplus.so gets built, but make install tries to install libmod_cplusplus.5. config.log: configure:19091: checking what the shared library extension is configure:19094: result: 5 configure:19098: checking for apxs configure:19115: result: found /usr/sbin/apxs2 >>> Install mod_cplusplus-1.4.3 into /var/tmp/portage/mod_cplusplus-1.4.3/image/ category www-apache * Installing libmod_cplusplus into /usr/lib/apache2/modules... ...installing module....... cp src/.libs/libmod_cplusplus.5 /usr/lib/apache2/modules cp: cannot stat `src/.libs/libmod_cplusplus.5': No such file or directory make: *** [install] Error 1 I saw that you fixed the other issue in CVS - thanks. Mike John Sterling wrote: > Hi Mike - > > The links at http://wiki.calivia.com/index.php/Mod_cplusplus seem to be > broken - although I find a single patch file at > http://wiki.calivia.com/svn/sipx-ebuilds/www-apache/mod_cplusplus/ > files/1.4.3.patch that contains both patches. > > I've applied the test_auth.cpp portion (thanks). For the configure.in > patch - it would be best to find a more portable way to determine the > shared library suffix instead of patching it. On gentoo is libc.so > somewhere other than /usr/lib? I can fix configure to look in other > places for it. > > Also, does make install not work for you? I notice your instructions > manually copy things in, I will fix that if its not working. > > Thanks - Send me the above info and the patches should be applied in > the next release. I look forward to more patches! > > John > > On Jan 26, 2005, at 8:19 AM, Michael Steinmann wrote: > >> Hi >> >> compilation of 1.4.3 now works fine on my Gentoo system. I created a >> beta quality ebuild for mod_cplusplus-1.4.3 (tested on 4 x86 >> machines). I'm using mod_cplusplus together with SIPfoundry.org's >> sipXpbx, a software PBX for the SIP protocol. >> >> Instructions on how to use my ebuild can be found here: >> http://wiki.calivia.com/index.php/ >> SIPfoundry.org_sipX_Ebuilds_for_Gentoo_Linux >> >> Anyone to test the ebuild and give feedback is more than welcome. >> Mike >> >> John Sterling wrote: >> >>> Interesting. Feel free to send the code along, if you'd like - i'll >>> have a look. >>> >>> John >>> >>> On Jan 24, 2005, at 7:23 PM, Michael Steinmann wrote: >>> >>>> Thanks John >>>> >>>> by looking at 'make check' I saw that the problem seems to be the >>>> CPPHandler that gets loaded by mod_cplusplus. mod_cplusplus loads >>>> just fine with the 'make check' config. >>>> >>>> will now look into the CPPHandler issue. It has been written for >>>> mod_cplusplus-1.2 and confirmed to work in 1.3, but not 1.4. >>>> Mike >>>> >>>> John K. Sterling wrote: >>>> >>>>> Hi Michael - >>>>> couple of questions: >>>>> 1) have you run 'make check'? It runs the test cases against your >>>>> apache >>>>> install with the built in config file. I'd be curious if that >>>>> segfaults, >>>>> too. >>>>> 2) What MPM are you running (prefork?) >>>>> 3) Can you send your config file over? I'll try to reproduce. >>>>> Thanks - >>>>> John >>>>> >>>>>> Hi >>>>>> >>>>>> I managed to compile mod_cplusplus-1.4.3 on Gentoo. >>>>>> >>>>>> ./autogen.sh --with-apxs=/usr/sbin/apxs2 >>>>>> ./autogen.sh --with-apxs=/usr/sbin/apxs2 >>>>>> make >>>>>> cp src/.libs/libmod_cplusplus.* /usr/lib/apache2/modules/ >>>>>> cp include/* /usr/include/apache2/ >>>>>> >>>>>> Apache segfaults when it loads the module. >>>>>> >>>>>> The end of my apache startup log: >>>>>> >>>>>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>>>>> suexec_module >>>>>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>>>>> disk_cache_module >>>>>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>>>>> file_cache_module >>>>>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>>>>> mem_cache_module >>>>>> [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded module >>>>>> cgi_module [Mon Jan 24 15:26:38 2005] [debug] mod_so.c(247): loaded >>>>>> module >>>>>> cplusplus_module >>>>>> [EOF] >>>>>> >>>>>> # gdb apache2 core >>>>>> GNU gdb 6.0 >>>>>> Copyright 2003 Free Software Foundation, Inc. >>>>>> GDB is free software, covered by the GNU General Public License, >>>>>> and you >>>>>> are welcome to change it and/or distribute copies of it under >>>>>> certain >>>>>> conditions. >>>>>> Type "show copying" to see the conditions. >>>>>> There is absolutely no warranty for GDB. Type "show warranty" for >>>>>> details. This GDB was configured as "i686-pc-linux-gnu"...(no >>>>>> debugging >>>>>> symbols found)...Using host libthread_db library >>>>>> "/lib/libthread_db.so.1". >>>>>> >>>>>> Core was generated by `/usr/sbin/apache2 -f /etc/httpd/httpd.conf >>>>>> -DSSL >>>>>> -e debug -E /var/log/httpd'. >>>>>> Program terminated with signal 11, Segmentation fault. >>>>>> >>>>>> [---snip---] >>>>>> >>>>>> Reading symbols from /usr/lib/libmd5.so.0...done. >>>>>> Loaded symbols for /usr/lib/libmd5.so.0 >>>>>> Reading symbols from /usr/lib/libmysqlclient.so.12...done. >>>>>> Loaded symbols for /usr/lib/libmysqlclient.so.12 >>>>>> #0 0x409c26a5 in pcre_free_substring () from /usr/lib/libpcre.so.0 >>>>>> (gdb) >>>>>> (gdb) bt >>>>>> #0 0x409c26a5 in pcre_free_substring () from >>>>>> /usr/lib/libpcre.so.0 #1 >>>>>> 0x08137cc0 in ?? () >>>>>> #2 0x407811a8 in ?? () from /usr/lib/libglib-2.0.so.0 >>>>>> #3 0x40781dc0 in _g_debug_flags () from >>>>>> /usr/lib/libglib-2.0.so.0 #4 >>>>>> 0x40732c7c in _g_messages_thread_private_init () from >>>>>> /usr/lib/libglib-2.0.so.0 >>>>>> >>>>>> I have dev-libs/libpcre-4.5 installed via emerge/portage. >>>>>> >>>>>> Any idea, somebody >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> This SF.Net email is sponsored by: IntelliVIEW -- Interactive >>>>>> Reporting >>>>>> Tool for open source databases. Create drag-&-drop reports. Save >>>>>> time by >>>>>> over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >>>>>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>>>>> _______________________________________________ >>>>>> Modcplusplus-devel mailing list >>>>>> Mod...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/modcplusplus-devel >>>>> >>>>> >>>> >>> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting >> Tool for open source databases. Create drag-&-drop reports. Save time >> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >> Download a FREE copy at http://www.intelliview.com/go/osdn_nl >> _______________________________________________ >> Modcplusplus-devel mailing list >> Mod...@li... >> https://lists.sourceforge.net/lists/listinfo/modcplusplus-devel >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Modcplusplus-devel mailing list > Mod...@li... > https://lists.sourceforge.net/lists/listinfo/modcplusplus-devel |