http://bugs.winehq.org/show_bug.cgi?id=16661
Summary: build broken in dlls/iphlpapi/ipstats.c on OpenBSD 4.4 Product: Wine Version: 1.1.11 Platform: PC OS/Version: OpenBSD Status: NEW Keywords: patch, source Severity: major Priority: P2 Component: build-env AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
Created an attachment (id=18289) --> (http://bugs.winehq.org/attachment.cgi?id=18289) openbsd patch
gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wwrite-strings -Wpointer-arith -I/usr/local/include -g -O2 -o ipstats.o ipstats.c ipstats.c: In function `getIPStats': ipstats.c:484: warning: implicit declaration of function `sysctlbyname' ipstats.c: In function `getTCPStats': ipstats.c:640: error: `TCPCTL_STATS' undeclared (first use in this function) ipstats.c:640: error: (Each undeclared identifier is reported only once ipstats.c:640: error: for each function it appears in.) ipstats.c:643: error: storage size of `tcp_stat' isn't known ipstats.c:657: error: `PR_SLOWHZ' undeclared (first use in this function) ipstats.c:643: warning: unused variable `tcp_stat' ipstats.c: In function `getNumRoutes': ipstats.c:1014: error: `RTF_MULTICAST' undeclared (first use in this function) ipstats.c: In function `getRouteTable': ipstats.c:1091: error: `RTF_MULTICAST' undeclared (first use in this function) ipstats.c: In function `getNumArpEntries': ipstats.c:1284: error: dereferencing pointer to incomplete type ipstats.c:1284: error: dereferencing pointer to incomplete type ipstats.c: In function `getArpTable': ipstats.c:1344: error: dereferencing pointer to incomplete type ipstats.c:1344: error: dereferencing pointer to incomplete type ipstats.c:1349: error: dereferencing pointer to incomplete type ipstats.c:1358: error: dereferencing pointer to incomplete type ipstats.c:1358: error: `SIN_PROXY' undeclared (first use in this function) *** Error code 1
Attached patch fixes it, but is not correct. If anyone would like to implement properly, I'll buy you a beer :-).
http://bugs.winehq.org/show_bug.cgi?id=16661
--- Comment #1 from Austin English austinenglish@gmail.com 2009-01-15 04:33:45 --- I looked into this a bit more. There are actually 3 bugs: A) HAVE_NETINET_* aren't being defined. That's a problem in configure, because the dependencies are a lot different on Net/OpenBSD. I'm working on this one now. B) sysctlbyname isn't implemented for OpenBSD. Juan sent me patch to fix this one. Hasn't been sent to wine-patches yet. C) RTF_MULTICAST isn't available on Net/OpenBSD. I sent a patch for this: http://www.winehq.org/pipermail/wine-patches/2009-January/067737.html
http://bugs.winehq.org/show_bug.cgi?id=16661
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #2 from Austin English austinenglish@gmail.com 2009-03-29 21:27:03 --- Works fine in git. Guess I owe myself a beer...
http://bugs.winehq.org/show_bug.cgi?id=16661
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org 2009-04-10 11:20:53 --- Closing bugs fixed in 1.1.19.