The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
December 11, 2024, 03:22:32 am
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  RedHat Users:  Help Wanted
« previous next »
Pages: [1] Print
Author Topic: RedHat Users:  Help Wanted  (Read 2002 times)
Nic.
Guest


Email
RedHat Users:  Help Wanted
« on: March 15, 2003, 08:31:17 pm »

If you're running RedHat Linux and have some proficiency with RPM, check this out:

http://uqm.stack.nl/cgi-bin/bugs/show_bug.cgi?id=244

It's a Source RPM for UQM; and it builds a perfectly-functional UQM for me (I use Debian), but I'm interested to know how well it works on genuine RedHat (and other RPM-friendly) platforms.  Specifically, I'm interested in its behaviour when the required prereqs are not installed.

If you can help, please download a copy and report your findings here.  Thanks.
Logged
Robert Penz
Guest


Email
Re: RedHat Users:  Help Wanted
« Reply #1 on: March 23, 2003, 01:29:04 pm »

doesn't compile against a Standard Suse81  (yeah I know that the SDL version is too low, but that doesn't have to do anything with the error message)

rpm -qa | grep SDL
SDL_image-1.2.2-69
SDL_net-1.2.4-86
SDL-1.2.4-171
SDL_ttf-2.0.5-83
SDLmm-0.1.8-395
SDL_image-devel-1.2.2-69
SDL_mixer-1.2.4-55
SDL_sound-0.1.5-142
SDL-devel-1.2.4-171
SDLmm-devel-0.1.8-395

robert@borgwatch:/usr/src/packages/SPECS> rpm -bb uqm.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.7572
+ umask 022
+ cd /usr/src/packages/BUILD
+ rm -rf /var/tmp/uqm-0.2-root
+ cd /usr/src/packages/BUILD
+ rm -rf uqm-0.2-source
+ /bin/gzip -dc /usr/src/packages/SOURCES/uqm-0.2-source.tgz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd uqm-0.2-source
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ echo 'Patch #0 (build-vars.patch):'
Patch #0 (build-vars.patch):
+ patch -p1 -s
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.15336
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd uqm-0.2-source
+ sh build.sh uqm
Building dependancy information...
src/starcon2.c:43:24: warning: SDL.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/3do_blt.c:21:
src/sc2code/libs/graphics/sdl/sdl_common.h:22:17: SDL.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:23:23: SDL_image.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/3do_blt.c:22:
src/sc2code/libs/graphics/sdl/rotozoom.h:21:17: SDL.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/3do_funcs.c:21:
src/sc2code/libs/graphics/sdl/sdl_common.h:22:17: SDL.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:23:23: SDL_image.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/3do_funcs.c:23:
src/sc2code/libs/graphics/sdl/opengl.h:73:24: warning: SDL_opengl.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/3do_getbody.c:26:
src/sc2code/libs/graphics/sdl/sdl_common.h:22:17: SDL.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:23:23: SDL_image.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/3do_getbody.c:28:
src/sc2code/libs/graphics/sdl/rotozoom.h:21:17: SDL.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/dcqueue.c:21:
src/sc2code/libs/graphics/sdl/sdl_common.h:22:17: SDL.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:23:23: SDL_image.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:24:27: SDL_byteorder.h: No such file or directory
src/sc2code/libs/graphics/sdl/dcqueue.c:23:24: SDL_thread.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/opengl.h:22,
                from src/sc2code/libs/graphics/sdl/opengl.c:21:
src/sc2code/libs/graphics/sdl/sdl_common.h:22:17: SDL.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:23:23: SDL_image.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/opengl.c:21:
src/sc2code/libs/graphics/sdl/opengl.h:73:24: warning: SDL_opengl.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/primitives.c:21:
src/sc2code/libs/graphics/sdl/sdl_common.h:22:17: SDL.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:23:23: SDL_image.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/pure.h:22,
                from src/sc2code/libs/graphics/sdl/pure.c:20:
src/sc2code/libs/graphics/sdl/sdl_common.h:22:17: SDL.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:23:23: SDL_image.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/rndzoom.c:54:
src/sc2code/libs/graphics/sdl/sdl_common.h:22:17: SDL.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:23:23: SDL_image.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/rndzoom.c:56:
src/sc2code/libs/graphics/sdl/rotozoom.h:21:17: SDL.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/rotozoom.c:17:
src/sc2code/libs/graphics/sdl/rotozoom.h:21:17: SDL.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/sdl_common.c:21:
src/sc2code/libs/graphics/sdl/sdl_common.h:22:17: SDL.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:23:23: SDL_image.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/sdl_common.c:22:
src/sc2code/libs/graphics/sdl/opengl.h:73:24: warning: SDL_opengl.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/sdl_common.c:24:
src/sc2code/libs/graphics/sdl/rotozoom.h:21:17: SDL.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.c:29:24: SDL_thread.h: No such file or directory
src/sc2code/libs/graphics/sdl/canvas.c:1:17: SDL.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/canvas.c:2:
src/sc2code/libs/graphics/sdl/sdl_common.h:22:17: SDL.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:23:23: SDL_image.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:24:27: SDL_byteorder.h: No such file or directory
src/sc2code/libs/graphics/sdl/bbox.c:1:17: SDL.h: No such file or directory
In file included from src/sc2code/libs/graphics/sdl/2xscalers.c:20:
src/sc2code/libs/graphics/sdl/sdl_common.h:22:17: SDL.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:23:23: SDL_image.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/input/sdl/input.c:21:
src/sc2code/libs/graphics/sdl/sdl_common.h:22:17: SDL.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:23:23: SDL_image.h: No such file or directory
src/sc2code/libs/graphics/sdl/sdl_common.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/sound/mixsdl/sound_mixsdl.h:19,
                from src/sc2code/libs/sound/sound.h:25,
                from src/sc2code/libs/sound/sound_common.c:21:
src/sc2code/libs/sound/mixsdl/mixer.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/sound/mixsdl/sound_mixsdl.h:19,
                from src/sc2code/libs/sound/sound.h:25,
                from src/sc2code/libs/sound/sound.c:20:
src/sc2code/libs/sound/mixsdl/mixer.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/sound/mixsdl/sound_mixsdl.h:19,
                from src/sc2code/libs/sound/sound.h:25,
                from src/sc2code/libs/sound/sfx.c:22:
src/sc2code/libs/sound/mixsdl/mixer.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/sound/mixsdl/sound_mixsdl.h:19,
                from src/sc2code/libs/sound/sound.h:25,
                from src/sc2code/libs/sound/music.c:17:
src/sc2code/libs/sound/mixsdl/mixer.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/sound/mixsdl/sound_mixsdl.h:19,
                from src/sc2code/libs/sound/sound.h:25,
                from src/sc2code/libs/sound/stream.c:18:
src/sc2code/libs/sound/mixsdl/mixer.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/sound/mixsdl/sound_mixsdl.h:19,
                from src/sc2code/libs/sound/sound.h:25,
                from src/sc2code/libs/sound/trackplayer.c:19:
src/sc2code/libs/sound/mixsdl/mixer.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/sound/mixsdl/mixer.c:24:
src/sc2code/libs/sound/mixsdl/mixer.h:24:27: SDL_byteorder.h: No such file or directory
src/sc2code/libs/sound/mixsdl/mixer.c:26:17: SDL.h: No such file or directory
src/sc2code/libs/sound/mixsdl/mixer.c:27:23: SDL_types.h: No such file or directory
src/sc2code/libs/sound/mixsdl/mixer.c:28:24: SDL_thread.h: No such file or directory
src/sc2code/libs/sound/mixsdl/mixer.c:29:27: SDL_byteorder.h: No such file or directory
src/sc2code/libs/sound/mixsdl/mixer.c:30:23: SDL_audio.h: No such file or directory
src/sc2code/libs/sound/mixsdl/mixer.c:31:25: SDL_version.h: No such file or directory
src/sc2code/libs/sound/mixsdl/sound_mixsdl.c:20:17: SDL.h: No such file or directory
In file included from src/sc2code/libs/sound/mixsdl/sound_mixsdl.h:19,
                from src/sc2code/libs/sound/sound.h:25,
                from src/sc2code/libs/sound/mixsdl/sound_mixsdl.c:21:
