You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Martin Dubuc <ma...@gmail.com> on 2010/06/09 19:12:36 UTC

[daemon] Failed compiling jsvc on Fedora and CentOS

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
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

Re: [daemon] Failed compiling jsvc on Fedora and CentOS

Posted by Martin Dubuc <ma...@gmail.com>.
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 <se...@gmail.com> wrote:

> On 09/06/2010, Martin Dubuc <ma...@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
>
>

Re: [daemon] Failed compiling jsvc on Fedora and CentOS

Posted by sebb <se...@gmail.com>.
On 09/06/2010, Martin Dubuc <ma...@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