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

RESOLVED WONTFIX

Status

()

Core
Networking
RESOLVED WONTFIX
16 years ago
7 months ago

People

(Reporter: TANAKA Satoshi, Unassigned)

Tracking

({qawanted})

Trunk
Future
Sun
Solaris
qawanted
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

16 years ago
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);

Comment 1

16 years ago
qawanted - I don't build on Solaris.
Keywords: qawanted

Comment 2

16 years ago
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>.
(Reporter)

Comment 3

16 years ago
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

Comment 4

16 years ago
cc'ing cls

Updated

16 years ago
Target Milestone: --- → Future
Solaris 2.5.1 is now far behind EOL (September 2005) -> wontfix
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.