Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Nov 2001 11:25:43 +0100 (CET)
From:      Udo Schweigert <udo.schweigert@siemens.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        olgeni@freebsd.org
Subject:   ports/31977: problem with nasl in security/nessus-libnasl
Message-ID:  <200111141025.fAEAPhoj002635@reims.mchp.siemens.de>

next in thread | raw e-mail | index | archive | help

>Number:         31977
>Category:       ports
>Synopsis:       problem with nasl in security/nessus-libnasl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 14 02:30:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Udo Schweigert
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD alaska.cert.siemens.de 4.4-STABLE FreeBSD 4.4-STABLE #20: Mon Nov 12 10:10:02 CET 2001 ust@alaska.cert.siemens.de:/usr/obj/work/src/RELENG_4/sys/alaska i386


>Description:

When building port security/nessus-libnasl the "nasl" program is linked with
settings determined by the previously installed nessus-config program, 
which is part of the security/nessus-libraries port. This links in the -lc
too late, which then will call the wrong getopt function. Through this
nasl will not take any arguments.

The attached patch to the security/nessus-libraries port fixes this.
>How-To-Repeat:

# nasl -v
nasl: open() : No such file or directory
nasl: open() : No such file or directory

After the fix it gives:

# nasl -v
nasl 1.0.9

Copyright (C) 1999, 2000 Renaud Deraison <deraison@cvs.nessus.org>
See the license for details


>Fix:

diff -ruN nessus-libraries.orig/files/patch-aa nessus-libraries/files/patch-aa
--- nessus-libraries.orig/files/patch-aa	Thu Jan  1 01:00:00 1970
+++ nessus-libraries/files/patch-aa	Wed Nov 14 12:02:54 2001
@@ -0,0 +1,11 @@
+--- nessus-config.pre.in.orig	Fri Nov 17 20:46:14 2000
++++ nessus-config.pre.in	Wed Nov 14 12:01:46 2001
+@@ -45,7 +45,7 @@
+ 		;;
+ 	--libs)
+ 	
+-		echo $Xn "-L$LIBDIR -lnessus -lhosts_gatherer @pcap_flag@ $CIPHER $EXTRA $Xc"
++		echo $Xn "-lc -L$LIBDIR -lnessus -lhosts_gatherer @pcap_flag@ $CIPHER $EXTRA $Xc"
+ 		;;
+ 	--cflags)
+ 		echo $Xn "-I$INCLUDEDIR $DEFS -I$INCLUDEDIR/nessus $CIPHER_CFLAGS $Xc"

	
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111141025.fAEAPhoj002635>