src/sc2code/libs/sound/mixsdl/mixer.h:24:27: SDL_byteorder.h: No such file or directory
In file included from src/sc2code/libs/threads/thrcommon.h:25,
                from src/sc2code/libs/threads/thrcommon.c:24:
src/sc2code/libs/threads/sdl/sdlthreads.h:23:17: SDL.h: No such file or directory
src/sc2code/libs/threads/sdl/sdlthreads.h:24:24: SDL_thread.h: No such file or directory
In file included from src/sc2code/libs/threads/sdl/sdlthreads.c:20:
src/sc2code/libs/threads/sdl/sdlthreads.h:23:17: SDL.h: No such file or directory
src/sc2code/libs/threads/sdl/sdlthreads.h:24:24: SDL_thread.h: No such file or directory
In file included from src/sc2code/libs/time/timecommon.h:25,
                from src/sc2code/libs/time/timecommon.c:22:
src/sc2code/libs/time/sdl/sdltime.h:23:17: SDL.h: No such file or directory
In file included from src/sc2code/libs/time/sdl/sdltime.c:20:
src/sc2code/libs/time/sdl/sdltime.h:23:17: SDL.h: No such file or directory
gcc -o obj/debug/./src/options.o -c  -I/usr/local/include/SDL -D_REENTRANT -I/usr/local/include/SDL -D_REENTRANT -g -O0 -W -Wall -DDEBUG_TRACK_SEM -DGFXMODULE_SDL -DHAVE_OPENGL  -DSOUNDMODULE_SDL  -I src -I src/sc2code -I src/sc2code/libs src/options.c
gcc -o obj/debug/./src/port.o -c  -I/usr/local/include/SDL -D_REENTRANT -I/usr/local/include/SDL -D_REENTRANT -g -O0 -W -Wall -DDEBUG_TRACK_SEM -DGFXMODULE_SDL -DHAVE_OPENGL  -DSOUNDMODULE_SDL  -I src -I src/sc2code -I src/sc2code/libs src/port.c
gcc -o obj/debug/./src/starcon2.o -c  -I/usr/local/include/SDL -D_REENTRANT -I/usr/local/include/SDL -D_REENTRANT -g -O0 -W -Wall -DDEBUG_TRACK_SEM -DGFXMODULE_SDL -DHAVE_OPENGL  -DSOUNDMODULE_SDL  -I src -I src/sc2code -I src/sc2code/libs src/starcon2.c
src/starcon2.c:43:24: SDL.h: No such file or directory
make: *** [obj/debug/./src/starcon2.o] Error 1
Bad exit status from /var/tmp/rpm-tmp.15336 (%build)
Logged
Nic.
Guest


Email
Re: RedHat Users:  Help Wanted
« Reply #2 on: March 23, 2003, 10:16:59 pm »

Thanks for the report, I really appreciate the help.  The problem you're having can be summed up as: the SRPM expects SDL headers to be installed in /usr/local/include/SDL/; SuSE appears to keep SDL headers in /usr/include/SDL/ instead.  

To get the build process to look in the right place, download/install a patch I wrote for your RPM sources:
http://uqm.stack.nl/cgi-bin/bugs/attachment.cgi?id=68&action=view

This is a patch to make it look in both places (a better solution would be a "hands-free" configure script that can find the proper locations automagically, but that's a ways off yet, and Meep-Eep said such shenanigans as this are fine in the interim)

Also, the actual program binary was not getting included with the RPM, due to a small manual interpretation bug on my part.  Wink

Once the source RPM is installed, run this patch against the RPM source directories to bring the spec and patch files into a state of grace, then attempt to build the RPM again.  Please let me know how it goes.

Thanks again.
« Last Edit: March 23, 2003, 10:49:10 pm by Nic. » Logged
Nic.
Guest


Email
Re: RedHat Users:  Help Wanted
« Reply #3 on: May 12, 2003, 11:30:32 am »

Update:  My new job (whoo-hoo!) provides me with unfettered access to many different platforms, so I was finally able to -- after work, of course Wink -- test this RPM against a "genuine" RedHat installation (8.0, to be exact) and have adjusted the RPM so that it verifies dependencies and builds itself properly.  Yum.

See Bugzilla Bug #244 for the Source RPM, and please let me know if you have any issues with getting it to emit an RPM file.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!