Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: Can I have a temporary OpenBSD shell account?
From: Vijay Sankar <vsankar () foretell ca>
Date: Tue, 16 Oct 2007 06:09:15 -0500

On October 15, 2007 11:18:21 pm David Fifield wrote:
Hi all,

Can someone give me an OpenBSD shell account for a little while? I want
to find out what's causing the OpenBSD compilation errors and fix it. My
intuition tells me that it won't take long to fix, maybe just a few
hours, so I don't want to go to the trouble of setting up OpenBSD
myself. I don't need root or anything, just a system with a working
compiler and header files.

Failing that, can an OpenBSD user just try out a hunch? Include nmap.h
at the top of portreasons.h:

Index: portreasons.h
===================================================================
--- portreasons.h       (revision 6010)
+++ portreasons.h       (working copy)
@@ -102,6 +102,8 @@
 #ifndef REASON_H
 #define REASON_H

+#include "nmap.h"
+
 #ifdef WIN32
 #include "winsock2.h"
 #else

David Fifield

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

!DSPAM:1,47143b9428461234514069!

Thank you so much for looking into this. I added "nmap.h" and you were 
absolutely right. I am able to compile  and install nmap 4.22SOC7 on OpenBSD 
4.1. Please send me an SSH public key and I can add an account on a machine 
here, if you still need an account. 

I used 

./configure --with-libpcap=/usr --with-openssl=/usr --with-libpcre=/usr/local --
with-libdnet=/usr/local --prefix=/usr/local --sysconfdir=/etc --mandir=/usr/loca
l/man --infodir=/usr/local/info

I still get the following warning during configure:

checking for arpa/inet.h... yes
checking for sys/stat.h... (cached) yes
checking net/if.h usability... no
checking net/if.h presence... yes
configure: WARNING: net/if.h: present but cannot be compiled
configure: WARNING: net/if.h:     check for missing prerequisite headers?
configure: WARNING: net/if.h: see the Autoconf documentation
configure: WARNING: net/if.h:     section "Present But Cannot Be Compiled"
configure: WARNING: net/if.h: proceeding with the preprocessor's result
configure: WARNING: net/if.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for net/if.h... yes
checking netdb.h usability... yes

However, nmap works well on OpenBSD 4.1 GENERIC#1435 i386. I will try it on 
4.2 GENERIC as well as -current and report back later in the evening today.

The following did not work

./configure --with-libpcap=/usr --with-openssl=/usr --with-libpcre=included --
with-libdnet=/usr/local --prefix=/usr/local --sysconfdir=/etc --mandir=/usr/loca
l/man --infodir=/usr/local/info

Got the following error message if I use --with-libpcre=included.

vijay$ gmake
Compiling liblua
gmake[1]: Entering directory `/home/vsankar/Downloads/nmap-4.22SOC7/liblua'
gmake[1]: `liblua.a' is up to date.
gmake[1]: Leaving directory `/home/vsankar/Downloads/nmap-4.22SOC7/liblua'
Compiling libpcap
gmake[1]: Entering directory `/home/vsankar/Downloads/nmap-4.22SOC7/libpcap'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/home/vsankar/Downloads/nmap-4.22SOC7/libpcap'
Compiling libpcre
gmake[1]: Entering directory `/home/vsankar/Downloads/nmap-4.22SOC7/libpcre'
gmake  all-am
gmake[2]: Entering directory `/home/vsankar/Downloads/nmap-4.22SOC7/libpcre'
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_compile.o -MD -MP -MF .deps/pcre_compile.Tpo -c -o pcre_compile.o 
pcre_compile.c
mv -f .deps/pcre_compile.Tpo .deps/pcre_compile.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_config.o -MD -MP -MF .deps/pcre_config.Tpo -c -o pcre_config.o 
pcre_config.c
mv -f .deps/pcre_config.Tpo .deps/pcre_config.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_dfa_exec.o -MD -MP -MF .deps/pcre_dfa_exec.Tpo -c -o pcre_dfa_exec.o 
pcre_dfa_exec.c
mv -f .deps/pcre_dfa_exec.Tpo .deps/pcre_dfa_exec.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_exec.o -MD -MP -MF .deps/pcre_exec.Tpo -c -o pcre_exec.o pcre_exec.c
mv -f .deps/pcre_exec.Tpo .deps/pcre_exec.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_fullinfo.o -MD -MP -MF .deps/pcre_fullinfo.Tpo -c -o pcre_fullinfo.o 
pcre_fullinfo.c
mv -f .deps/pcre_fullinfo.Tpo .deps/pcre_fullinfo.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_get.o -MD -MP -MF .deps/pcre_get.Tpo -c -o pcre_get.o pcre_get.c
mv -f .deps/pcre_get.Tpo .deps/pcre_get.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_globals.o -MD -MP -MF .deps/pcre_globals.Tpo -c -o pcre_globals.o 
pcre_globals.c
mv -f .deps/pcre_globals.Tpo .deps/pcre_globals.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_info.o -MD -MP -MF .deps/pcre_info.Tpo -c -o pcre_info.o pcre_info.c
mv -f .deps/pcre_info.Tpo .deps/pcre_info.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_maketables.o -MD -MP -MF .deps/pcre_maketables.Tpo -c -o 
pcre_maketables.o pcre_maketables.c
mv -f .deps/pcre_maketables.Tpo .deps/pcre_maketables.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_newline.o -MD -MP -MF .deps/pcre_newline.Tpo -c -o pcre_newline.o 
pcre_newline.c
mv -f .deps/pcre_newline.Tpo .deps/pcre_newline.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_ord2utf8.o -MD -MP -MF .deps/pcre_ord2utf8.Tpo -c -o pcre_ord2utf8.o 
pcre_ord2utf8.c
mv -f .deps/pcre_ord2utf8.Tpo .deps/pcre_ord2utf8.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_refcount.o -MD -MP -MF .deps/pcre_refcount.Tpo -c -o pcre_refcount.o 
pcre_refcount.c
mv -f .deps/pcre_refcount.Tpo .deps/pcre_refcount.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_study.o -MD -MP -MF .deps/pcre_study.Tpo -c -o pcre_study.o pcre_study.c
mv -f .deps/pcre_study.Tpo .deps/pcre_study.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_tables.o -MD -MP -MF .deps/pcre_tables.Tpo -c -o pcre_tables.o 
pcre_tables.c
mv -f .deps/pcre_tables.Tpo .deps/pcre_tables.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_try_flipped.o -MD -MP -MF .deps/pcre_try_flipped.Tpo -c -o 
pcre_try_flipped.o pcre_try_flipped.c
mv -f .deps/pcre_try_flipped.Tpo .deps/pcre_try_flipped.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_ucp_searchfuncs.o -MD -MP -MF .deps/pcre_ucp_searchfuncs.Tpo -c -o 
pcre_ucp_searchfuncs.o pcre_ucp_searchfuncs.c
mv -f .deps/pcre_ucp_searchfuncs.Tpo .deps/pcre_ucp_searchfuncs.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_valid_utf8.o -MD -MP -MF .deps/pcre_valid_utf8.Tpo -c -o 
pcre_valid_utf8.o pcre_valid_utf8.c
mv -f .deps/pcre_valid_utf8.Tpo .deps/pcre_valid_utf8.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_version.o -MD -MP -MF .deps/pcre_version.Tpo -c -o pcre_version.o 
pcre_version.c
mv -f .deps/pcre_version.Tpo .deps/pcre_version.Po
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_xclass.o -MD -MP -MF .deps/pcre_xclass.Tpo -c -o pcre_xclass.o 
pcre_xclass.c
mv -f .deps/pcre_xclass.Tpo .deps/pcre_xclass.Po
rm -f pcre_chartables.c
cp -p ./pcre_chartables.c.dist pcre_chartables.c
gcc -DHAVE_CONFIG_H -I.     -O2 -MT 
pcre_chartables.o -MD -MP -MF .deps/pcre_chartables.Tpo -c -o 
pcre_chartables.o pcre_chartables.c
mv -f .deps/pcre_chartables.Tpo .deps/pcre_chartables.Po
rm -f libpcre.a
ar cru libpcre.a pcre_compile.o pcre_config.o pcre_dfa_exec.o pcre_exec.o 
pcre_fullinfo.o pcre_get.o pcre_globals.o pcre_info.o pcre_maketables.o 
pcre_newline.o pcre_ord2utf8.o pcre_refcount.o pcre_study.o pcre_tables.o 
pcre_try_flipped.o pcre_ucp_searchfuncs.o pcre_valid_utf8.o pcre_version.o 
pcre_xclass.o pcre_chartables.o
ranlib libpcre.a
gmake[2]: Leaving directory `/home/vsankar/Downloads/nmap-4.22SOC7/libpcre'
gmake[1]: Leaving directory `/home/vsankar/Downloads/nmap-4.22SOC7/libpcre'
Compiling libnbase
cd nbase && gmake
gmake[1]: Entering directory `/home/vsankar/Downloads/nmap-4.22SOC7/nbase'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/home/vsankar/Downloads/nmap-4.22SOC7/nbase'
Compiling libnsock
cd nsock/src && gmake
gmake[1]: Entering directory `/home/vsankar/Downloads/nmap-4.22SOC7/nsock/src'
cd ../../nbase && gmake
gmake[2]: Entering directory `/home/vsankar/Downloads/nmap-4.22SOC7/nbase'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/home/vsankar/Downloads/nmap-4.22SOC7/nbase'
gmake[1]: Leaving directory `/home/vsankar/Downloads/nmap-4.22SOC7/nsock/src'
Compiling nse-standard-library
gmake[1]: Entering directory `/home/vsankar/Downloads/nmap-4.22SOC7/nselib'
./libtool --tag=CC --silent --mode=compile 
gcc -I../libpcre -I../liblua/ -Iliblua -I/usr/local/include -Ilibpcre -g -O2 -Wall  -fno-strict-aliasing -I/usr/include 
-I/usr/include -Inbase -Insock/include   -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\"; 
-DNMAP_PLATFORM=\"i386-unknown-openbsd4.1\" -DNMAPDATADIR=\"/usr/local/share/nmap\" 
-DNMAPLIBEXECDIR=\"/usr/local/libexec/nmap\" -c 
pcre.c
./libtool --tag=CC --silent --mode=link 
gcc -L../libpcre -lpcre -avoid-version -module -rpath /usr/local/lib -o 
pcre.la pcre.lo

*** Warning: linker path does not have real file for library -lpcre.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libpcre and none of the candidates passed a file format test
*** using a regex pattern. Last file 
checked: /home/vsankar/Downloads/nmap-4.22SOC7/libpcre/libpcre.vcproj

*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module pcre.  Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
mv .libs/pcre.so pcre.so
mv: .libs/pcre.so: No such file or directory
gmake[1]: *** [pcre.so] Error 1
gmake[1]: Leaving directory `/home/vsankar/Downloads/nmap-4.22SOC7/nselib'
gmake: *** [nsestdlib] Error 2

Thanks again,

Vijay

-- 
Vijay Sankar, M.Eng., P.Eng.
President & CEO
ForeTell Technologies Limited
59 Flamingo Avenue, Winnipeg, MB Canada R3J 0X6
Phone: +1 204 885 9535, E-Mail: vsankar () foretell ca

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault