error while compiling for parallel port support

Hi,

I am trying to build OpenOCD with parallel port support on cygwin. I am using following procedure,

  1. ./configure --enable-parport --enable-parport-giveio --disable-parport-ppdev

  2. make

while compiling the source I get following error,

parport.c:51:20: sys/io.h: No such file or directory

parport.c: In function `parport_read’:

parport.c:165: warning: implicit declaration of function `inb’

parport.c: In function `parport_write_data’:

parport.c:185: warning: implicit declaration of function `outb’

parport.c: In function `parport_init’:

parport.c:185: warning: redundant redeclaration of ‘outb’

parport.c:185: warning: previous implicit declaration of ‘outb’ was here

make[3]: *** [parport.lo] Error 1

make[3]: Leaving directory `/home/Anant/openocd-0.2.0/src/jtag’

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/home/Anant/openocd-0.2.0/src’

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/Anant/openocd-0.2.0’

make: *** [all] Error 2

Any suggestions on how this can be avoided?

Regards,

Anant

just wondering. Did you find the missing io.h file?

Not Yet. :frowning:

io.h comes with the ioperm cygwin package.

Cheers

Spen

Thanks Spen. :slight_smile:

I have also added a check to the configure script so this should not happen again.

Cheers

Spen

Thanks Spen. Please add check for “popt” as well.

Cheers!

Anant