[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#47789: Programs that include <sys/io.h> cannot be build with current c++



Package: libc6.1-dev
Version: 2.1.2-5

Symptom: c++ -O2 sys_io_h.cc (program attached) gives
In file included from /usr/include/asm/io.h:5,
                 from /usr/include/sys/io.h:27,
		 from sys_io_h.cc:2:
/usr/include/asm/system.h: In function `long
	unsigned int __xchg(long unsigned int, volatile void *, int)':
/usr/include/asm/system.h:339: ANSI C++
	forbids implicit conversion from `void *' in argument passing
/usr/include/asm/system.h:341: ANSI C++
	forbids implicit conversion from `void *' in argument passing

Headerfile needs some editing.

Thanks,

B.

--
B. Warmerdam                                              GNU/Debian Linux
bartw@xs4all.nl, bartw@debian.org (Keyid: 10A0FDD1)       ----------------
#include <stdio.h>
#include <sys/io.h>

int main()
{
	exit(0);
}

Reply to: