Apache and gcj

Discussion in 'Apache' started by kmwmtd, May 28, 2008.

  1. #1
    Hello All,

    I'm having 'fun' trying to write an apache module. Having finally got to grips with building, installing and configuring apache, and then building and deploying modules, I have run into a bit of a wall.

    For reasons too complicated to go into, I need my module to make calls to a Java class. Now, the mechanics of this are not a problem - I can build a standalone c app which calls the class successfully. However, when I turn this into a module, and try to start apache, I get:

    undefined symbol: __gcj_personality_v0

    The java was built with gcj, and the module, which needs to make use of c and cpp, was built with libtool and gcc. I have libgcj.so on the machine, and nm -D tells me that this defined the above symbol. I can run the stand alone app with no problem. I just can't get apache to accept it.

    What am I missing?

    My current thinking is that apache is not finding libgcj. /usr/lib actually contains libgcj.so.5, whereas /usr/lib/gcc/i386-redhat-linux/3.4.6 contains libgcj.so. Note 3.4.6 compared to 5.

    I am running Centos - admittedly on a Virtual PC.

    Anyone have any thoughts?

    Thanks in advance,

    Kev.
     
    kmwmtd, May 28, 2008 IP
  2. calum

    calum Peon

    Messages:
    2,821
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You may have better help on some Apache forum or even WHT, but most people here don't really have that much knowledge, sounds fascinating though :)
     
    calum, Jun 1, 2008 IP