You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Marcel Landman <Ma...@DICgroep.nl> on 2000/08/07 16:22:24 UTC

Apache + Tomcat 3.1 (Digital Tru64): "Magic file number error..."

Hello,

I am trying to install the mod_jserv module of Tomcat 3.1
in the Apache Webserver (1.3.9) as a Shared Object on a
Compaq Unix Tru64 machine (Unix version 4.0F).

I am having troubles with building the mod_serv module!
After the APXS-program  has compiled the different
source files in the native/apache/jserv directory, it is
trying the command LD to make an .so file. Here I get an error:

$ nsperl /usr/local/apache/bin/apxs -c mod_jserv.c jserv*.c
cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE
-I/usr/c
cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE
-I/usr/c
cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE
-I/usr/c
cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE
-I/usr/c
cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE
-I/usr/c
cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE
-I/usr/c
cc: Warning: jserv_mmap.c, line 119: In this statement, & before array
"js" is )
        for  (ptr=(char *)&js, i=0; i< sizeof(js); i++)
--------------------------^
cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE
-I/usr/c
cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE
-I/usr/c
cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE
-I/usr/c
cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE
-I/usr/c
cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE
-I/usr/c
cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE
-I/usr/c
cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE
-I/usr/c
ld -shared -expect_unresolved *  -o mod_jserv.so jserv_wrapper_win.o
jserv_wrap
ld:
Object file format error in: Makefile.am: read_cur_obj_info: bad file
magic num)
apxs:Break: Command failed with rc=65536

Can anyone help explain this problem and how I can get around??


Kind Regards,

Marcel Landman

Re: Apache + Tomcat 3.1 (Digital Tru64): "Magic file number error..."

Posted by James More <Ja...@wcom.com>.
First try configuring apache like so:

    ./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max --enable-rule=SHARED_CORE

when we enabled just the dso(so) module it gave us a similar error as the one u gotten.  So we ended up reinstalling perl, and apache before ours worked.

then build ur apache program and try it again.
if that doesn't work, try upgrading to apache 1.3.12..that's the one we are using.

good luck,
James

  ----- Original Message ----- 
  From: Marcel Landman 
  To: tomcat-user@jakarta.apache.org ; shachor@il.ibm.com 
  Sent: Monday, August 07, 2000 9:22 AM
  Subject: Apache + Tomcat 3.1 (Digital Tru64): "Magic file number error..."


  Hello, 
  I am trying to install the mod_jserv module of Tomcat 3.1 
  in the Apache Webserver (1.3.9) as a Shared Object on a 
  Compaq Unix Tru64 machine (Unix version 4.0F). 

  I am having troubles with building the mod_serv module! 
  After the APXS-program  has compiled the different 
  source files in the native/apache/jserv directory, it is 
  trying the command LD to make an .so file. Here I get an error: 

  $ nsperl /usr/local/apache/bin/apxs -c mod_jserv.c jserv*.c 
  cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/c 
  cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/c 
  cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/c 
  cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/c 
  cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/c 
  cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/c 
  cc: Warning: jserv_mmap.c, line 119: In this statement, & before array "js" is ) 
          for  (ptr=(char *)&js, i=0; i< sizeof(js); i++) 
  --------------------------^ 
  cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/c 
  cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/c 
  cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/c 
  cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/c 
  cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/c 
  cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/c 
  cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/c 
  ld -shared -expect_unresolved *  -o mod_jserv.so jserv_wrapper_win.o jserv_wrap 
  ld: 
  Object file format error in: Makefile.am: read_cur_obj_info: bad file magic num) 
  apxs:Break: Command failed with rc=65536 

  Can anyone help explain this problem and how I can get around?? 
    

  Kind Regards, 

  Marcel Landman