Opened 19 months ago

Last modified 7 weeks ago

#853 accepted Bug / Defect

AIX: down-root: fatal error: err.h: No such file or directory

Reported by: eppesuigvpn Owned by: Gert Döring
Priority: major Milestone:
Component: Generic / unclassified Version: OpenVPN git master branch (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:
Cc:

Description

Compiling source on AIX 7.1 stop with this error message. What is this err.h? I only found the one from openssl, available at /opt/freeware/include/openssl/err.h, but I think this is a different file.

[...]
Making all in down-root
make[4]: Entering directory '/nfs/openvpn/src/plugins/down-root'
/bin/sh ../../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include    -I../../../include -I/opt/freeware/include -g -O2 -std=c99 -MT down-root.lo -MD -MP -MF .deps/down-root.Tpo -c -o down-root.lo down-root.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -I/opt/freeware/include -g -O2 -std=c99 -MT down-root.lo -MD -MP -MF .deps/down-root.Tpo -c down-root.c  -fPIC -DPIC -o .libs/down-root.o
down-root.c:45:17: fatal error: err.h: No such file or directory
 #include <err.h>
                 ^
compilation terminated.
Makefile:514: recipe for target 'down-root.lo' failed
make[4]: *** [down-root.lo] Error 1

Thank you,
Giuseppe

Change History (5)

comment:1 Changed 19 months ago by Gert Döring

Owner: set to Gert Döring
Status: newaccepted
Summary: down-root: fatal error: err.h: No such file or directoryAIX: down-root: fatal error: err.h: No such file or directory

plugin support on AIX is currently broken - apologies. We call some functions that AIX does not have, and have no compat functions yet (plus, the dynamic linking is a bit weird and I had no time to really go fix it).

please configure with configure --disable-plugins for now

comment:2 Changed 19 months ago by eppesuigvpn

Thank you, cron2. Disabling plug-ins I managed to compile the software. I'll test it tomorrow.

Bye,
Giuseppe

comment:3 in reply to:  2 Changed 19 months ago by Gert Döring

Replying to eppesuigvpn:

I'll test it tomorrow.

Note that AIX does not have tun interfaces, so you need to use tap mode.

Not a problem when doing AIX<->AIX or AIX<->Linux/Windows?/etc., but using AIX as an OpenVPN server for Android or iOS will not work (as *those* only do tun, no tap)

comment:4 Changed 7 weeks ago by Antonio

@cron2 should we automatically disable plugins at configure time for AIX? or just with --disable-plugin-down-root?

Or do you think this is something that can/should be fixed?

comment:5 in reply to:  4 Changed 7 weeks ago by Gert Döring

Replying to Antonio:

Or do you think this is something that can/should be fixed?

This is something that can & should be fixed :-)

gert

Note: See TracTickets for help on using tickets.