hello there!

i tried to compile xmame-0.61.1-pr7 with icc-6.0.1.304 under freebsd-4.6,
but get several problems.
here are some things i found out:

1. xmame.X11
to build this you must enable all icc related stuff in the makefile and
disable the gcc stuff. also enable "MY_CPU = i386_noasm", because vector.c does
not compile with "MY_CPU = i386" (i get the following error:
src/vidhrdw/vector.c(689): (col. 22) catastrophic error: unknown register name %cc in 
asm
statement). 

now you get a xmame with a little noticable speed increase...

2. xmame.SDL
to build this you must do a bit more:
don't forget to add "LIBS    = -L/usr/local/lib/pth" in the makefile,
because the linker searches for libpthread. now you get the following output
/usr/local/lib/libSDL-1.1.so: undefined reference to `sem_destroy'
/usr/local/lib/libSDL-1.1.so: undefined reference to `sem_wait'
/usr/local/lib/libSDL-1.1.so: undefined reference to `sem_post'
/usr/local/lib/libSDL-1.1.so: undefined reference to `sem_init'
/usr/local/lib/libSDL-1.1.so: undefined reference to `sem_trywait'
/usr/local/lib/libSDL-1.1.so: undefined reference to `sem_getvalue'
gmake: *** [xmame.SDL] Error 1

hmm, "man sem_init" brought me:
NAME
     sem_init - initialize an unnamed semaphore

LIBRARY
     Reentrant C Library (libc_r, -pthread)

SYNOPSIS
     #include <semaphore.h>

     int
     sem_init(sem_t *sem, int pshared, unsigned int value);
...

so i add the following to src/unix/unix.mak "LIBS.SDL = `sdl-config --libs`
-lc_r" (i found no better place to add libc_r).
now it links alltogther, but i get some warnings:
/usr/lib/libc.so: WARNING!  setkey(3) not present in the system!
/usr/lib/libc.so: warning: this program uses gets(), which is unsafe.
/usr/lib/libc.so: warning: mktemp() possibly used unsafely; consider using
mkstemp()
/usr/lib/libc.so: WARNING!  des_setkey(3) not present in the system!
/usr/lib/libc.so: WARNING!  encrypt(3) not present in the system!
/usr/lib/libc.so: warning: tmpnam() possibly used unsafely; consider using
mkstemp()
/usr/lib/libc.so: warning: this program uses f_prealloc(), which is not
recommended.
/usr/lib/libc.so: WARNING!  des_cipher(3) not present in the system!
/usr/lib/libc.so: warning: tempnam() possibly used unsafely; consider using
mkstemp()
the binary runs...
has anybody an idea, how this could be done more cleanly???

cheers
unicorn

ps: sorry for my poor english...

-- 
Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX w�hlen -
und tolle Preise absahnen! http://www.onlinestar.de


_______________________________________________
Xmame mailing list
[EMAIL PROTECTED]
http://toybox.twisted.org.uk/mailman/listinfo/xmame

Reply via email to