Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sat Aug 19, 2017 2:42 am


FreeBSD ports and pkg, Linux rpm yum and apt, AIX lpp discussions

Author Message
admin
Post  Post subject: Can't compile ssldump on FreeBSD 6 - compile fails  |  Posted: Thu Mar 17, 2011 11:26 am
Site Admin

Joined: Mon Aug 03, 2009 8:43 am
Posts: 95

Offline
 

Can't compile ssldump on FreeBSD 6 - compile fails

When compiling ssldump on freebsd, the configure script uses stock bpf.h header file instead of the libpcap one.


Code:
===>  Building for ssldump-0.9b3_4
cc -O2 -pipe -funroll-loops -fno-strict-aliasing -march=pentium4 -O2 -pipe -funroll-loops -fno-strict-aliasing -march=pentium4  -DHAVE_LIBM=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_UNSIGNED_SHORT=2 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=4 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_STRDUP=1  -c -o pcap-snoop.o ./base/pcap-snoop.c     -DOPENSSL  -I./base/ -I./null/ -I./ssl/ -Icommon/include/ -I./null/ -I./ssl/ -I/usr/local/include
In file included from ./base/pcap-snoop.c:52:
/usr/include/net/bpf.h:63: error: redefinition of `struct bpf_program'
/usr/include/net/bpf.h:87: error: redefinition of `struct bpf_version'
/usr/include/net/bpf.h:596: error: redefinition of `struct bpf_insn'
./base/pcap-snoop.c: In function `main':
./base/pcap-snoop.c:207: warning: passing arg 2 of `signal' from incompatible pointer type
./base/pcap-snoop.c:329: warning: passing arg 3 of `pcap_loop' from incompatible pointer type
*** Error code 1

Stop in /usr/ports/net/ssldump/work/ssldump-0.9b3.
*** Error code 1

Stop in /usr/ports/net/ssldump.


The fix is to clean the instalation and run a new make:
Code:
# cd /usr/ports/net/ssldump
# make clean
# make CONFIGURE_ARGS= --with-pcap-inc=/usr/local/include/pcap/


And now it works :)

_________________
VPSie - SSD VPS servers in AMS-IX, LINX, DE-CIX
https://vpsie.com





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "Can't compile ssldump on FreeBSD 6 - compile fails"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. vlc-2.1.5 port fails to compile on FreeBSD 9.2

mandrei99

0

722

Sun Dec 28, 2014 5:32 pm

mandrei99 View the latest post

There are no new unread posts for this topic. FFMPEG svn 24953 compile fails videodev.h:56: error: expected specifier-qualifier-list before ‘ulong

debuser

0

448

Fri Aug 27, 2010 7:01 am

debuser View the latest post

There are no new unread posts for this topic. Courier compile fails with "/usr/bin/ld: cannot find -lperl"

debuser

3

1430

Wed Mar 04, 2015 5:56 am

waleed222 View the latest post

There are no new unread posts for this topic. /usr/bin/ld: cannot find -lltdl PHP Compiling fails on Centos/Red Hat

mandrei99

0

1214

Mon Feb 22, 2010 7:08 am

mandrei99 View the latest post

There are no new unread posts for this topic. How to list outdated packages in FreeBSD

mandrei99

0

609

Mon Oct 17, 2011 8:35 am

mandrei99 View the latest post

There are no new unread posts for this topic. How to search for a specific port in FreeBSD

mandrei99

0

427

Mon Oct 17, 2011 8:52 am

mandrei99 View the latest post

There are no new unread posts for this topic. How to install apache22 on FreeBSD with proxy modules

mandrei99

0

1813

Fri Feb 19, 2010 7:52 am

mandrei99 View the latest post

There are no new unread posts for this topic. How to check which package a specific file belongs to in FreeBSD - "pkg_info -W"

mandrei99

0

1361

Mon Oct 17, 2011 8:39 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD list files installed by a specific software package - "pkg_info -L"

mandrei99

0

3381

Mon Oct 17, 2011 8:26 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD error when compiling world "archive_hash.h:129:20: error: sha1.h: No such file or directory"

mandrei99

0

402

Tue May 28, 2013 5:41 am

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO