Login 
 
 Pref   Your subscriptions   Home   Help 
users@ml.mod-xslt2.com
mod-xslt2 - Users Mailing List
   
 
List info
 
 
 
Subscribe
 
 
Unsubscribe
 
 
Archive
 
 
Post
 



Advanced search
2004 01 02 03 04 05 06 07 08 09 10 11 12
2005 01 02 03 04 05 06 07 08 09 10 11 12
2006 01 02 03 04 05 06 07 08 09 10 11 12
2007 01 02 03 04 05 06 07 08 09 10 11 12
2008 01 02 03 04 05 06 07 08 09 10 11 12
2010 01 02 03 04 05 06 07 08 09 10 11 12

       Chronological                 Thread       

Building on Gentoo Bill Farrar
  • From: Bill Farrar <bill.w.farrar@xxxxxxxxx>
  • To: users@xxxxxxxxxxxxxxxx
  • Subject: Building on Gentoo
  • Date: Wed, 24 Oct 2007 20:35:21 -0500
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:organization:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; bh=AuoqBIH4mOZL+GoXsD6Zzefz2IXMHRcIJZha6WhYzks=; b=FsYHIcJgSYG1lzmGMjKaGVDtPqE2I1pNSAvQeJR4yZUZYSJSm3khcsRuU1cM2VI8HtOkAcCANeufTv0oYKAdkAaic2ajvdTOhn1PQnuXoou+LEvvSht6PU2wgpgmrra/FTdvEkz7PMbhp7QoqcxJHoOYZqfBVpQK3tYpEv1XZ4k=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:organization:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=qxkXnc85sxlFpoaSRBy+gR2J1s3UXIMhyBm+1TreIPnrYfkvkPZnttuzvid4A+wPJ5tbHMLLX16RJsApcAcaTWoh5Y06ODK/fxP4dKLJ3cITvhV3/J/Z6WpCoCorTS7MnHbc+qHNlbq4h3cJzd1NQadQ6Zf2LoXsX2NO+lDH8Ps=
  • Organization: SmartVendor
  • User-agent: Thunderbird 2.0.0.6 (X11/20070807)


  • Hi,

    I'm having some very frustrating problems getting mod-xslt2 to build and
    run on gentoo.

    First, the build problem. My system is fully up to date as far as gentoo
    stable goes:

    Libtool : 1.5.24
    gcc : 4.1.2

    I'm trying to compile this:

    http://www.mod-xslt2.com/software/archive/2005072700/modxslt-2005072700.tar.gz

    There is no gentoo ebuild for this package that I can find anywhere, so
    I'm doing it from source myself.

    I configure with this:

    $ ./configure --with-apxs=/usr/sbin/apxs2 --enable-exslt

    This completes fine.

    Then I make, which is fine up to this point:

    make[1]: Entering directory
    `/home/rbrown/Downloads/Tar/modxslt-2005072700/sapi/apache2'
    /bin/sh ../..//libtool --mode=compile i686-pc-linux-gnu-gcc -pthread -Os
    -march=i686 -fomit-frame-pointer -g -O2 -D_REENTRANT
    -I/usr/include/libxml2 -I/usr/include/libxml2 -DLINUX=2 -D_REENTRANT
    -D_GNU_SOURCE -I/usr/include/apr-0 -I/usr/include/apr-0
    -I/usr/include/db4.3 -I/usr/include/apache2 -I../../lib -I../..//lib -c
    modxslt.c
    libtool: compile: unable to infer tagged configuration
    libtool: compile: specify a tag with `--tag'
    make[1]: *** [modxslt.lo] Error 1
    make[1]: Leaving directory
    `/home/rbrown/Downloads/Tar/modxslt-2005072700/sapi/apache2'
    make: *** [sapi] Error 2

    After messing around with this for a while, I turned to the libtool
    mailing list, who recommended that I edit sapi/apache2/Makefile.in to
    append --tag=CC to this line:

    LIBTOOL := @LIBTOOL@

    ...and then running ./config.status

    This allowed the compilation to proceed a little futher, but then died
    with the following:

    i686-pc-linux-gnu-gcc -pthread -Os -march=i686 -fomit-frame-pointer -g
    -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2 -DLINUX=2
    -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-0 -I/usr/include/apr-0
    -I/usr/include/db4.3 -I/usr/include/apache2 -I../../lib -I../..//lib -c
    modxslt.c -fPIC -DPIC -o .libs/modxslt.o
    modxslt.c:23:21: error: sockios.h: No such file or directory
    modxslt.c: In function 'mxslt_ap2_setanyiplist':
    modxslt.c:495: error: 'SIOCGIFCONF' undeclared (first use in this function)
    modxslt.c:495: error: (Each undeclared identifier is reported only once
    modxslt.c:495: error: for each function it appears in.)
    modxslt.c:513: error: 'SIOCGIFADDR' undeclared (first use in this function)
    modxslt.c: At top level:
    modxslt.c:721: warning: initialization from incompatible pointer type
    make[1]: *** [modxslt.lo] Error 1
    make[1]: Leaving directory
    `/home/rbrown/Downloads/Tar/modxslt-2005072700/sapi/apache2'
    make: *** [sapi] Error 2

    I got round this by adding the following to sapi/apache2/modxslt.c:

    #include "/usr/include/linux/sockios.h"

    After that, I was able to finish make, and also make install.

    Now I have the problem that running a page through mod-xslt causes the
    apache process to segfault with no further information. My colleagues
    are using mod-xslt fine for the same page, but they're using a pre-built
    Debian binary which obviously doesn't suit my system at all.

    So at this point I'm at something of a brick wall. Any help on this
    would be greatly appreciated.

    Thanks.

    --

    Bill

      Powered by Sympa