sniproxy icon indicating copy to clipboard operation
sniproxy copied to clipboard

OpenBSD 6.1/i386 build issues

Open sjlongland opened this issue 8 years ago • 3 comments

Hi,

I'm trying to build sniproxy on OpenBSD (because sniproxy is plain simple and does what I need, relayd isn't ready yet for SNI and I want a minimalist secure router), but I've hit a road block where autogen.sh is concerned:

$ ./autogen.sh                                                                                                                     
./setver.sh[35]: debchange: not found
configure.ac:27: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/local/share/aclocal/pkg.m4:159: PKG_CHECK_MODULES is expanded from...
configure.ac:27: the top level
configure.ac:27: warning: AC_LIB_PROG_LD is m4_require'd but not m4_defun'd
m4/lib-link.m4:153: AC_LIB_RPATH is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/local/share/aclocal/pkg.m4:159: PKG_CHECK_MODULES is expanded from...
configure.ac:27: the top level
configure.ac:27: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:678: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/local/share/aclocal/pkg.m4:159: PKG_CHECK_MODULES is expanded from...
configure.ac:27: the top level
configure.ac:38: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/local/share/aclocal/pkg.m4:159: PKG_CHECK_MODULES is expanded from...
configure.ac:38: the top level
configure.ac:38: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:678: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/local/share/aclocal/pkg.m4:159: PKG_CHECK_MODULES is expanded from...
configure.ac:38: the top level
configure.ac:51: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/local/share/aclocal/pkg.m4:159: PKG_CHECK_MODULES is expanded from...
/usr/local/share/autoconf-2.69/m4sugar/m4sh.m4:643: AS_IF is expanded from...
configure.ac:51: the top level
configure.ac:51: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:678: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/local/share/aclocal/pkg.m4:159: PKG_CHECK_MODULES is expanded from...
/usr/local/share/autoconf-2.69/m4sugar/m4sh.m4:643: AS_IF is expanded from...
configure.ac:51: the top level
configure.ac:27: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/local/share/aclocal/pkg.m4:159: PKG_CHECK_MODULES is expanded from...
configure.ac:27: the top level
configure.ac:27: warning: AC_LIB_PROG_LD is m4_require'd but not m4_defun'd
m4/lib-link.m4:153: AC_LIB_RPATH is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/local/share/aclocal/pkg.m4:159: PKG_CHECK_MODULES is expanded from...
configure.ac:27: the top level
configure.ac:27: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:678: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/local/share/aclocal/pkg.m4:159: PKG_CHECK_MODULES is expanded from...
configure.ac:27: the top level
configure.ac:38: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/local/share/aclocal/pkg.m4:159: PKG_CHECK_MODULES is expanded from...
configure.ac:38: the top level
configure.ac:38: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:678: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/local/share/aclocal/pkg.m4:159: PKG_CHECK_MODULES is expanded from...
configure.ac:38: the top level
configure.ac:51: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/local/share/aclocal/pkg.m4:159: PKG_CHECK_MODULES is expanded from...
/usr/local/share/autoconf-2.69/m4sugar/m4sh.m4:643: AS_IF is expanded from...
configure.ac:51: the top level
configure.ac:51: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:678: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/local/share/aclocal/pkg.m4:159: PKG_CHECK_MODULES is expanded from...
/usr/local/share/autoconf-2.69/m4sugar/m4sh.m4:643: AS_IF is expanded from...
configure.ac:51: the top level
configure.ac:27: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:181: PKG_CHECK_MODULES is expanded from...
configure.ac:27: the top level
configure.ac:27: warning: AC_LIB_PROG_LD is m4_require'd but not m4_defun'd
m4/lib-link.m4:153: AC_LIB_RPATH is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:181: PKG_CHECK_MODULES is expanded from...
configure.ac:27: the top level
configure.ac:27: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:678: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:181: PKG_CHECK_MODULES is expanded from...
configure.ac:27: the top level
configure.ac:38: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:181: PKG_CHECK_MODULES is expanded from...
configure.ac:38: the top level
configure.ac:38: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:678: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:181: PKG_CHECK_MODULES is expanded from...
configure.ac:38: the top level
configure.ac:51: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:181: PKG_CHECK_MODULES is expanded from...
/usr/local/share/autoconf-2.69/m4sugar/m4sh.m4:643: AS_IF is expanded from...
configure.ac:51: the top level
configure.ac:51: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:678: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:181: PKG_CHECK_MODULES is expanded from...
/usr/local/share/autoconf-2.69/m4sugar/m4sh.m4:643: AS_IF is expanded from...
configure.ac:51: the top level
configure.ac:27: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:181: PKG_CHECK_MODULES is expanded from...
configure.ac:27: the top level
configure.ac:27: warning: AC_LIB_PROG_LD is m4_require'd but not m4_defun'd
m4/lib-link.m4:153: AC_LIB_RPATH is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:181: PKG_CHECK_MODULES is expanded from...
configure.ac:27: the top level
configure.ac:27: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:678: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:181: PKG_CHECK_MODULES is expanded from...
configure.ac:27: the top level
configure.ac:38: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:181: PKG_CHECK_MODULES is expanded from...
configure.ac:38: the top level
configure.ac:38: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:678: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:181: PKG_CHECK_MODULES is expanded from...
configure.ac:38: the top level
configure.ac:51: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:181: PKG_CHECK_MODULES is expanded from...
/usr/local/share/autoconf-2.69/m4sugar/m4sh.m4:643: AS_IF is expanded from...
configure.ac:51: the top level
configure.ac:51: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:678: AC_LIB_LINKFLAGS_BODY is expanded from...
m4/lib-link.m4:114: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:181: PKG_CHECK_MODULES is expanded from...
/usr/local/share/autoconf-2.69/m4sugar/m4sh.m4:643: AS_IF is expanded from...
configure.ac:51: the top level
configure:4687: error: possibly undefined macro: AC_LIB_PREPARE_PREFIX
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure:4688: error: possibly undefined macro: AC_LIB_PROG_LD
configure:4794: error: possibly undefined macro: AC_LIB_PREPARE_MULTILIB
configure:4870: error: possibly undefined macro: AC_LIB_WITH_FINAL_PREFIX
autoreconf-2.69: /usr/local/bin/autoconf-2.69 failed with exit status: 1

I haven't yet been able to try out the fixes mentioned in issue #186 as I haven't yet got passed the configure stage.

sjlongland avatar Aug 12 '17 06:08 sjlongland

I've built it on OpenBSD 6.1, the debconf error message is benign. I've pushed my local changes to build under OpenBSD to https://github.com/dlundquist/sniproxy/compare/openbsd.

$ AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.15 ./autogen.sh 
./setver.sh[35]: debchange: not found
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/local/bin/automake-1.15 line 3936.
$ echo $?
0

I have this build running a pair of OpenBSD firewalls. Also had to build libudns dependency.

dlundquist avatar Aug 12 '17 06:08 dlundquist

Ahh beautiful :-) I just tried building it… and aside from the OpenBSD libev package not including files for pkg-info (or pkg-info not finding them)… it all built just fine.

I found in order to configure, I had to run:

$ LIBEV_CFLAGS=-I/usr/local/include LIBEV_LIBS='-L/usr/local/lib -lev' ./configure 

I didn't bother about libudns since this isn't essential in my deployment (might look at it later though).

sjlongland avatar Aug 12 '17 07:08 sjlongland

A heads up, I had to update the install and the machine running sniproxy; it seems OpenBSD 6.3/amd64 benefits from the above fixes. I cherry-picked a0f89da48bdbb5697b7399603152052fe0cf9069 onto master and that got things going.

sjlongland avatar May 19 '18 09:05 sjlongland