commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Dubuc <martind1...@gmail.com>
Subject Re: [daemon] Failed compiling jsvc on Fedora and CentOS
Date Wed, 09 Jun 2010 18:55:23 GMT
I found out what the issue was.

The archive I was using to build jsvc had object files and librairies
compiled by someone else on another system. I did a make clean and I can now
build jsvc.

Martin

On Wed, Jun 9, 2010 at 2:41 PM, sebb <sebbaz@gmail.com> wrote:

> On 09/06/2010, Martin Dubuc <martind1111@gmail.com> wrote:
> > I can't get the jsvc binary to build on Fedora and CentOS. Here is the
> >  output of make:
> >
> >  ./configure --with-java=/usr/java
> >
> >  (cd native; make  all)
> >  make[1]: Entering directory
> >
>  `/root/apache-tomcat-7.0.0-RC4/bin/commons-daemon-1.0.2-native-src/unix/native'
> >  gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"i386\" -I/usr/java/include
> >  -I/usr/java/include/linux -Wall -Wstrict-prototypes -c debug.c -o
> debug.o
> >  gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"i386\" -I/usr/java/include
> >  -I/usr/java/include/linux -Wall -Wstrict-prototypes -c home.c -o home.o
> >  gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"i386\" -I/usr/java/include
> >  -I/usr/java/include/linux -Wall -Wstrict-prototypes -c signals.c -o
> >  signals.o
> >  ar cr libservice.a arguments.o debug.o dso-dlfcn.o dso-dyld.o help.o
> home.o
> >  java.o location.o replace.o locks.o signals.o
> >  ar: libservice.a: Malformed archive
>
> I could be wrong, but that does not look like a problem with jsvc.
>
> The command that is failing is ar, not one of the compile stages.
>
> Check that you have not run out of disk space, also permissions etc.
>
> Delete libservice.a and try again.
>
> >  make[1]: *** [libservice.a] Error 1
> >  make[1]: Leaving directory
> >
>  `/root/apache-tomcat-7.0.0-RC4/bin/commons-daemon-1.0.2-native-src/unix/native'
> >  make: *** [native/all] Error 2
> >
> >  Anybody was successful builidng jsvc on Fedora or CentOS?
> >
> >
> >  Martin
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message