Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  8 Oct 2002 11:18:10 +0900 (JST)
From:      Kimura Fuyuki <fuyuki@hadaly.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/43807: Update port: misc/GeoIP (fix build)
Message-ID:  <20021008021810.5877B8221@hadaly.dyndns.org>

next in thread | raw e-mail | index | archive | help

>Number:         43807
>Category:       ports
>Synopsis:       Update port: misc/GeoIP (fix build)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 07 19:20:06 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kimura Fuyuki
>Release:        FreeBSD 4.6.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hadaly.dyndns.org 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #17: Wed Aug 14 17:19:17 JST 2002 root@hadaly.dyndns.org:/sack/tmp/obj/pub/src/sys/NS i386


	
>Description:
The build fails on 4.6.2-RELEASE because in.h requires types.h.
	
>How-To-Repeat:
 # make

 (snip)

 cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"GeoIP\" -DVERSION=\"1.0.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_GETHOSTBYNAME=1 -DDEFAULT_DBDIR=\"/usr/local/share/GeoIP\" -I. -I. -DDATADIR=\"/usr/local/share/GeoIP\" -Wall -O -pipe -c GeoIPUpdate.c -Wp,-MD,.deps/GeoIPUpdate.TPlo  -fPIC -DPIC -o .libs/GeoIPUpdate.lo
 In file included from GeoIPUpdate.c:24:
 /usr/include/netinet/in.h:233: syntax error before `in_addr_t'
 /usr/include/netinet/in.h:285: syntax error before `u_char'
 In file included from /usr/include/netinet/in.h:467,
 from GeoIPUpdate.c:24:
 /usr/include/netinet6/in6.h:122: syntax error before `u_int8_t'
 /usr/include/netinet6/in6.h:144: syntax error before `u_int8_t'
 /usr/include/netinet6/in6.h:149: syntax error before `u_int32_t'
 /usr/include/netinet6/in6.h:612: syntax error before `*'
 /usr/include/netinet6/in6.h:614: syntax error before `*'
 /usr/include/netinet6/in6.h:614: warning: data definition has no type or storage class
 /usr/include/netinet6/in6.h:615: syntax error before `u_int8_t'
 /usr/include/netinet6/in6.h:616: syntax error before `u_int8_t'
 /usr/include/netinet6/in6.h:631: syntax error before `u_int8_t'
 /usr/include/netinet6/in6.h:636: syntax error before `u_int8_t'
 /usr/include/netinet6/in6.h:638: syntax error before `u_int8_t'
 GeoIPUpdate.c: In function `GeoIP_update_database':
 GeoIPUpdate.c:96: structure has no member named `sin_port'
 GeoIPUpdate.c:98: structure has no member named `sin_family'
 *** Error code 1

 Stop in /sack/tmp/pub/ports/misc/GeoIP/work/GeoIP-1.0.8/libGeoIP.
 *** Error code 1

 Stop in /sack/tmp/pub/ports/misc/GeoIP/work/GeoIP-1.0.8.
 *** Error code 1

 Stop in /pub/ports/misc/GeoIP.
	
>Fix:
Not tested on -current.

--- /usr/ports/misc/GeoIP/files/patch-libGeoIP::GeoIPUpdate.c	Thu Jan  1 09:00:00 1970
+++ GeoIP/files/patch-libGeoIP::GeoIPUpdate.c	Tue Oct  8 11:04:23 2002
@@ -0,0 +1,13 @@
+--- libGeoIP/GeoIPUpdate.c.orig	Sun Oct  6 00:04:33 2002
++++ libGeoIP/GeoIPUpdate.c	Tue Oct  8 11:01:16 2002
+@@ -21,9 +21,9 @@
+ #include "global.h"
+ #include "md5.h"
+ #include "GeoIP.h"
++#include <sys/types.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+-#include <sys/types.h>
+ #include <sys/socket.h>
+ #include "zlib.h"
+ #include "time.h"

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021008021810.5877B8221>