Bug 51941 - Compiling error in /usr/ports/japanese/gn-gnspool
Summary: Compiling error in /usr/ports/japanese/gn-gnspool
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-07 21:50 UTC by Keiichi Inoue
Modified: 2003-08-24 13:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!