Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2119 - Nessus 1.2.0 fails to compile (libnasl)
Summary: Nessus 1.2.0 fails to compile (libnasl)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-26 02:44 UTC by Carl-Christian Salvesen
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carl-Christian Salvesen 2002-04-26 02:44:22 UTC
make[1]: Entering directory `/var/tmp/portage/nessus-1.2.0/work/libnasl/nasl'
/bin/sh /var/tmp/portage/nessus-1.2.0/work/libnasl/libtool --silent gcc -pipe 
`sh ./cflags` -c -DVERSION=\"1.2.0\" init.c
init.c: In function `init_const':
init.c:457: `ACT_MIXED_ATTACK' undeclared (first use in this function)
init.c:457: (Each undeclared identifier is reported only once
init.c:457: for each function it appears in.)
init.c:460: `ACT_DESTRUCTIVE_ATTACK' undeclared (first use in this function)
init.c:469: `ACT_SETTINGS' undeclared (first use in this function)
init.c:477: `NESSUS_ENCAPS_SSLv2' undeclared (first use in this function)
init.c:481: `NESSUS_ENCAPS_SSLv3' undeclared (first use in this function)
init.c:485: `NESSUS_ENCAPS_SSLv23' undeclared (first use in this function)
init.c:489: `NESSUS_ENCAPS_TLSv1' undeclared (first use in this function)
init.c:493: `NESSUS_ENCAPS_IP' undeclared (first use in this function)
make[1]: *** [init.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/nessus-1.2.0/work/libnasl/nasl'
make: *** [all] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 36, Exitcode 2
!!! (no error message)

!!! emerge aborting on  /usr/portage/net-analyzer/nessus/nessus-1.2.0.ebuild .
(09:38:52)
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-26 02:58:59 UTC
what is your USE= string in /etc/make.conf?
Comment 2 Carl-Christian Salvesen 2002-04-26 03:03:07 UTC
http://struct.homeip.net/gentoo/make.conf

yeah yeah yeah, i know. Bloated as #
Comment 3 Carl-Christian Salvesen 2002-04-26 03:03:07 UTC
http://struct.homeip.net/gentoo/make.conf

yeah yeah yeah, i know. Bloated as #ยค!"#5 :)
Comment 4 Daniel Robbins (RETIRED) gentoo-dev 2002-04-29 02:09:00 UTC
seemant: remember to add people to the cc: if they aren't there already.  emails
aren't auto-cc'd to the reporter.  I"ll see if I can change this in a global
bugzilla setting.
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2002-05-01 06:17:55 UTC
PLease try to emerge openssl and then emerge this again...
Comment 6 Carl-Christian Salvesen 2002-05-01 11:59:28 UTC
It was already installed. I remerged it and tried to emerge nessus-1.2.0 again.
Same problem.
Comment 7 Tod M. Neidt (RETIRED) gentoo-dev 2002-05-01 21:04:48 UTC
Hi!

Ok, this appears to be a dependency problem.  I just merged this package fine.

A 'ldd /usr/lib/libnasl.so'  reveals that it depends on /usr/lib/libssl.so which
is provided by the dev-libs/openssl package.

Carl, could you please emerge dev-libs/openssl then try and remerge
net-analyzer/nessus-1.2.0

If this solves the problem, please report back here, and then I will update the
dependencies for nessus to include openssl

Thanks
Comment 8 Carl-Christian Salvesen 2002-05-02 00:42:08 UTC
(root@calle:~) ls -l /usr/lib/libssl.*
-rw-r--r--    1 root     root       256270 May  1 18:50 /usr/lib/libssl.a
lrwxrwxrwx    1 root     root           11 May  1 18:50 /usr/lib/libssl.so ->
libssl.so.0
lrwxrwxrwx    1 root     root           15 May  1 18:50 /usr/lib/libssl.so.0 ->
libssl.so.0.9.6
-r-xr-xr-x    1 root     root       182380 May  1 18:50 /usr/lib/libssl.so.0.9.6

(root@calle:~) emerge nessus
-snip-
make[1]: Entering directory `/var/tmp/portage/nessus-1.2.0/work/libnasl/nasl'
/bin/sh /var/tmp/portage/nessus-1.2.0/work/libnasl/libtool --silent gcc -pipe 
`sh ./cflags` -c -DVERSION=\"1.2.0\" init.c
init.c: In function `init_const':
init.c:457: `ACT_MIXED_ATTACK' undeclared (first use in this function)
init.c:457: (Each undeclared identifier is reported only once
init.c:457: for each function it appears in.)
init.c:460: `ACT_DESTRUCTIVE_ATTACK' undeclared (first use in this function)
init.c:469: `ACT_SETTINGS' undeclared (first use in this function)
init.c:477: `NESSUS_ENCAPS_SSLv2' undeclared (first use in this function)
init.c:481: `NESSUS_ENCAPS_SSLv3' undeclared (first use in this function)
init.c:485: `NESSUS_ENCAPS_SSLv23' undeclared (first use in this function)
init.c:489: `NESSUS_ENCAPS_TLSv1' undeclared (first use in this function)
init.c:493: `NESSUS_ENCAPS_IP' undeclared (first use in this function)
make[1]: *** [init.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/nessus-1.2.0/work/libnasl/nasl'
make: *** [all] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 36, Exitcode 2
!!! (no error message)

!!! emerge aborting on  /usr/portage/net-analyzer/nessus/nessus-1.2.0.ebuild .
Comment 9 Tod M. Neidt (RETIRED) gentoo-dev 2002-05-02 22:20:50 UTC
ok

here are the dependencies when I ldd libnasl and nessus.  I'll try and slowly
work through them.  could you please check and see if you have them on your system?

******'ldd nessus'**************
	/lib/libsandbox.so => /lib/libsandbox.so (0x40018000)
	libc.so.6 => /lib/libc.so.6 (0x40030000)
	libnessus.so.1 => /usr/lib/libnessus.so.1 (0x40160000)
	libhosts_gatherer.so.1 => /usr/lib/libhosts_gatherer.so.1 (0x40182000)
	libpcap-nessus.so.1 => /usr/lib/libpcap-nessus.so.1 (0x40187000)
	libutil.so.1 => /lib/libutil.so.1 (0x4019c000)
	libnsl.so.1 => /lib/libnsl.so.1 (0x4019f000)
	libresolv.so.2 => /lib/libresolv.so.2 (0x401b5000)
	libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x401c7000)
	libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x401f5000)
	libdl.so.2 => /lib/libdl.so.2 (0x402b7000)
	libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x402ba000)
	libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x403b7000)
	libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x403e9000)
	libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x403ec000)
	libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40413000)
	libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4041b000)
	libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4042a000)
	libm.so.6 => /lib/libm.so.6 (0x404f2000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
************end nessus*****************8

and

*************ldd libnasl************************
	/lib/libsandbox.so => /lib/libsandbox.so (0x4001e000)
	libc.so.6 => /lib/libc.so.6 (0x40036000)
	libnessus.so.1 => /usr/lib/libnessus.so.1 (0x40166000)
	libhosts_gatherer.so.1 => /usr/lib/libhosts_gatherer.so.1 (0x40188000)
	libpcap-nessus.so.1 => /usr/lib/libpcap-nessus.so.1 (0x4018d000)
	libutil.so.1 => /lib/libutil.so.1 (0x401a2000)
	libnsl.so.1 => /lib/libnsl.so.1 (0x401a5000)
	libresolv.so.2 => /lib/libresolv.so.2 (0x401bb000)
	libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x401cd000)
	libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x401fb000)
	libdl.so.2 => /lib/libdl.so.2 (0x402bd000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
Comment 10 Carl-Christian Salvesen 2002-05-03 01:03:14 UTC
I unmerged 1.0.x and emerged 1.2.0. 

Works for me. 

In the ebuild, change make || die to make || die "Failed, unmerge previous
versions and try again" ? 
Comment 11 Patrick Naubert 2002-05-09 07:34:07 UTC
Confirmed.  I also got the problem, so I unmerged 1.0 version and was then able 
to emerge nessus 1.2

Thanks!
Comment 12 Nicholas Jones (RETIRED) gentoo-dev 2002-07-17 05:42:31 UTC
Ok... Added a note to the ebuild. That's about the extent of what
we can do at the moment.