Closed Bug 135111 Opened 23 years ago Closed 13 years ago

compilation error, missing struct sockaddr_in in <netinet/in.h>

Categories

(Core :: Networking, defect)

Sun
Solaris
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
Future

People

(Reporter: tanaka, Unassigned)

References

()

Details

(Keywords: qawanted)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020310 BuildID: 2002031008 There is two compile-time error in building from source, in Solaris 2.5.1. This is the first one. <netinet/in.h> must be included explicitly in Solaris 2.5.1 <arpa/inet.h> does not include <netinet/in.h> Reproducible: Always Steps to Reproduce: 1.tar zxvf mozilla-0.9.9.tar.gz 2.cd mozilla 3../configure 4.make Actual Results: incomplete type struct sockaddr_in *** nsSocket.cpp.orig Wed Apr 3 21:04:43 2002 --- nsSocket.cpp Fri Mar 29 21:46:53 2002 *************** *** 35,40 **** --- 35,41 ---- #include <netdb.h> #include <sys/socket.h> + #include <netinet/in.h> #include <arpa/inet.h> #elif defined(_WINDOWS) #define read(_socket, _buf, _len) \ recv(_socket, (char *) _buf, _len, 0);
qawanted - I don't build on Solaris.
Keywords: qawanted
I don't have a Solaris 2.5.1 box anymore, but I can confirm that on Solaris 7, <arpa/inet.h> includes <netinet/in.h>.
In my Solaris 2.5.1 box, Solaris2.5.1$ fgrep '<netinet/in.h>' /usr/include/arpa/*.h; echo $? 1 Solaris2.5.1$ man inet_addr : cc [ flag ... ] file ... -lnsl [ library ... ] #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> unsigned long inet_addr(const char *cp); : Solaris2.5.1$
Status: UNCONFIRMED → NEW
Ever confirmed: true
cc'ing cls
Target Milestone: --- → Future
Solaris 2.5.1 is now far behind EOL (September 2005) -> wontfix
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.