bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug #2251] network.cpp: make fails on Solaris 8


From: nobody
Subject: [Bug #2251] network.cpp: make fails on Solaris 8
Date: Tue, 21 Jan 2003 06:17:11 -0500

=================== BUG #2251: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=2251&group_id=89

Changes by: Federico Montesino Pouzols <address@hidden>
Date: 2003-Jan-21 12:16 (Europe/Madrid)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
         Assigned to | None                      | fedemp
              Status | Open                      | Closed
                  CC |                           | address@hidden


------------------ Additional Follow-up Comments ----------------------------

   Hi, I have just commited some code and autoconf stuff so
that sys/sockio.h is included when available. The issue with
ifr_netmask was already fixed in CVS, you can safely replace
ifr_netmask with ifr_addr.



=================== BUG #2251: FULL BUG SNAPSHOT ===================


Submitted by: raoleary                Project: commonc++                    
Submitted on: 2003-Jan-19 17:37
Category:  None                       Severity:  5 - Major                  
Bug Group:  None                      Resolution:  Fixed                    
Assigned to:  fedemp                  Status:  Closed                       

Summary:  network.cpp: make fails on Solaris 8

Original Submission:  Hi, After ./configure, make fails at network.cpp:

/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../include     
-I../src -DCCXX_EXPORT_LIBRARY  -I/usr/local/include -D_GNU_SOURCE -D_REENTRANT 
 -I../include -c network.cpp
rm -f .libs/network.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY 
-I/usr/local/include -D_GNU_SOURCE -D_REENTRANT -I../include -c network.cpp  
-fPIC -DPIC -o .libs/network.lo
In file included from /usr/include/fcntl.h:18,
                 from ../include/cc++/config.h:344,
                 from network.cpp:41:
/usr/include/sys/feature_tests.h:143: warning: `_POSIX_PTHREAD_SEMANTICS' 
redefined
../include/cc++/config.h:306: warning: this is the location of the previous 
definition
network.cpp: In function `bool 
ost::enumNetworkDevices(vector<ost::NetworkDeviceInfo,allocator<ost::NetworkDeviceInfo>
 > &)':
network.cpp:91: `SIOCGIFCONF' undeclared (first use this function)
network.cpp:91: (Each undeclared identifier is reported only once
network.cpp:91: for each function it appears in.)
network.cpp:112: `SIOCGIFBRDADDR' undeclared (first use this function)
network.cpp:117: `SIOCGIFNETMASK' undeclared (first use this function)
network.cpp:120: `struct ifreq' has no member named `ifr_netmask'
network.cpp:122: `SIOCGIFMTU' undeclared (first use this function)
network.cpp:125: `struct ifreq' has no member named `ifr_mtu'
*** Error code 1
make: Fatal error: Command failed for target `network.lo'
Current working directory /opt/sunr1/commoncpp2-1.0.7/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'


Including sockio.h fixes the macro ioctls but the missing struct members are 
still a problem:
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../include     
-I../src -DCCXX_EXPORT_LIBRARY  -I/usr/local/include -D_GNU_SOURCE -D_REENTRANT 
 -I../include -c network.cpp
rm -f .libs/network.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY 
-I/usr/local/include -D_GNU_SOURCE -D_REENTRANT -I../include -c network.cpp  
-fPIC -DPIC -o .libs/network.lo
In file included from /usr/include/fcntl.h:18,
                 from ../include/cc++/config.h:344,
                 from network.cpp:41:
/usr/include/sys/feature_tests.h:143: warning: `_POSIX_PTHREAD_SEMANTICS' 
redefined
../include/cc++/config.h:306: warning: this is the location of the previous 
definition
network.cpp: In function `bool 
ost::enumNetworkDevices(vector<ost::NetworkDeviceInfo,allocator<ost::NetworkDeviceInfo>
 > &)':
network.cpp:120: `struct ifreq' has no member named `ifr_netmask'
network.cpp:125: `struct ifreq' has no member named `ifr_mtu'
*** Error code 1
make: Fatal error: Command failed for target `network.lo'
Current working directory /opt/sunr1/commoncpp2-1.0.7/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

There is an mtu member in the newer lifreq but no netmask member.

Regards,
Rob

Follow-up Comments
*******************

-------------------------------------------------------
Date: 2003-Jan-21 12:16             By: fedemp

   Hi, I have just commited some code and autoconf stuff so
that sys/sockio.h is included when available. The issue with
ifr_netmask was already fixed in CVS, you can safely replace
ifr_netmask with ifr_addr.


CC List
*******

CC Address                          | Comment
------------------------------------+-----------------------------
address@hidden               | 



No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=2251&group_id=89




reply via email to

[Prev in Thread] Current Thread [Next in Thread]