Re: [Prelude Hybrid IDS] #288: gcc:gcc: unrecognized option `-KPIC'
"Prelude Hybrid IDS" <[email protected]>
| Newsgroups | gmane.comp.security.ids.prelude.devel |
|---|---|
| Message-ID | <[email protected]> |
#288: gcc:gcc: unrecognized option `-KPIC' ------------------------------+--------------------------------------------- Reporter: [email protected] | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: libprelude | Version: 0.9 Severity: normal | Resolution: Keywords: | ------------------------------+--------------------------------------------- Old description: > I am trying to compile libprelude on Solaris 10 (Sparc) i can configure > but when i make its gives me following error. CAn you help please > > > gcc -c -I../.. -I../../src/include -I../../src/include -I../../src > /libprelude-error -D_REENTRANT -pthreads -D_REENTRANT -xO3 > -xtarget=ultra -xarch=v8 -I/opt/csw/bdb44/include -I/opt/csw/include > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xtarget=ultra -xarch=v8 > -DVERSION=\"\" -DXS_VERSION=\"\" -KPIC "-I/opt/csw/lib/perl/5.8.8/CORE" > Prelude.c > gcc: unrecognized option `-KPIC' > gcc: language arch=v8 not recognized > gcc: Prelude.c: linker input file unused because linking not done > rm -f blib/arch/auto/Prelude/Prelude.so > LD_RUN_PATH="" cc -L../../src/.libs -D_REENTRANT -pthreads -G > -L/opt/csw/bdb44/lib -L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib > -L/opt/SUNWspro/prod/lib/v8plus -L/opt/SUNWspro/prod/lib -L/lib Prelude.o > -o blib/arch/auto/Prelude/Prelude.so \ > -L/root/IDS/prelude/libprelude-0.9.17.2/bindings/perl/../../src/.libs > -lprelude \ > > sh: cc: not found > *** Error code 1 > make: Fatal error: Command failed for target > `blib/arch/auto/Prelude/Prelude.so' > Current working directory > /root/IDS/prelude/libprelude-0.9.17.2/bindings/perl > *** Error code 1 > make: Fatal error: Command failed for target `perl-build' > Current working directory /root/IDS/prelude/libprelude-0.9.17.2/bindings > *** Error code 1 > The following command caused the error: > failcom='exit 1'; \ > for f in x $MAKEFLAGS; do \ > case $f in \ > *=* | --[!k]*);; \ > *k*) failcom='fail=yes';; \ > esac; \ > done; \ > dot_seen=no; \ > target=`echo all-recursive | sed s/-recursive//`; \ > list='libltdl libmissing m4 src prelude-admin bindings docs'; for subdir > in $list; do \ > echo "Making $target in $subdir"; \ > if test "$subdir" = "."; then \ > dot_seen=yes; \ > local_target="$target-am"; \ > else \ > local_target="$target"; \ > fi; \ > (cd $subdir && make $local_target) \ > || eval $failcom; \ > done; \ > if test "$dot_seen" = "no"; then \ > make "$target-am" || exit 1; \ > fi; test -z "$fail" > make: Fatal error: Command failed for target `all-recursive' > Current working directory /root/IDS/prelude/libprelude-0.9.17.2 > *** Error code 1 > make: Fatal error: Command failed for target `all' New description: I am trying to compile libprelude on Solaris 10 (Sparc) i can configure but when i make its gives me following error. CAn you help please {{{ gcc -c -I../.. -I../../src/include -I../../src/include -I../../src /libprelude-error -D_REENTRANT -pthreads -D_REENTRANT -xO3 -xtarget=ultra -xarch=v8 -I/opt/csw/bdb44/include -I/opt/csw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xtarget=ultra -xarch=v8 -DVERSION=\"\" -DXS_VERSION=\"\" -KPIC "-I/opt/csw/lib/perl/5.8.8/CORE" Prelude.c gcc: unrecognized option `-KPIC' gcc: language arch=v8 not recognized gcc: Prelude.c: linker input file unused because linking not done rm -f blib/arch/auto/Prelude/Prelude.so LD_RUN_PATH="" cc -L../../src/.libs -D_REENTRANT -pthreads -G -L/opt/csw/bdb44/lib -L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib/v8plus -L/opt/SUNWspro/prod/lib -L/lib Prelude.o -o blib/arch/auto/Prelude/Prelude.so \ -L/root/IDS/prelude/libprelude-0.9.17.2/bindings/perl/../../src/.libs -lprelude \ sh: cc: not found *** Error code 1 make: Fatal error: Command failed for target `blib/arch/auto/Prelude/Prelude.so' Current working directory /root/IDS/prelude/libprelude-0.9.17.2/bindings/perl *** Error code 1 make: Fatal error: Command failed for target `perl-build' Current working directory /root/IDS/prelude/libprelude-0.9.17.2/bindings *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='libltdl libmissing m4 src prelude-admin bindings docs'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' Current working directory /root/IDS/prelude/libprelude-0.9.17.2 *** Error code 1 make: Fatal error: Command failed for target `all' }}} -- Comment(by yoann): Could you please provides the generated Makefile, as it is in bindings/perl/Makefile. Additionally, please generate and provide a second, manually generated Makefile: {{{ cd bindings/perl/ rm -f Makefile perl Makefile.PL INSTALLDIRS=site }}} -- Ticket URL: <https://trac.prelude-ids.org/ticket/288#comment:1> Prelude Hybrid IDS <http://www.prelude-ids.org> The Prelude Hybrid Intrusion Detection System suite _______________________________________________ Prelude-devel site list [email protected] http://lists.prelude-ids.org/mailman/listinfo/prelude-devel