GNU bug report logs - #8383
24.0.50; revno 103781 and net/if.h

Previous Next

Package: emacs;

Reported by: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>

Date: Wed, 30 Mar 2011 21:54:01 UTC

Severity: normal

Merged with 8561

Found in version 24.0.50

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8383 in the body.
You can then email your comments to 8383 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8383; Package emacs. (Wed, 30 Mar 2011 21:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Dyballa <Peter_Dyballa <at> Freenet.DE>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 30 Mar 2011 21:54:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; revno 103781 and net/if.h
Date: Wed, 30 Mar 2011 23:53:18 +0200
Hello!

The configure script early checks for net/if.h. Twelve days ago  
(2011-03-18) it reported:

	checking for net/if.h... yes
	checking whether struct tm is in sys/time.h or time.h... time.h
	checking for struct tm.tm_zone... yes
	checking for struct tm.tm_gmtoff... yes
	checking for struct ifreq.ifr_flags... yes
	checking for struct ifreq.ifr_hwaddr... no
	checking for struct ifreq.ifr_netmask... no
	checking for struct ifreq.ifr_broadaddr... yes
	checking for struct ifreq.ifr_addr... yes

Now it reports:

	checking for net/if.h... no
	checking whether struct tm is in sys/time.h or time.h... time.h
	checking for struct tm.tm_zone... yes
	checking for struct tm.tm_gmtoff... yes
	checking for struct ifreq.ifr_flags... no
	checking for struct ifreq.ifr_hwaddr... no
	checking for struct ifreq.ifr_netmask... no
	checking for struct ifreq.ifr_broadaddr... no
	checking for struct ifreq.ifr_addr... no

In the list of included C header files I can see a difference:

        past                                    now
. /usr/include/unistd.h               . /usr/include/unistd.h
.. /usr/include/sys/unistd.h          .. /usr/include/sys/unistd.h
.. /usr/include/sys/select.h          .. /usr/include/sys/select.h
... /usr/include/sys/_structs.h       ... /usr/include/sys/_structs.h
... /usr/include/sys/_select.h        ... /usr/include/sys/_select.h
. /usr/include/sys/socket.h
.. /usr/include/machine/_param.h
... /usr/include/ppc/_param.h
. /usr/include/net/if.h               . /usr/include/net/if.h
.. /usr/include/net/if_var.h          .. /usr/include/net/if_var.h
... /usr/include/sys/time.h           ... /usr/include/sys/time.h
.... /usr/include/sys/_structs.h      .... /usr/include/sys/_structs.h
.... /usr/include/time.h              .... /usr/include/time.h
..... /usr/include/_structs.h         ..... /usr/include/_structs.h
...... /usr/include/sys/_structs.h    ...... /usr/include/sys/_structs.h
... /usr/include/sys/queue.h          ... /usr/include/sys/queue.h

The difference may come from removing these blocks from configure:

	for ac_header in sys/socket.h
	do :
	  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h"  
"ac_cv_header_sys_socket_h" "$ac_includes_default"
	if test "x$ac_cv_header_sys_socket_h" = xyes; then :
	  cat >>confdefs.h <<_ACEOF
	#define HAVE_SYS_SOCKET_H 1
	_ACEOF
	
	fi
	
	done

	for ac_header in net/if.h
	do :
	  ac_fn_c_check_header_compile "$LINENO" "net/if.h"  
"ac_cv_header_net_if_h" "$ac_includes_default
	#if HAVE_SYS_SOCKET_H
	#include <sys/socket.h>
	#endif
	"
	if test "x$ac_cv_header_net_if_h" = xyes; then :
	  cat >>confdefs.h <<_ACEOF
	#define HAVE_NET_IF_H 1
	_ACEOF
	
	fi
	
	done

The tests for ifreq.ifr_* show errors like these:

	In file included from conftest.c:87:0:
	/usr/include/net/if.h:259:19: error: field 'ifru_addr' has incomplete  
type
	/usr/include/net/if.h:260:19: error: field 'ifru_dstaddr' has  
incomplete type
	/usr/include/net/if.h:261:19: error: field 'ifru_broadaddr' has  
incomplete type
	/usr/include/net/if.h:298:18: error: field 'ifra_addr' has incomplete  
type
	/usr/include/net/if.h:299:18: error: field 'ifra_broadaddr' has  
incomplete type
	/usr/include/net/if.h:300:18: error: field 'ifra_mask' has incomplete  
type
	/usr/include/net/if.h:374:26: error: field 'addr' has incomplete type
	/usr/include/net/if.h:375:26: error: field 'dstaddr' has incomplete  
type


--
Greetings

  Pete

Only useless documentation transcends the first two laws.
				– Arnold's Third Law of Documentation





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8383; Package emacs. (Sat, 09 Apr 2011 15:35:02 GMT) Full text and rfc822 format available.

Message #8 received at 8383 <at> debbugs.gnu.org (full text, mbox):

From: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
To: 8383 <at> debbugs.gnu.org
Subject: Re: bug#8383: Acknowledgement (24.0.50; revno 103781 and net/if.h)
Date: Sat, 9 Apr 2011 17:34:43 +0200
Hello!

This case is now solved.

--
Greetings

  Pete

There are very few jobs that actually require a penis or vagina. All  
other jobs should be open to everybody.
				– Florynce Kennedy





bug closed, send any further explanations to 8383 <at> debbugs.gnu.org and Peter Dyballa <Peter_Dyballa <at> Freenet.DE> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Sat, 09 Apr 2011 20:32:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 08 May 2011 11:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 06 Dec 2017 19:16:01 GMT) Full text and rfc822 format available.

Forcibly Merged 8383 8561. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 06 Dec 2017 19:16:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 04 Jan 2018 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 225 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.