Visualizzazione post con etichetta apple. Mostra tutti i post
Visualizzazione post con etichetta apple. Mostra tutti i post

lunedì 14 maggio 2007

Compilare OpenSSL su Darwin 8 / Mac OS X 10.4 Tiger

OpenSSL é una libreria molto importante in un sistema operativo, infatti permette connessioni cifrate (e quindi protette) tra due computer, ad esempio viene usata dai browser ogni volta che si usa il protocollo https.
Per installare una nuova versione su Darwin 8 (o Mac OS X Tiger) si deve prima scaricare i sorgenti arrivatoi ad oggi alla versione 0.9.8e.
Lavorando come sempre da terminale scrivere:
./configure --prefix=/usr --openssldir=${prefix}/etc/openssl threads no-shared zlib no-asm no-krb5 darwin-ppc-cc

poi aprire makefile e fae le seguenti correzioni
CFLAGS -mcpu=7400 -mtune=7400 -fstrict-aliasing -fsched-interblock -freorder-blocks -fmodulo-sched -funroll-loops -floop-optimize2 -fpeel-loops -faltivec -ftree-vectorize

come al solito in caso non siate sicuri che il vostro G4 sia un 7400 scrivete G4, oppure G5 nel caso abbiate questo processore.
continuate sostituendo
CC= /usr/bin/gcc-4.0

e
MANDIR=/usr/share/man

dopodiché date il comando make e successivamente sudo make install.

Per problemi, suggerimenti ed altro usate i commenti.

sabato 28 aprile 2007

Compilare SQLite su Mac OS X 10.4 (Tiger)

SQLite, come suggerisce il nome stesso, è un database SQL (Structued Query Language) leggero, ma molto efficace.
Apple lo usa nel suo sistema operativo sia per gestire l' indice di spotlight, la sua teconologia di ricrca dei contenuti su disco, che come fondamento del framework coredata.
Se siete interessati ad aggiornare la versione a corredo o semplicemente volete effettuare una ottimizzazione più aggressiva. scaricate l' ultima versione disponibile dal sito (ad oggi la 3.3.17), scompattatela ed aprie il terminale potandovi all' interno della directory.
Quindi scrivete
./configure --prefix=/usr --mandir=/usr/share/man --build=powerpc-apple-darwin8.9.0 --host=powerpc-apple-darwin8.9.0 --target=powerpc-apple-darwin8.9.0 --enable-shared --enable-threadsafe --enable-cross-thread-connections --enable-threads-override-locks --enable-releasemode --enable-tempstore always --with-tcl=/System/Library/Frameworks/Tcl.framework --with-tclinclude=/System/Library/Frameworks/Tcl.framework/headers CFLAGS="-O3 -mcpu=7400 -mtune=7400 -fstrict-aliasing -fsched-interblock -freorder-blocks -funroll-loops -floop-optimize2 -fpeel-loops -fmodulo-sched -fno-branch-count-reg -faltivec -ftree-vectorize" FFLAGS="-O5 -mcpu=7400 -mtune=7400 -funroll-loops" LDFLAGS =" -arch ppc -L/usr/local/lib -L/usr/lib -L/System/Library/Frameworks/Tcl.framework/headers -mmacosxmin=10.4"

e date invio.
Nota: -mcpu e -mtune sono seguite dl valore 7400 nel mi esempio, perché si riferiscono ai miei G4, quelli fino a 500MHz, se non avete questo sostituiltelo con G4 o G5 a seconda del vostro tipo di mac, invece se avete un G3 oltre a cambiare adeguatamente il valore di -mcpu ed mtune dovete cancellare anche -faltivec -ftree-vectorize.
quindi scrivete make seguito da invio, poi make test per verificare che sia tutto a posto ed infine sudo make install, seguito dalla vostra password di amministratore.
una volta finito, riavviate la macchia ed è fatta.

Per critiche, suggerimenti e quant'atro, usate i commenti: sono aperti a tutti.

P.S.: per far sì che spotlight crei un nuovo indice è necessario cancellare il vecchio indice col seguente comando da terminale
sudo mdutil -E /

martedì 6 marzo 2007

Ricompilare zlib su Darwin 8 (Mac OS X10.4 Tiger) con l' uso di Altivec

Grazie a Konstantinos Margaritis, uno sviluppatore greco di Debian, è possibile iniziare a utilizzare le estensioni Altivec su G4 e G5 per velocizzare l' algoritmo Adler 32 della Zlib, la libreria di sistema dedicata a comprimere e decomprimere i file Zip, usata da molte altre librerie di sistema; il vantaggio in termni di prestazioni per questo algoritmo é misurabile fino a due volte e mezzo la velocità normale.
Prima di tutto è necessario che abbiate installato sul vostro mac, quindi scaricate l' ultima versione disponibile della Zlib.
Poi, scompattato il file con stuffit, e aprite (basta un doppio click) il file adler32.c.
sostituite il contenuto con questo:
/* adler32.c -- compute the Adler-32 checksum of a data stream
* Copyright (C) 1995-2003 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/

/* @(#) $Id$ */

#define ZLIB_INTERNAL
#include "zlib.h"

#define BASE 65521UL /* largest prime smaller than 65536 */
#define NMAX 5552
#define NMAX_VEC 3854
/* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */ /* NMAX_VEC is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^31-1 */ #define DO1(buf,i) {s1 += buf[i]; s2 += s1;} #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4); #define DO16(buf) DO8(buf,0); DO8(buf,8); #ifdef NO_DIVIDE # define MOD(a) \ do { \ if (a >= (BASE <<>= (BASE <<>= (BASE <<>= (BASE <<>= (BASE <<>= (BASE <<>= (BASE <<>= (BASE <<>= (BASE <<>= (BASE <<>= (BASE <<>= (BASE <<>= (BASE <<>= (BASE <<>= (BASE <<>= (BASE <<>= BASE) a -= BASE; \
} while (0)
#else
# define MOD(a) a %= BASE
#endif


#define S1 s1[3]
#define S2 s2[3]

/* ========================================================================= */
//#ifndef HAS_ALTIVEC_H
uLong ZEXPORT adler32(adler, buf, len)
/* uLong adler;
const Bytef *buf;
uInt len;
{
unsigned long s1 = adler & 0xffff;
unsigned long s2 = (adler >> 16) & 0xffff;
int k;

if (buf == Z_NULL) return 1L;

while (len > 0) {
k = len <>= 16) {
DO16(buf);
buf += 16;
k -= 16;
}
if (k != 0) do {
s1 += *buf++;
s2 += s1;
} while (--k);
MOD(s1);
MOD(s2);
}
return (s2 <<>

#define S1 s1[3]
#define S2 s2[3]

uLong ZEXPORT adler32_vec(adler, buf, len)*/
uLong adler;
const Bytef *buf;
uInt len;
{
unsigned long __attribute__ ((aligned(16))) s1[4], s2[4];
S1 = adler & 0xffff;
S2 = (adler >> 16) & 0xffff;
int k, i, offset;

if (buf == Z_NULL) return 1L;

// Handle small sizes
if (len <>= 16) {
vector unsigned int v0 = vec_splat_u32(0);
vector signed int vs1, vs2, vsum1, vsum2, vs1_0;
vector unsigned char vbuf, v1 = vec_splat_u8(1), v2 = { 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 },
vsh = vec_splat_u8(4);

// Align to 16-byte boundaries
offset = (unsigned long)(buf) % 16;
if (offset) {
offset = 16 -offset;
len -= offset;
while (offset--) {
S1 += *buf++;
S2 += S1;
}
}

while (len >= 16) {
vs1 = vec_lde(12, (signed int *)&s1);
vs2 = vec_lde(12, (signed int *)&s2);
vs1_0 = vs1;

k = len <>= 16) {
vbuf = (vector unsigned char)vec_ld(0, (unsigned char *)buf);
vsum1 = (vector signed int)vec_msum(vbuf, v1, v0);
vs1 = vec_sums(vsum1, vs1);
vsum2 = (vector signed int)vec_msum(vbuf, v2, v0);
vs2 = vec_sums(vsum2, vs2);
buf += 16;
k -= 16;
vs1_0 = vec_sll(vs1_0, vsh);
vs2 = vec_add(vs2, vs1_0);
vs1_0 = vs1;
}
vec_ste(vs1, 12, &s1);
vec_ste(vs2, 12, &s2);
MOD(S1);
MOD(S2);
}
}

while (len--) {
S1 += *buf++;
S2 += S1;
}
MOD(S1);
MOD(S2);

return (S2 <<>
//#endif


quindi salvate il file. poi aprite il terminale (lo trovate in /Applicazioni/Utility) e scrivete:
cd

date uno spazio e trascinate sulla finestra del terminale la cartella della zlib in modo che compaia il percorso unix (se sapete come fare, potete scriverlo a mano). Date invio e poi scrivete:
./configure --shared --prefix=/usr --mandir=/usr/share/man
e di nuovo invio. poi aprite il file Makefile con Textedit e localizzate la riga che inizia con CFLAGS (usate la funzione cerca) e sostituitela con
CFLAGS= -O3 -mcpu=G4 -mtune=G4 -fstrict-aliasing -fsched-interblock -freorder-blocks -fno-branch-count-reg -faltivec -ftree-vectorize -floop-optimize2 -funroll-loops -fmodulo-sched -fpeel-loops -fno-common

ovviamente se avete un G4, altrimenti dovete mettere G5...
Una piccola nota: sostituendo il valore preimpostato -O2 (usato anche da apple) con -O3 aumenteranno la prestazioni dell' algoritmo crc32.c fino al doppio su un G4. Salvate questi cambiamenti sul terminale scrivete make e date invio. al termine scrivete sudo make install a date invio, vi verrà chiesta la password, scrivetela senza spaventarvi se non apparirà niente sul monitor, è normale. Premete invio un' ultima volta ed avete finito!

Per domande e consigli usate i commenti.

nota: per problemi di formattazione ho ripubblicato questo messaggio...

venerdì 23 febbraio 2007

Rendere il certificato di Google ben accetto su Mac OS X 10.4 Tiger

Una cosa che ho sempre apprezzato dei servizi di Google é l' uso costante del protocollo https e ssl.
Una cosa che non mi è mai andata giù è vedere Safari avvisarmi, ogni volta che accedo a blogger o a Gmail, che il certificato di Google ha qualcosa che non va e nonostante io gli dica di fidarsi.
In realtà il certificato è in regola, ma il sistema operativo non lo sa, perché chi ha emesso il certificato non è nella lista delle autorità riconosciute; quindi è necessaria una piccola operazione.
1) Aprite Accesso Portachiavi che trovate in /Applicazioni/Utility
2) Fate click sul titolo "Accesso Portachiavi" nella barra menu.
3) Fate click su Assistente certificato, partirà l' assistente.
4) Alla prima schermata fate click su continua,
5) poi selezionate l' opzione "visualizza e valuta certificati" che é l' ultima e di nuovo click su continua.
6) In questa schermata selezionate la seconda opzione "SSL Secure Sockets Layer"
7) nel rettangolo sottostante scrivete www.google.com
8) e selezionate anche l' opzione soprastanta "richiedi certificati all' host"
9) Ancora una volta click su continua.
10) E' necessario aspettare un po' (a seconda della connessione) e all' ultima schermata premete Fine.
11) Tornate alla schermata di "Accesso Portachiavi", selezionate "certificati" (non i miei certificati) dalla colonna di sinistra e nel riquadro a destra selezionate il certificato di google.
12) Fate "mela i" e scorrete fino in fondo la nuova finestra che si aprirà.
13) Fate click su "impostazioni fiducia"
14) scegliete "fidati sempre" come opzione per "quando si usa questo certificato", noterete che cambieranno con lo stesso valore anche le altre opzioni.

questo metodo dovrebbe valere per tutti i casi simili come per Sun o PGP.

giovedì 25 maggio 2006

compilare nmap su darwin 8 (mac os x 10.4): utopia?

qualcuno c' è riuscito?

a me non funziona neppure ./configure...

guardare per credere:



checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for g++... AVAILABLE
checking whether the compiler is gcc 4 or greater... yes
checking for inline... inline
checking build system type... powerpc-apple-darwin8.6.0
checking host system type... powerpc-apple-darwin8.6.0
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for strings.h... (cached) yes
checking for memory.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/stat.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking for unistd.h... (cached) yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for net/if.h... yes
checking for netinet/if_ether.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for library containing gethostent... none required
checking for library containing setsockopt... none required
checking for library containing nanosleep... none required
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking openssl/rand.h usability... yes
checking openssl/rand.h presence... yes
checking for openssl/rand.h... yes
checking for BIO_int_ctrl in -lcrypto... yes
checking for SSL_new in -lssl... yes
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for pcap_datalink in -lpcap... yes
checking if libpcap version is recent enough... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking for pcre_version in -lpcre... yes
checking struct ip... yes
checking ip_v in struct ip... yes
checking if sockaddr{} has sa_len member... yes
checking whether byte ordering is bigendian... yes
checking if struct in_addr is a wacky huge structure (some Sun boxes)... no
checking if struct icmp exists... yes
checking if struct ip exists... yes
checking if struct ip has ip_sum member... yes
checking for bzero... yes
checking for memcpy... yes
checking for nanosleep... yes
checking for strerror... yes
checking for strcasestr... yes
checking for inet_aton... yes
checking for getopt_long_only... yes
checking for usleep... yes
checking for type of 6th argument to recvfrom()... socklen_t
checking for pkg-config... no
checking If you have GTK+ installed... no
configure: WARNING: Gtk+ has not been installed -> nmapfe will not be made
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
configure: configuring in libdnet-stripped
configure: running /bin/sh './configure' --prefix=/usr/local --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... powerpc-apple-darwin8.6.0
checking host system type... powerpc-apple-darwin8.6.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 65536
checking command to parse /usr/bin/nm -p output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin8.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin8.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "F77" to libtool
checking for Python... checking for gethostbyname... yes
checking for socket... yes
checking for putmsg in -lstr... no
checking for open_mib in -lnm... no
checking for Check... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking sys/bufmod.h usability... no
checking sys/bufmod.h presence... no
checking for sys/bufmod.h... no
checking sys/dlpi.h usability... no
checking sys/dlpi.h presence... no
checking for sys/dlpi.h... no
checking sys/dlpihdr.h usability... no
checking sys/dlpihdr.h presence... no
checking for sys/dlpihdr.h... no
checking sys/dlpi_ext.h usability... no
checking sys/dlpi_ext.h presence... no
checking for sys/dlpi_ext.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mib.h usability... no
checking sys/mib.h presence... no
checking for sys/mib.h... no
checking sys/ndd_var.h usability... no
checking sys/ndd_var.h presence... no
checking for sys/ndd_var.h... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking net/bpf.h usability... yes
checking net/bpf.h presence... yes
checking for net/bpf.h... 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 net/if_var.h usability... yes
checking net/if_var.h presence... yes
checking for net/if_var.h... yes
checking net/if_arp.h usability... yes
checking net/if_arp.h presence... yes
checking for net/if_arp.h... yes
checking net/if_dl.h usability... yes
checking net/if_dl.h presence... yes
checking for net/if_dl.h... yes
checking net/pfilt.h usability... no
checking net/pfilt.h presence... no
checking for net/pfilt.h... no
checking net/pfvar.h usability... no
checking net/pfvar.h presence... no
checking for net/pfvar.h... no
checking net/radix.h usability... no
checking net/radix.h presence... no
checking for net/radix.h... no
checking net/raw.h usability... no
checking net/raw.h presence... no
checking for net/raw.h... no
checking net/route.h usability... yes
checking net/route.h presence... yes
checking for net/route.h... yes
checking netinet/in_var.h usability... no
checking netinet/in_var.h presence... yes
configure: WARNING: netinet/in_var.h: present but cannot be compiled
configure: WARNING: netinet/in_var.h: check for missing prerequisite headers?
configure: WARNING: netinet/in_var.h: see the Autoconf documentation
configure: WARNING: netinet/in_var.h: section "Present But Cannot Be Compiled"
configure: WARNING: netinet/in_var.h: proceeding with the preprocessor's result
configure: WARNING: netinet/in_var.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 netinet/in_var.h... yes
checking net/if_tun.h usability... no
checking net/if_tun.h presence... no
checking for net/if_tun.h... no
checking linux/if_tun.h usability... no
checking linux/if_tun.h presence... no
checking for linux/if_tun.h... no
checking netinet/ip_fw.h usability... no
checking netinet/ip_fw.h presence... yes
configure: WARNING: netinet/ip_fw.h: present but cannot be compiled
configure: WARNING: netinet/ip_fw.h: check for missing prerequisite headers?
configure: WARNING: netinet/ip_fw.h: see the Autoconf documentation
configure: WARNING: netinet/ip_fw.h: section "Present But Cannot Be Compiled"
configure: WARNING: netinet/ip_fw.h: proceeding with the preprocessor's result
configure: WARNING: netinet/ip_fw.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 netinet/ip_fw.h... yes
checking linux/ip_fw.h usability... no
checking linux/ip_fw.h presence... no
checking for linux/ip_fw.h... no
checking linux/ip_fwchains.h usability... no
checking linux/ip_fwchains.h presence... no
checking for linux/ip_fwchains.h... no
checking linux/netfilter_ipv4/ipchains_core.h usability... no
checking linux/netfilter_ipv4/ipchains_core.h presence... no
checking for linux/netfilter_ipv4/ipchains_core.h... no
checking ip_fil_compat.h usability... no
checking ip_fil_compat.h presence... no
checking for ip_fil_compat.h... no
checking netinet/ip_fil_compat.h usability... no
checking netinet/ip_fil_compat.h presence... no
checking for netinet/ip_fil_compat.h... no
checking ip_compat.h usability... no
checking ip_compat.h presence... no
checking for ip_compat.h... no
checking netinet/ip_compat.h usability... no
checking netinet/ip_compat.h presence... no
checking for netinet/ip_compat.h... no
checking ip_fil.h usability... no
checking ip_fil.h presence... no
checking for ip_fil.h... no
checking netinet/ip_fil.h usability... no
checking netinet/ip_fil.h presence... no
checking for netinet/ip_fil.h... no
checking hpsecurity.h usability... no
checking hpsecurity.h presence... no
checking for hpsecurity.h... no
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking for sockaddr_in6 struct in ... yes
checking for sa_len in sockaddr struct... yes
checking for arp_dev in arpreq struct... no
checking for rt_msghdr struct in ... yes
checking whether gcc needs -traditional... no
checking for working memcmp... yes
checking for err... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strsep... yes
checking for Berkeley Packet Filter... yes
checking for Linux proc filesystem... no
checking for Linux PF_PACKET sockets... no
checking for SNMP MIB2 STREAMS... no
checking for route(7) STREAMS... no
checking for arp(7) ioctls... no
checking for raw IP sockets ip_{len,off} host byte ordering... no
checking for cooked raw IP sockets... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating dnet-config
config.status: creating include/Makefile
config.status: creating include/dnet/Makefile
config.status: creating src/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: executing depfiles commands
config.status: executing default commands
configure: configuring in nbase
configure: running /bin/sh './configure' --prefix=/usr/local --cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking build system type... powerpc-apple-darwin8.6.0
checking host system type... powerpc-apple-darwin8.6.0
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for strings.h... (cached) yes
checking for memory.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for sys/types.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking rpc/types.h usability... yes
checking rpc/types.h presence... yes
checking for rpc/types.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/stat.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... 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 libiberty.h usability... no
checking libiberty.h presence... no
checking for libiberty.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for net/if.h... (cached) yes
checking for netinet/if_ether.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for inline... inline
checking for __attribute__... yes
checking whether byte ordering is bigendian... yes
checking for gethostent... yes
checking for setsockopt... yes
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for bzero... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for memcpy... yes
checking for nanosleep... yes
checking for strerror... yes
checking for strcasestr... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for signal... yes
checking for inet_aton... yes
checking for vsnprintf... (cached) yes
checking for snprintf... (cached) yes
checking for asprintf... yes
checking for asnprintf... no
checking for vasprintf... yes
checking for vasnprintf... no
checking for usleep... yes
checking for gettimeofday... yes
checking for sleep... yes
checking for getopt_long_only... yes
checking for strcasecmp... (cached) yes
checking for strncasecmp... (cached) yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking openssl/rand.h usability... yes
checking openssl/rand.h presence... yes
checking for openssl/rand.h... yes
checking for BIO_int_ctrl in -lcrypto... yes
checking for SSL_new in -lssl... yes
checking for library containing getaddrinfo... none required
checking for library containing gai_strerror... none required
checking for library containing getnameinfo... none required
checking for gai_strerror... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for working getaddrinfo... yes
checking for working getnameinfo... yes
checking for sockaddr_in6... yes
checking for sockaddr_storage... yes
checking for AF_INET6 definition... yes
checking for IPv6 support... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nbase_config.h
config.status: nbase_config.h is unchanged
configure: configuring in nsock/src
configure: running /bin/sh './configure' --prefix=/usr/local --cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking build system type... powerpc-apple-darwin8.6.0
checking host system type... powerpc-apple-darwin8.6.0
checking for gethostent... yes
checking for setsockopt... yes
checking for nanosleep... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking openssl/rand.h usability... yes
checking openssl/rand.h presence... yes
checking for openssl/rand.h... yes
checking for BIO_int_ctrl in -lcrypto... yes
checking for SSL_new in -lssl... yes
checking struct ip... yes
checking ip_v in struct ip... yes
checking if sockaddr{} has sa_len member... yes
checking if struct icmp exists... yes
checking if struct ip exists... yes
checking if struct ip has ip_sum member... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nsock_config.h
config.status: nsock_config.h is unchanged
( ) /\ _ (
\ | ( \ ( \.( ) _____
\ \ \ ` ` ) \ ( ___ / _ (_` \+ . x ( .\ \/ \____-----------/ (o) \_
- .- \+ ; ( O \____
) \_____________ ` \ /
(__ +- .( -'.- <. - _ VVVVVVV VV V\ \/
(_____ ._._: <_ - <- _ (-- _AAAAAAA__A_/ |
. /./.+- . .- / +-- - . \______________//_ \_______
(__ ' /x / x _/ ( \___' \ /
, x / ( ' . / . / | \ /
/ / _/ / + / \/
' (__/ / NMAP IS A POWERFUL TOOL -- USE CAREFULLY AND REPONSIBLY
Configuration complete. Type make (or gmake on some *BSD machines) to compile.

se ora faccio make, sembra che vada tutto a posto, ma lanciando il programma, non succede niente, si incanta...
ed ho anche reinstallato l' os 3 volte....

qualcuno ha qualche idea?
o sono l'unico idiota?