[9fans] vx32 @ FreeBSD: -Ilibvxc/include missing?

2008-07-10 Thread Nikolai Saoukh
$ uname -a
FreeBSD NetFaker 7.0-STABLE FreeBSD 7.0-STABLE #13: Wed Jul  2
15:04:57 MSD 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/NETFAKER  i386
$ gmake
gmake: vx32-gcc: Command not found
gmake: vx32-gcc: Command not found
gcc -c -o vxa/vorbis/libvorbis/lib/analysis.ho -Ivxa/vorbis
-Ivxa/vorbis/libogg/include -Ivxa/vorbis/libvorbis/include
-DHAVE_ALLOCA_H -g -O3 -MD -std=gnu99 -I.
vxa/vorbis/libvorbis/lib/analysis.c
In file included from vxa/vorbis/libvorbis/lib/bitrate.h:23,
 from vxa/vorbis/libvorbis/lib/codec_internal.h:56,
 from vxa/vorbis/libvorbis/lib/analysis.c:23:
vxa/vorbis/os.h:62:22: error: alloca.h: No such file or directory
gmake: *** [vxa/vorbis/libvorbis/lib/analysis.ho] Error 1



[9fans] vx32 @ FreeBSD: 9vx/a/chan.c:1220: error: conflicting types for 'memrchr'

2008-07-10 Thread Nikolai Saoukh
$ uname -a
FreeBSD NetFaker 7.0-STABLE FreeBSD 7.0-STABLE #13: Wed Jul  2
15:04:57 MSD 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/NETFAKER  i386
$ gmake
gcc -g -O3 -MD -std=gnu99 -I.  -I. -I9vx -I9vx/a -Wall
-Wno-missing-braces -c -o 9vx/a/chan.o 9vx/a/chan.c
9vx/a/chan.c:1220: error: conflicting types for 'memrchr'
/usr/include/string.h:62: error: previous declaration of 'memrchr' was
here {void*memrchr(const void *, int, size_t) __pure;}



Re: [9fans] vx32 @ FreeBSD: 9vx/a/chan.c:1220: error: conflicting types for 'memrchr'

2008-07-11 Thread Nikolai Saoukh
> FreeBSD added memrchr to its libc a couple of weeks ago. The system one uses
> size_t for the len argument; the 9vx one long. Changing that to unsigned
> long probably would make the compiler happy but would most likely choke the
> linker up. I chickened out and just commented out the definition in chan.c.
> Another approach could be to rename memrchr to memrchr9 or the like. By the
> way, drawterm and inferno are affected by that, too.

This function is used exactly one time in the same file (~30 lines
below). What kind (version) of OS does not have memrchr?