Bug 51941

Summary: Compiling error in /usr/ports/japanese/gn-gnspool
Product: Ports & Packages Reporter: Keiichi Inoue <sanremo>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Keiichi Inoue 2003-05-07 21:50:13 UTC
# cd /usr/ports/japanese/gn-gnspool/
# make

(snip)
client.c: In function `get_tcp_socket':
client.c:721: conflicting types for `__inet_addr'
/usr/include/arpa/inet.h:87: previous declaration of `__inet_addr'
client.c:721: warning: extern declaration of `__inet_addr' doesn't match global 
one
*** Error code 1

Fix: I tried following patch...



I successed compile the ports.

--h47I7MkQ071282.1052330855/sado.kariyata.org----NHbmW7kFTdnyu3W0YxMdNjqY4Ni8lxk0O0aeDUjcZiuVAPyh
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- client.c.orig       Sat May  2 11:11:26 1998
+++ client.c    Sat May  3 20:13:18 2003
@@ -718,7 +718,7 @@
 #      ifndef ESPX
 #      ifndef WIN32
 #      ifndef linux
-  unsigned long inet_addr();
+  in_addr_t inet_addr();
 #      endif /* (!linux) */
 #      endif /* (!WIN32) */
 #      endif /* (!ESPX) */
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2003-08-24 13:28:44 UTC
State Changed
From-To: open->closed

Commited, thanks!