Ticket #146 (closed defect: fixed)

Opened 20 months ago

Last modified 20 months ago

Configure/compile errors under OpenBSD 3.9

Reported by: aturner Owned by: aturner
Priority: medium Milestone: 3.0.RC1
Component: tcpreplay Version: 3.0.beta13
Keywords: Cc:
Operating System: Add to FAQ?: no
Hardware: All
Output of tcpreplay -V:

Description

Hardware: VMWare
OS: OpenBSD 3.9

make error:
gcc -DHAVE_CONFIG_H -I. -I../../src     -I.. -I../..  -g -O2 -Wall -O2
-funroll-loops -std=gnu99 -I/usr/local/include -MT sendpacket.o -MD
-MP -MF .deps/sendpacket.Tpo -c -o sendpacket.o sendpacket.c
In file included from ../../src/defines.h:5,
                from sendpacket.c:68:
../../src/tcpr.h:1716:7: warning: no newline at end of file
In file included from /usr/include/sys/sysctl.h:46,
                from sendpacket.c:88:
/usr/include/sys/ucred.h:46: error: `NGROUPS' undeclared here (not in
a function)
In file included from /usr/include/sys/sysctl.h:47,
                from sendpacket.c:88:
/usr/include/sys/proc.h:61: error: `MAXLOGNAME' undeclared here (not
in a function)
/usr/include/sys/proc.h:87: error: syntax error before "int"
/usr/include/sys/proc.h:212: error: syntax error before "sigset_t"
/usr/include/sys/proc.h:227: error: `MAXCOMLEN' undeclared here (not
in a function)
In file included from sendpacket.c:88:
/usr/include/sys/sysctl.h:328: error: `MAXLOGNAME' undeclared here
(not in a function)
In file included from sendpacket.c:91:
/usr/include/net/route.h:54: error: field `ro_dst' has incomplete type
*** Error code 1

I get these Warnings in ./configure

checking net/route.h usability... no
checking net/route.h presence... yes
configure: WARNING: net/route.h: present but cannot be compiled
configure: WARNING: net/route.h:     check for missing prerequisite headers?
configure: WARNING: net/route.h: see the Autoconf documentation
configure: WARNING: net/route.h:     section "Present But Cannot Be Compiled"
configure: WARNING: net/route.h: proceeding with the preprocessor's result
configure: WARNING: net/route.h: in the future, the compiler will take
precedence
checking for net/route.h... yes
checking sys/sysctl.h usability... no
checking sys/sysctl.h presence... yes
configure: WARNING: sys/sysctl.h: present but cannot be compiled
configure: WARNING: sys/sysctl.h:     check for missing prerequisite headers?
configure: WARNING: sys/sysctl.h: see the Autoconf documentation
configure: WARNING: sys/sysctl.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/sysctl.h: proceeding with the preprocessor's result
configure: WARNING: sys/sysctl.h: in the future, the compiler will
take precedence
checking for sys/sysctl.h... yes

route.h version
/*      $OpenBSD: route.h,v 1.35 2006/02/23 14:15:53 claudio Exp $      */

sysctl.h
/*      $OpenBSD: sysctl.h,v 1.86 2006/02/06 17:37:28 jmc Exp $ */

I'll send along anything more that you'd like if it would be helpful.

Attachments

config.log (129.6 KB) - added by hacker 20 months ago.
config.log file as requested

Change History

Changed 20 months ago by hacker

config.log file as requested

Changed 20 months ago by aturner

  • status changed from new to closed
  • resolution set to fixed

(In [1798]) OpenBSD has an old version of GCC which doesn't know about a lot of -W flags Also, OpenBSD has some strange header prerequisites, which I had to handle. Anyways, the code now configures & compiles under OpenBSD 4.0, which hopefully means 3.9 too. If not, too bad, someone else will have to figure it out. fixes #146

Changed 20 months ago by aturner

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 20 months ago by aturner

  • status changed from reopened to closed
  • resolution set to fixed

(In [1800]) whoops, didn't mean for this to get deleted. fixes #146

Changed 20 months ago by aturner

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 20 months ago by aturner

  • status changed from reopened to closed
  • resolution set to fixed

(In [1808]) fix -Wfatal-errors fixes #146

Add/Change #146 (Configure/compile errors under OpenBSD 3.9)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.