Subj : BinkD compilation on OpenBSD To : All From : Damon A. Getsman Date : Tue Mar 15 2016 07:29 am Hello everyone. I'm trying to get the most recent version of BinkD (snagged directly from github) compiled on the most recent OpenBSD here, and I seem to be running into the same problem that I've had on some other versions here. Namely, unix/ns_parse.c is blowing up due to some elements not being defined. Here is the output of my configure process, in case that is helpful at all, to be followed by the log of the make process, starting on ns_parse.c where it blows up. -=-=-=- tinfoil:/usr/local/src/binkd-1.1$ doas nice ./configure Password: checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking sys/vfs.h usability... no checking sys/vfs.h presence... no checking for sys/vfs.h... no checking sys/statfs.h usability... no checking sys/statfs.h presence... no checking for sys/statfs.h... no checking sys/statvfs.h usability... yes checking sys/statvfs.h presence... yes checking for sys/statvfs.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for sys/mount.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking io.h usability... no checking io.h presence... no checking for io.h... no checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking arpa/nameser.h usability... yes checking arpa/nameser.h presence... yes checking for arpa/nameser.h... yes checking for resolv.h... yes checking for snprintf... yes checking for vsnprintf... yes checking for vsyslog... yes checking for waitpid... yes checking for statvfs... yes checking for statfs... yes checking for uname... yes checking for daemon... yes checking for setsid... yes checking for getopt... yes checking for localtime_r... yes checking for strtoumax... yes checking for sigprocmask... yes checking for gettimeofday... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for _LARGEFILE_SOURCE value needed for large files... no checking for socket... yes checking for gethostbyname... yes checking for setproctitle... yes checking for res_search... yes checking for ns_initparse... no checking for ns_msg._msg_ptr... no checking for ns_msg._ptr... no checking size of short... 2 checking size of int... 4 checking size of long... 4 checking for socklen_t... yes checking for intmax_t... yes checking for reliable signals... yes checking for facilitynames... yes checking for TIOCNOTTY... yes checking for MSG_NOSIGNAL... yes checking for libz... yes: /usr checking for libbz2... yes: /usr/local configure: creating ./config.status config.status: creating Makefile Tue Mar 15 07:25 tinfoil:/usr/local/src/binkd-1.1$ -=-=-=- If you'll note in the output of configure, above, all of the ns_* bits are not found. Next is the output of the make process, where it gets funky: -=-=-=- tinfoil:/usr/local/src/binkd-1.1$ doas make Password: Compiling unix/ns_parse.c... unix/ns_parse.c:35: error: expected ')' before '*' token unix/ns_parse.c:46:6: warning: #warning "ns_msg._msg_ptr element not defined" unix/ns_parse.c:76: error: expected declaration specifiers or '...' before 'ns_sect' unix/ns_parse.c: In function 'ns_skiprr': unix/ns_parse.c:85: error: 'NS_INT16SZ' undeclared (first use in this function) unix/ns_parse.c:85: error: (Each undeclared identifier is reported only once unix/ns_parse.c:85: error: for each function it appears in.) unix/ns_parse.c:86: error: 'section' undeclared (first use in this function) unix/ns_parse.c:86: error: 'ns_s_qd' undeclared (first use in this function) unix/ns_parse.c:87: error: 'NS_INT32SZ' undeclared (first use in this function) unix/ns_parse.c:90: warning: implicit declaration of function 'NS_GET16' unix/ns_parse.c: At top level: unix/ns_parse.c:100: error: expected declaration specifiers or '...' before 'ns_msg' unix/ns_parse.c: In function 'ns_initparse': unix/ns_parse.c:104: error: 'handle' undeclared (first use in this function) unix/ns_parse.c:107: error: 'NS_INT16SZ' undeclared (first use in this function) unix/ns_parse.c:113: error: 'ns_s_max' undeclared (first use in this function) unix/ns_parse.c:122: error: 'ns_sect' undeclared (first use in this function) unix/ns_parse.c:122: error: expected ')' before 'i' unix/ns_parse.c:132: warning: implicit declaration of function 'setsection' unix/ns_parse.c: At top level: unix/ns_parse.c:137: error: expected ')' before '*' token unix/ns_parse.c:197: error: expected ')' before '*' token *** Error 1 in /usr/local/src/binkd-1.1 (Makefile:78 'unix/ns_parse.o': @gcc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION...) Tue Mar 15 07:27 tinfoil:/usr/local/src/binkd-1.1$ -=-=-=- I'm really wanting to get the new version working, to see if it helps the problem that I have been having wherein my own binkd is unable to make connections to other nodes (it is only able to accept incoming connections, for some reason). Does anybody have any suggestions or a patch that might fix this little issue or even point me in the right direction here? Any help would be greatly appreciated. Thanks in advance! -D --- SBBSecho 2.27-OpenBSD * Origin: Tinfoil.synchro.net - now at FTN (1:340/200) (1:340/200) .