mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 22:21:29 +00:00
The patch that moves "config.h" to the top of scanner.l (and hence scanner.c) has to happen before the files are pregenerated, otherwise there is an error on AIX: In file included from scanner.c:2792: /usr/include/unistd.h:171: error: conflicting types for 'lseek64' /usr/include/unistd.h:169: error: previous declaration of 'lseek64' was here
27 lines
736 B
Plaintext
27 lines
736 B
Plaintext
Download libpcap-X.Y.tar.gz from http://www.tcpdump.org/#latest-release
|
|
and verify the signature.
|
|
|
|
cd
|
|
# Make a copy of this directory.
|
|
cp -r ~/nmap/NMAP_MODIFICATIONS .
|
|
tar xzvf libpcap-X.Y.tar.gz
|
|
cd nmap
|
|
rsync -rv --delete ~/libpcap-X.Y/ ~/nmap/libpcap/
|
|
git add -A libpcap
|
|
cd libpcap
|
|
# Apply the pre-configure patch.
|
|
git apply -p0 --directory=libpcap/ ~/NMAP_MODIFICATIONS/pre-configure.patch
|
|
./configure
|
|
make grammar.c scanner.c scanner.h tokdefs.h
|
|
git add grammar.c scanner.c scanner.h tokdefs.h
|
|
cd ..
|
|
# Apply patches.
|
|
git apply -p0 --directory=libpcap/ ~/NMAP_MODIFICATIONS/000*
|
|
cd libpcap
|
|
autoconf
|
|
cd ..
|
|
git add -u libpcap
|
|
mv ~/NMAP_MODIFICATIONS libpcap/
|
|
git add libpcap/NMAP_MODIFICATIONS
|
|
git commit -m "Upgrade libpcap to X.Y."
|