Libpcap
From Genunix
libpcap
- A system-independent interface for user-level packet capture
Contents |
[edit]
Rating
3 points (out of 4)
Rating scheme: 4 points means the source builds seamlessly on Solaris Express (OpenSolaris). Points are subtracted as follows:
- Minus 1 if the source doesn't come with an automated way to localize the build (e.g. configure)
- Minus 1 if the source won't compile with Sun's cc (this usually means the code is gcc-centric)
- Minus 1 if a minor patch is required, or
- Minus 2 if a major patch(es) is required
[edit]
How to build libpcap-0.9.4 on Solaris Express
[edit]
Build Environment (platform, compiler, tools, PATH, ld)
[edit]
Configure and compile steps (on x86 hardware)
/usr/bin/gzip -dc libpcap-0.9.4.tar.gz | /usr/sfw/bin/gtar xf -
cd libpcap-0.9.4
export CFLAGS="-i -xO4 -xspace -xstrconst -xpentium -mr"
export LDFLAGS="-Wl,-zignore -Wl,-zcombreloc -Wl,-Bdirect"
# Must use GNU ld, which is called gld on OpenSolaris and lives
# in /usr/sfw/bin. Setting LD=/usr/sfw/bin/gld doesn't work
# because this source's configure ignores $LD. So I've hacked
# Makefile.in on-the-fly thusly:
perl -i.orig -lpe 's/^\tld/\tgld/ if $. == 115' Makefile.in
./configure --prefix=/usr \
--mandir=/usr/share/man
make
make shared
[edit]
Other configure options
[edit]
Directory paths that libpcap installs to
include lib share/man/man3
[edit]
Other 3rd party software libpcap requires
(none)
