-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fallback functions request #5
Comments
daemon and getifaddrs are added now. strsignal probably needs to be written in an OS-dependent way - e.g. OpenBSD possibly has a different set of available signals than HP-UX, such as SIGINFO. |
daemon I'd expect to work as is, it's pretty simple (although you'll need to copy it to daemon_hpux.c and twiddle some autoconf), the getifaddrs works under S10 but I'm not sure if it will work under hpux, you'll need to try it (with the same caveat of copying it to getifaddrs_hpux.c and tweaking autoconf). Here's a vsyslog for hpux: https://github.com/vincentbernat/lldpd/blob/master/src/compat/vsyslog.c It's under the ISC license which I believe is ok to pull in. As far as strsignal, that's just cosmetic. For a first pass I'd just use 'unknown' on systems where it doesn't exist. Could you try to get it to compile again with these updates and see what else is missing? I might be able to give you a hand if you can get me shell access to an hpux box. |
Hi,
I'm trying to build it here,
https://github.com/kinichiro/openntpd-portable/tree/build_hpux?files=1
And found some issues,
post them to issue tracker of my fork.
I think missing CLOCK_MONOTONIC is the big issue.
|
Hi, more details on compilation issues on hpux 11i 11.31 adjfreq_hpux.c daemon_hpux.c getifaddrs_hpux.c CC getifaddrs_hpux.lo "getifaddrs_hpux.c", line 38: error #3696-D: cannot open source file "sys/sockio.h" #include ^ "getifaddrs_hpux.c", line 47: error #2070: incomplete type is not allowed struct lifnum lifn; ^ "getifaddrs_hpux.c", line 48: error #2070: incomplete type is not allowed struct lifconf lifc; ^ "getifaddrs_hpux.c", line 95: error #2136: struct "lifreq" has no field "lifr_name" slen = strlen(lifrp->lifr_name) + 1; ^ "getifaddrs_hpux.c", line 110: error #2070: incomplete type is not allowed len = addr->ss_family == AF_INET ? sizeof (struct sockaddr_in) : ^ "getifaddrs_hpux.c", line 111: error #2070: incomplete type is not allowed sizeof (struct sockaddr_in6); ^ "getifaddrs_hpux.c", line 126: error #2136: struct "lifreq" has no field "lifr_name" (void) strcpy(ifa->ifa_name = buf, lifrp->lifr_name); ^ "getifaddrs_hpux.c", line 127: error #2136: struct "lifreq" has no field "lifr_name" slen = strlen(lifrp->lifr_name) + 1; ^ "getifaddrs_hpux.c", line 136: error #2136: struct "lifreq" has no field "lifr_addr" ifa->ifa_addr = addrcpy(&lifrp->lifr_addr, &buf); ^ "getifaddrs_hpux.c", line 140: error #2136: struct "lifreq" has no field "lifr_addr" ifa->ifa_netmask = addrcpy(&lifrp->lifr_addr, &buf); ^ "getifaddrs_hpux.c", line 146: error #2136: struct "lifreq" has no field "lifr_dstaddr" addrcpy(&lifrp->lifr_dstaddr, &buf); ^ "getifaddrs_hpux.c", line 148: error #2020: identifier "SIOCGLIFBRDADDR" is undefined if (ioctl(fd, SIOCGLIFBRDADDR, lifrp) == -1) ^ "getifaddrs_hpux.c", line 152: error #2136: struct "lifreq" has no field "lifr_broadaddr" addrcpy(&lifrp->lifr_broadaddr, &buf); ^ "getifaddrs_hpux.c", line 192: error #2070: incomplete type is not allowed ifa = malloc(nbytes(ifr4, nif4, sizeof (struct sockaddr_in)) + ^ "getifaddrs_hpux.c", line 193: error #2070: incomplete type is not allowed nbytes(ifr6, nif6, sizeof (struct sockaddr_in6))); ^ 15 errors detected in the compilation of "getifaddrs_hpux.c". *** Error exit code 1 compat/setproctitle.c src/client.c vsyslog.c strsignal() src/util.c Thanks. |
Hi,
I would like to port openntpd to other than *bsd and linux.
And I found that fallback functions below are needed in hpux environment.
Can you add these functions like compat/bsd-asprintf.c ?
Thanks.
The text was updated successfully, but these errors were encountered: