View Issue Details

IDProjectCategoryView StatusLast Update
0001031SOGoSOPEpublic2011-03-30 18:22
Reporterbuzzdee Assigned Toludovic  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version1.3.4 
Fixed in Version1.3.6 
Summary0001031: fix compilation warnings in SOPE due to missing header files
Description

Without attached patch, I get warnings like the one below when compiling SOPE. This is due to missing include of system headers. When including arpa/inet.h then netinet/in.h should be included before.

cc NSArray+enumerator.m -c \
-MMD -MP -pipe -Wall -Wno-protocol -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -DDEBUG -fno-omit-frame-pointer -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -O2 -pipe -g -fno-strict-aliasing -fgnu-runtime -fconstant-string-class=NSConstantString -I.. -I../NGStreams/ -I../../sope-xml -I. -I../NGExtensions/ -I.. -I../.. -I. -I/usr/local/include -I/SOPE-1.3.4_writes_to_HOME/GNUstep/Library/Headers -I/usr/local/include \
-o obj/FdExt.obj/NSArray+enumerator.m.o
In file included from ../common.h:35,
from common.h:1,
from NSArray+enumerator.m:24:
/usr//include/arpa/inet.h:74: warning: 'struct in_addr' declared inside parameter list
/usr//include/arpa/inet.h:74: warning: its scope is only this definition or declaration, which is probably not what you want
/usr//include/arpa/inet.h:75: warning: 'struct in_addr' declared inside parameter list

Additional Information

I don't know whether those warnings also appear on Linux. If wanted, I could also update the patches to surround the inclusion of netinet/in.h with a #defined OpenBSD. At least what I know is that the header file exists on Linux.

TagsNo tags attached.

Activities

2010-12-03 07:59

 

patch-include-netinet-in.h.diff (571 bytes)   
--- sope-core/NGStreams/common.h.orig	Mon Nov 29 18:21:07 2010
+++ sope-core/NGStreams/common.h	Mon Nov 29 18:21:32 2010
@@ -106,6 +106,7 @@
 #endif
 
 #if !defined(WIN32) || defined(__CYGWIN32__)
+#  include <netinet/in.h>
 #  include <arpa/inet.h>
 #  include <sys/un.h>
 #endif
--- sope-core/NGExtensions/common.h.orig	Mon Nov 29 18:20:14 2010
+++ sope-core/NGExtensions/common.h	Mon Nov 29 18:20:50 2010
@@ -32,6 +32,7 @@
 #elif defined(NeXT) || NeXT_Foundation_LIBRARY
 #  include <netinet/in.h>
 #else
+#  include <netinet/in.h>
 #  include <arpa/inet.h>
 #endif
 
wsourdeau

wsourdeau

2011-03-30 18:22

viewer   ~0002317

Fixed in 01aca3f61dbe0541db88ea9497a114cb2e10f039. Thanks!

Issue History

Date Modified Username Field Change
2010-12-03 07:59 buzzdee New Issue
2010-12-03 07:59 buzzdee File Added: patch-include-netinet-in.h.diff
2011-02-15 22:02 ludovic Status new => assigned
2011-02-15 22:02 ludovic Assigned To => ludovic
2011-03-30 18:22 wsourdeau Note Added: 0002317
2011-03-30 18:22 wsourdeau Status assigned => resolved
2011-03-30 18:22 wsourdeau Fixed in Version => 1.3.6
2011-03-30 18:22 wsourdeau Resolution open => fixed