[Bug 8442] New: configure finds sysctl.h but it does not compile on OpenBSD 4.1

Wine Bugs wine-bugs at winehq.org
Sat May 19 17:36:26 CDT 2007


http://bugs.winehq.org/show_bug.cgi?id=8442

           Summary: configure finds sysctl.h but it does not compile on
                    OpenBSD 4.1
           Product: Wine
           Version: 0.9.37.
          Platform: Other
        OS/Version: OpenBSD
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: wine-ports
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: utg_vrtz at yahoo.se


configure: WARNING: sys/sysctl.h: present but cannot be compiled
configure: WARNING: sys/sysctl.h:     check for missing prerequisite headers?
configure: WARNING: sys/sysctl.h: see the Autoconf documentation
configure: WARNING: sys/sysctl.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/sysctl.h: proceeding with the preprocessor's result
configure: WARNING: sys/sysctl.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to wine-devel at winehq.org ##
configure: WARNING:     ## ------------------------------------ ##

I didn't manage to get the header dependencies right, so I leave
this to those who are used to working with configure scripts.
>From config.log:

configure:6235: checking sys/sysctl.h usability
configure:6247: gcc -c -g -O2  conftest.c >&5
In file included from /usr/include/sys/sysctl.h:46,
                 from conftest.c:105:
/usr/include/sys/ucred.h:49: error: `NGROUPS' undeclared here (not in a function
)
In file included from /usr/include/sys/sysctl.h:47,
                 from conftest.c:105:
/usr/include/sys/proc.h:65: error: `MAXLOGNAME' undeclared here (not in a functi
on)
/usr/include/sys/proc.h:91: error: syntax error before "int"
/usr/include/sys/proc.h:215: error: syntax error before "sigset_t"
/usr/include/sys/proc.h:230: error: `MAXCOMLEN' undeclared here (not in a functi
on)
In file included from conftest.c:105:
/usr/include/sys/sysctl.h:327: error: `MAXLOGNAME' undeclared here (not in a fun
ction)

I got around the problem by putting an include directive of sys/param.h 
into sys/proc.h and sys/ucred.h, but that is extremely hard to turn into
a patch for the wine package. ;)

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list