Bug 126913 - security/nmap does not compile with OpenSSL not in base
Summary: security/nmap does not compile with OpenSSL not in base
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-28 12:40 UTC by Oliver Lehmann
Modified: 2008-09-07 23:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Lehmann freebsd_committer freebsd_triage 2008-08-28 12:40:01 UTC
	if there is no OpenSSL is installed in the base-system but in /usr/local
	which is a valid configuration (disable it during make world, install
	the port) then nmap compilation will fail because of not respecting the
	OPENSSLLIB / OPENSSLINC

cc -c  -O2 -fno-strict-aliasing -pipe -march=pentium3 -Wall  -I../../nbase  -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -I../include -I../../libpcap filespace.c -o filespace.o
In file included from nsock_internal.h:78,
                 from filespace.c:59:
nsock_ssl.h:69:25: openssl/ssl.h: No such file or directory
nsock_ssl.h:70:25: openssl/err.h: No such file or directory
nsock_ssl.h:71:26: openssl/rand.h: No such file or directory
In file included from nsock_internal.h:78,
                 from filespace.c:59:
nsock_ssl.h:83: error: syntax error before "SSL_CTX"
In file included from filespace.c:59:
nsock_internal.h:224: error: syntax error before "SSL"
nsock_internal.h:349: error: syntax error before "SSL_SESSION"
gmake[1]: *** [filespace.o] Error 1
gmake[1]: Leaving directory `/usr/obj/usr/ports/security/nmap/work/nmap-4.68/nsock/src'
gmake: *** [nsock_build] Error 2
*** Error code 2

Stop in /usr/ports/security/nmap.
Exit 1

Fix: 

do some magic nmap Makefile patching
How-To-Repeat: 	remove openssl from base
	install openssl as port
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-08-28 12:40:09 UTC
Maintainer of security/nmap,

Please note that PR ports/126913 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/126913

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2008-08-28 12:40:10 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Daniel Roethlisberger 2008-08-28 13:40:31 UTC
To help me do something about it, please provide:
. a valid e-mail address
. version of nmap / the nmap port
. which openssl port was used
. actual error message / logs
Thanks.

-- 
Daniel Roethlisberger
http://daniel.roe.ch/
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2008-09-07 23:33:30 UTC
State Changed
From-To: feedback->closed

was fixed by oliver few hours ago.