Re: gcc issue

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

 



On Wed, Feb 04, 2009 at 10:35:09AM -0500, Steve wrote:
> On my fully-up-to-date F9 system, this file, junk.c:
> 
> #include <netinet/in.h>
> 
> struct my_struct {
> 	struct	in6_addr	ipi6_addr;
> 	unsigned int	ipi6_ifindex;
> };
> 
> int main ( int argc, char **argv )
> {
> 	int			x,y;
> 	struct	in6_pktinfo	junk;
> 	struct	my_struct	junk2;
> 
> 	x = sizeof (junk);
> 	y = sizeof (junk2);
> }
> 
> when compiled gives this error:
> $ gcc -c junk.c
> junk.c: In function ‘main’:
> junk.c:12: error: storage size of ‘junk’ isn’t known

Compile with
gcc -D_GNU_SOURCE -c junk.c
as struct in6_pktinfo is a GNU extension.
info libc 'Feature Test Macros'
for more info.

	Jakub

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux