Date: 2009-06-11 08:16 |
Priority: 3 |
Submitted By:
Ryan Schmidt (ryandesign)
|
Assigned To:
Michael Wiegand (mwiegand) |
Summary: resolv.h: error: array type has incomplete element type |
| Detailed description | I've recently created ports for the openvas components in MacPorts for Mac OS X users. It was fairly straightforward.
openvas-libraries initially failed to build, on Mac OS X 10.4.11, with this error:
/usr/bin/gcc-4.0 -pipe -I../ -DHAVE_CONFIG_H -I.
-I/mp/var/macports/build/_Users_rschmidt_macports_dports_security_openvas-libraries/work/openvas-libraries-2.0.3/include
-I/mp/include -I/mp/include/glib-2.0 -I/mp/lib/glib-2.0/include -I/mp/include -DHAVE_CONFIG_H -I../libopenvascommon
-g -Wall -c pcap.c -fno-common -DPIC -o .libs/pcap.o
In file included from pcap.c:19:
/usr/include/resolv.h:189: error: array type has incomplete element type
/usr/include/resolv.h:203: error: field 'addr' has incomplete type
/usr/include/resolv.h:231: error: field 'sin' has incomplete type
make[1]: *** [pcap.o] Error 1
make: *** [all] Error 2
I'm attaching the patch I used to work around this. I do not know if this patch will cause problems on other operating
systems. | |
|
Followup
| Message |
Date: 2009-06-11 09:52
Sender: Michael Wiegand
Thank you for spotting this bug and especially for submitting
the patch! :)
I have patched the SVN repository, the issue you described has
been fixed in SVN revision 3724
(http://wald.intevation.org/plugins/scmsvn/viewcvs.php?rev=3724&a
mp;root=openvas&view=rev). | |
|
Attached Files:
| Name |
Download |
| patch-pcap.c.diff |
Download |
|
|
Changes:
| Field |
Old Value |
Date |
By |
| Resolution | None | 2009-06-11 09:52 | mwiegand |
| close_date | 2009-06-11 09:52 | 2009-06-11 09:52 | mwiegand |
| assigned_to | none | 2009-06-11 09:52 | mwiegand |
| status_id | Open | 2009-06-11 09:52 | mwiegand |
| File Added | 331: patch-pcap.c.diff | 2009-06-11 08:16 | ryandesign | |
|