FreeBSD build problems

Peter Van Epp vanepp at sfu.ca
Fri Jun 8 11:46:41 EDT 2001


	argus-clients-2.0.1.alpha.3 on FreeBSD 4.3-RELEASE

	I can't immediately figure out how configure is deciding FreeBSD has
libintl (which it doesn't). I haven't looked at the getopt complaint yet,
but it only seems to want unistd.h (no getopt.h found):

SYNOPSIS
     #include <unistd.h>

     extern char *optarg;
     extern int optind;
     extern int optopt;
     extern int opterr;
     extern int optreset;


r2d2# make
making in ./common
making in ./clients
making in ./ragraph
making in ./ragrep
gcc -DHAVE_CONFIG_H -I. -I../include -DLOCALEDIR=\"/usr/local/share/locale\"    -g -O2 -c ragrep.c
In file included from ragrep.c:47:
system.h:194: libintl.h: No such file or directory
ragrep.c:48: getopt.h: No such file or directory
*** Error code 1

Stop in /usr/local/src/argus-clients-2.0.1.alpha.3/ragrep.
*** Error code 1

Stop in /usr/local/src/argus-clients-2.0.1.alpha.3/ragrep.
*** Error code 1

Stop in /usr/local/src/argus-clients-2.0.1.alpha.3.
r2d2# find /usr/include -name libintl.h -print
r2d2# 

and argus-clients-2.0.1.alpha.3 on FreeBSD 4.3-RELEASE argus_filter needs this:

*** common/argus_filter.c.orig	Fri Jun  8 08:14:08 2001
--- common/argus_filter.c	Fri Jun  8 08:15:39 2001
***************
*** 3504,3510 ****
  
  #ifdef ETHER_SERVICE
  struct ether_addr;
! #ifndef linux
  extern int ether_ntohost(char *, struct ether_addr *);
  #endif
  #endif
--- 3504,3510 ----
  
  #ifdef ETHER_SERVICE
  struct ether_addr;
! #if !defined(linux) && !defined(__FreeBSD__)
  extern int ether_ntohost(char *, struct ether_addr *);
  #endif
  #endif



More information about the argus mailing list