On Thu, Oct 05 2017, antonio lapira <ant1...@gmail.com> wrote: > # uname -a > OpenBSD bsd750e.my.domain 6.1 GENERIC.MP#291 i386 > > > ORIGINAL FILE > > # cc > WGXepc.c > /tmp//cckbgvzi.o: In function `port_out': > WGXepc.c:(.text+0x122): undefined reference to `outb' > /tmp//cckbgvzi.o: In function `port_in': > WGXepc.c:(.text+0x2a4): undefined reference to `inb' > collect2: ld returned 1 exit status > # > # > # > > > > Added > #include <machine/pio.h>.
Better include it after all other includes. Getting it to build won't won't solve problems inherent the code in this program. eg we don't have /dev/io. [...] -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE