Hello list.
A few days ago a post was made to the list asking about porting a game called Beret to OpenBSD. After looking through the source code I've decided to give it a try. I believe I have found all of the dependencies but when I try to 'make build' I get the following errors:

===> beret depends on: unzip-* -> unzip-6.0p0
===> beret depends on: libiconv-* -> libiconv-1.14
===> beret depends on: sdl-* -> sdl-1.2.13p15
===> beret depends on: sdl-image-* -> sdl-image-1.2.10p0
===> beret depends on: sdl-mixer-* -> sdl-mixer-1.2.11p0
===> beret depends on: sdl-ttf-* -> sdl-ttf-2.0.10
===> beret depends on: freetype-* -> freetype-1.3.1p3
===> Verifying specs: X11 c iconv SDL SDL_image SDL_mixer SDL_ttf freetype X11 c iconv SDL SDL_image SDL_mixer SDL_ttf freetype ===> found X11.15.0 c.61.0 iconv.6.0 SDL.8.0 SDL_image.3.0 SDL_mixer.4.0 SDL_ttf.8.0 freetype.18.1
===>  Checking files for beret
`/usr/ports/distfiles/beret.zip' is up to date.
>> (SHA256) beret.zip: OK
===>  Extracting for beret
===>  Patching for beret
===>  Configuring for beret
===>  Building for beret
gcc -I/usr/local/include -I/usr/local/include/SDL -Wall -g  -c game.c
gcc -I/usr/local/include -I/usr/local/include/SDL -Wall -g  -c thing.c
gcc -I/usr/local/include -I/usr/local/include/SDL -Wall -g  -c physics.c
gcc -L/usr/local/lib -L/usr/X11R6/lib -lSDLmain -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer -o beret game.o thing.o physics.o /usr/local/lib/libSDL_mixer.so.4.0: warning: strcpy() is almost always misused, please use strlcpy() /usr/local/lib/libSDL_image.so.3.0: warning: sprintf() is often misused, please use snprintf() /usr/local/lib/libSDL_mixer.so.4.0: warning: strcat() is almost always misused, please use strlcat() /usr/local/lib/libsmpeg.so.2.0: warning: vsprintf() is often misused, please use vsnprintf()
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_cond_signal'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_create'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_attr_init'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_exit'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_cancel'
/usr/local/lib/libSDL.so.8.0: undefined reference to `sem_destroy'
/usr/local/lib/libSDL.so.8.0: undefined reference to `sem_wait'
/usr/local/lib/libSDL.so.8.0: undefined reference to `sem_post'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_cond_broadcast'
/usr/local/lib/libSDL.so.8.0: undefined reference to `sem_init'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_sigmask'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_cond_init'
/usr/local/lib/libSDL.so.8.0: undefined reference to `sem_trywait'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_mutexattr_settype'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_mutex_unlock'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_self'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_setcanceltype'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_mutexattr_init'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_mutex_destroy'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_mutex_lock'
/usr/local/lib/libSDL.so.8.0: undefined reference to `sem_getvalue'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_cond_wait'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_cond_destroy'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_mutex_init'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_attr_setdetachstate'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_join'
/usr/local/lib/libSDL.so.8.0: undefined reference to `pthread_cond_timedwait'
collect2: ld returned 1 exit status
*** Error code 1

Stop in /usr/ports/pobj/beret/beret (line 11 of Makefile).
*** Error code 1

Stop in /usr/ports/games/beret (line 2435 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/games/beret (line 2188 of /usr/ports/infrastructure/mk/bsd.port.mk).


I've tried over several arches but all have the same errors. I'm not sure where to go from here. If someone would like to take a look at what I have so far, the download link for the port structure is at http://devio.us/~bcallah/beretwip.zip
I have it in ports/games in my tree.
Any and all help is greatly appreciated. It's my first attempt at porting so I'm sure there are mistakes but I am willing to learn.

Thanks.

~Brian

Reply via email to