Compilation problems - SDLgears.c

I downloaded SDL-devel-1.2.2-1.i386.rpm and installed on my mdk8.0
machine
with working 16bpp i810e gfx in KDE/X 4.0.3

I tracked one error down to -lm missing in the LDFLAGS of the Makefile
generated by ./configure

But there are further errors see the very end of this email for the log.

I have been unable to work out what these errors are, is it the auto
generated makefile or something else on my system?
Are there any other lbis required? I have GLX working but GLUT is broke
atm, will that effect it? i thought glut was not used in sdl but am not
sure

someone told me it was -static linked but i checked and the output
makefile was not, i attatch my Makefile
note that LDFLAGS was modified by me

any help appreciated.

JG

[jg at jg SDLgears-1.0.2]$ make
gcc -g -O2 -I/usr/include/SDL -D_REENTRANT -lm -o SDLgears SDLgears.o
-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -L/usr/X11R6/lib -lGL
/usr/lib/libSDL.a(SDL_esdaudio.lo): In function Audio_Available': SDL_esdaudio.lo(.text+0x19): undefined reference toesd_open_sound’
SDL_esdaudio.lo(.text+0x2b): undefined reference to esd_close' /usr/lib/libSDL.a(SDL_esdaudio.lo): In functionESD_OpenAudio’:
SDL_esdaudio.lo(.text+0x3f0): undefined reference to esd_play_stream' /usr/lib/libSDL.a(SDL_x11yuv.lo): In functionX11_CreateYUVOverlay’:
SDL_x11yuv.lo(.text+0x35): undefined reference to XvQueryExtension' SDL_x11yuv.lo(.text+0x77): undefined reference toXvQueryAdaptors’
SDL_x11yuv.lo(.text+0x17b): undefined reference to XvListImageFormats' SDL_x11yuv.lo(.text+0x1e9): undefined reference toXvGrabPort’
SDL_x11yuv.lo(.text+0x274): undefined reference to XvUngrabPort' SDL_x11yuv.lo(.text+0x2d2): undefined reference toXvUngrabPort’
SDL_x11yuv.lo(.text+0x320): undefined reference to XvShmCreateImage' SDL_x11yuv.lo(.text+0x3d2): undefined reference toXvShmCreateImage’
/usr/lib/libSDL.a(SDL_x11yuv.lo): In function X11_DisplayYUVOverlay': SDL_x11yuv.lo(.text+0x590): undefined reference toXvShmPutImage’
/usr/lib/libSDL.a(SDL_x11yuv.lo): In function X11_FreeYUVOverlay': SDL_x11yuv.lo(.text+0x5e6): undefined reference toXvUngrabPort’
/usr/lib/libSDL.a(SDL_dgavideo.lo): In function DGA_Available': SDL_dgavideo.lo(.text+0x79): undefined reference toXDGAQueryExtension’
SDL_dgavideo.lo(.text+0x8e): undefined reference to XDGAQueryVersion' SDL_dgavideo.lo(.text+0xa8): undefined reference toXDGAOpenFramebuffer’
SDL_dgavideo.lo(.text+0xbd): undefined reference to
XDGACloseFramebuffer' /usr/lib/libSDL.a(SDL_dgavideo.lo): In functionget_video_size’:
SDL_dgavideo.lo(.text+0x412): undefined reference to
XDGAGetMappedMemory' /usr/lib/libSDL.a(SDL_dgavideo.lo): In functionDGA_VideoInit’:
SDL_dgavideo.lo(.text+0x5ce): undefined reference to
XDGAQueryExtension' SDL_dgavideo.lo(.text+0x5ee): undefined reference toXDGAQueryVersion’
SDL_dgavideo.lo(.text+0x741): undefined reference to
XDGAOpenFramebuffer' SDL_dgavideo.lo(.text+0x78a): undefined reference toXDGAQueryModes’
/usr/lib/libSDL.a(SDL_dgavideo.lo): In function DGA_SetVideoMode': SDL_dgavideo.lo(.text+0x8e3): undefined reference toXDGAQueryModes’
SDL_dgavideo.lo(.text+0x991): undefined reference to XDGASetMode' SDL_dgavideo.lo(.text+0xa8a): undefined reference toXDGACreateColormap’
SDL_dgavideo.lo(.text+0xafa): undefined reference to
XDGACreateColormap' SDL_dgavideo.lo(.text+0xb29): undefined reference toXDGAInstallColormap’
SDL_dgavideo.lo(.text+0xb73): undefined reference to XDGASetViewport' SDL_dgavideo.lo(.text+0xc3b): undefined reference toXDGASelectInput’
/usr/lib/libSDL.a(SDL_dgavideo.lo): In function DGA_FillHWRect': SDL_dgavideo.lo(.text+0x100d): undefined reference toXDGAGetViewportStatus’
SDL_dgavideo.lo(.text+0x10bd): undefined reference to
XDGAFillRectangle' /usr/lib/libSDL.a(SDL_dgavideo.lo): In functionHWAccelBlit’:
SDL_dgavideo.lo(.text+0x1169): undefined reference to
XDGAGetViewportStatus' SDL_dgavideo.lo(.text+0x12b0): undefined reference toXDGACopyTransparentArea’
SDL_dgavideo.lo(.text+0x12eb): undefined reference to XDGACopyArea' /usr/lib/libSDL.a(SDL_dgavideo.lo): In functionDGA_LockHWSurface’:
SDL_dgavideo.lo(.text+0x1400): undefined reference to XDGASync' SDL_dgavideo.lo(.text+0x1445): undefined reference toXDGAGetViewportStatus’
SDL_dgavideo.lo(.text+0x148e): undefined reference to XDGASync' /usr/lib/libSDL.a(SDL_dgavideo.lo): In functionDGA_FlipHWSurface’:
SDL_dgavideo.lo(.text+0x154f): undefined reference to XDGASync' SDL_dgavideo.lo(.text+0x1593): undefined reference toXDGAGetViewportStatus’
SDL_dgavideo.lo(.text+0x15d1): undefined reference to XDGASetViewport' /usr/lib/libSDL.a(SDL_dgavideo.lo): In functionDGA_VideoQuit’:
SDL_dgavideo.lo(.text+0x193f): undefined reference to
XDGACloseFramebuffer' SDL_dgavideo.lo(.text+0x1972): undefined reference toXDGASetMode’
/usr/lib/libSDL.a(SDL_x11dga.lo): In function X11_EnableDGAMouse': SDL_x11dga.lo(.text+0xae): undefined reference toXF86DGAQueryExtension’
SDL_x11dga.lo(.text+0xcf): undefined reference to XF86DGAQueryVersion' SDL_x11dga.lo(.text+0xf4): undefined reference toXF86DGADirectVideo’
/usr/lib/libSDL.a(SDL_x11dga.lo): In function X11_CheckDGAMouse': SDL_x11dga.lo(.text+0x14d): undefined reference toXF86DGAQueryDirectVideo’
SDL_x11dga.lo(.text+0x171): undefined reference to XF86DGADirectVideo' /usr/lib/libSDL.a(SDL_x11dga.lo): In functionX11_DisableDGAMouse’:
SDL_x11dga.lo(.text+0x1b4): undefined reference to XF86DGADirectVideo' /usr/lib/libSDL.a(SDL_x11gamma.lo): In functionX11_SetGammaNoLock’:
SDL_x11gamma.lo(.text+0x118): undefined reference to
XF40VidModeSetGamma' /usr/lib/libSDL.a(SDL_x11gamma.lo): In functionX11_GetGammaNoLock’:
SDL_x11gamma.lo(.text+0x223): undefined reference to
XF40VidModeGetGamma' /usr/lib/libSDL.a(SDL_x11modes.lo): In functionXF40VidModeGetModeInfo’:
SDL_x11modes.lo(.text+0x25): undefined reference to
XF40VidModeGetModeLine' /usr/lib/libSDL.a(SDL_x11modes.lo): In functionsave_mode’:
SDL_x11modes.lo(.text+0xa4): undefined reference to
XF40VidModeGetViewPort' /usr/lib/libSDL.a(SDL_x11modes.lo): In functionrestore_mode’:
SDL_x11modes.lo(.text+0xeb): undefined reference to
XF40VidModeGetModeLine' SDL_x11modes.lo(.text+0x12b): undefined reference toXF40VidModeSwitchToMode’
SDL_x11modes.lo(.text+0x162): undefined reference to
XF40VidModeSetViewPort' /usr/lib/libSDL.a(SDL_x11modes.lo): In functionset_best_resolution’:
SDL_x11modes.lo(.text+0x1e5): undefined reference to
XF40VidModeGetModeLine' SDL_x11modes.lo(.text+0x211): undefined reference toXF40VidModeGetAllModeLines’
SDL_x11modes.lo(.text+0x2a8): undefined reference to
XF40VidModeSwitchToMode' /usr/lib/libSDL.a(SDL_x11modes.lo): In functionget_real_resolution’:
SDL_x11modes.lo(.text+0x308): undefined reference to
XF40VidModeGetModeLine' /usr/lib/libSDL.a(SDL_x11modes.lo): In functionX11_GetVideoModes’:
SDL_x11modes.lo(.text+0x6aa): undefined reference to
XF40VidModeQueryExtension' SDL_x11modes.lo(.text+0x6c8): undefined reference toXF40VidModeQueryVersion’
SDL_x11modes.lo(.text+0x704): undefined reference to
XF40VidModeGetAllModeLines' /usr/lib/libSDL.a(SDL_x11modes.lo): In functionX11_EnterFullScreen’:
SDL_x11modes.lo(.text+0xde5): undefined reference to
XF40VidModeLockModeSwitch' /usr/lib/libSDL.a(SDL_x11modes.lo): In functionX11_LeaveFullScreen’:
SDL_x11modes.lo(.text+0xee2): undefined reference to
XF40VidModeLockModeSwitch' /usr/lib/libSDL.a(SDL_dgaevents.lo): In functionDGA_DispatchEvent’:
SDL_dgaevents.lo(.text+0xdd): undefined reference to
`XDGAKeyEventToXKeyEvent’
collect2: ld returned 1 exit status
make: *** [SDLgears] Error 1
[jg at jg SDLgears-1.0.2]$–

Hypermedia Research Centre
Sanyo R&D Headquarters, Tokyo
http://www.sanyo.co.jp/R_and_D/3dm/
Tel: +81 (0)3 5803 3566
Fax: +81 (0)3 5803 3640
Email: jg at tk.hm.rd.sanyo.co.jp
Please use open standard file formats for attachments
-------------- next part --------------

Generated automatically from Makefile.in by configure.

Makefile.in generated automatically by automake 1.4a from Makefile.am

Copyright © 1994, 1995-8, 1999 Free Software Foundation, Inc.

This Makefile.in is free software; the Free Software Foundation

gives unlimited permission to copy and/or distribute it,

with or without modifications, as long as this notice is preserved.

This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY, to the extent permitted by law; without

even the implied warranty of MERCHANTABILITY or FITNESS FOR A

PARTICULAR PURPOSE.

SHELL = /bin/sh

srcdir = .
top_srcdir = .
prefix = /usr/local
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include

DESTDIR =

pkgdatadir = $(datadir)/SDLgears
pkglibdir = $(libdir)/SDLgears
pkgincludedir = $(includedir)/SDLgears

top_builddir = .

ACLOCAL = aclocal
AUTOCONF = autoconf
AUTOMAKE = automake
AUTOHEADER = autoheader

INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
INSTALL_STRIP_FLAG =
transform = s,x,x,

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = i686-pc-linux-gnu
host_triplet = i686-pc-linux-gnu
CC = gcc
GLUT_LIBS = -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -L/usr/X11R6/lib -lGL -lGLU -lglut
GL_LIBS = -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -L/usr/X11R6/lib -lGL
MAKEINFO = makeinfo
MATHLIB = -lm
PACKAGE = SDLgears
SDL_CFLAGS = -I/usr/include/SDL -D_REENTRANT
SDL_CONFIG = /usr/bin/sdl-config
SDL_LIBS = -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
VERSION = 1.0.2

EXTRA_DIST = autogen.sh gears.c

bin_PROGRAMS = SDLgears gears

SDLgears_LDADD = -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -L/usr/X11R6/lib -lGL
gears_LDADD = -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -L/usr/X11R6/lib -lGL -lGLU -lglut
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
PROGRAMS = $(bin_PROGRAMS)

DEFS = -DPACKAGE=“SDLgears” -DVERSION=“1.0.2” -I. -I$(srcdir)
CPPFLAGS =
LDFLAGS = -lm
LIBS =
SDLgears_SOURCES = SDLgears.c
SDLgears_OBJECTS = SDLgears.o
SDLgears_DEPENDENCIES =
SDLgears_LDFLAGS =
gears_SOURCES = gears.c
gears_OBJECTS = gears.o
gears_DEPENDENCIES =
gears_LDFLAGS =
CFLAGS = -g -O2 -I/usr/include/SDL -D_REENTRANT
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
DIST_COMMON = README Makefile.am Makefile.in aclocal.m4 config.guess
config.sub configure configure.in install-sh missing mkinstalldirs

DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TAR = gtar
GZIP_ENV = --best
SOURCES = SDLgears.c gears.c
OBJECTS = SDLgears.o gears.o

all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .o .s
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-deps Makefile

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir)
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

$(ACLOCAL_M4): configure.in
cd $(srcdir) && $(ACLOCAL)

config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
cd $(srcdir) && $(AUTOCONF)

mostlyclean-binPROGRAMS:

clean-binPROGRAMS:
-test -z “$(bin_PROGRAMS)” || rm -f $(bin_PROGRAMS)

distclean-binPROGRAMS:

maintainer-clean-binPROGRAMS:

install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(bindir)
@list=’$(bin_PROGRAMS)’; for p in $$list; do
if test -f $$p; then
echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'";
$(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/';
else :; fi;
done

uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
list=’$(bin_PROGRAMS)’; for p in $$list; do
rm -f $(DESTDIR)$(bindir)/echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/';
done

.c.o:
$(COMPILE) -c $<

.s.o:
$(COMPILE) -c $<

.S.o:
$(COMPILE) -c $<

mostlyclean-compile:
-rm -f *.o core *.core

clean-compile:

distclean-compile:
-rm -f *.tab.c

maintainer-clean-compile:

SDLgears: $(SDLgears_OBJECTS) $(SDLgears_DEPENDENCIES)
@rm -f SDLgears
$(LINK) $(SDLgears_LDFLAGS) $(SDLgears_OBJECTS) $(SDLgears_LDADD) $(LIBS)

gears: $(gears_OBJECTS) $(gears_DEPENDENCIES)
@rm -f gears
$(LINK) $(gears_LDFLAGS) $(gears_OBJECTS) $(gears_LDADD) $(LIBS)

tags: TAGS

ID: $(HEADERS) $(SOURCES) $(LISP)
list=’$(SOURCES) $(HEADERS)’;
unique=for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }';
here=pwd && cd $(srcdir)
&& mkid -f$$here/ID $$unique $(LISP)

TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
tags=;
here=pwd;
list=’$(SOURCES) $(HEADERS)’;
unique=for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }';
test -z “$(ETAGS_ARGS)$$unique$(LISP)$$tags”
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)

mostlyclean-tags:

clean-tags:

distclean-tags:
-rm -f TAGS ID

maintainer-clean-tags:

distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)

This target untars the dist file and tries a VPATH configuration. Then

it guarantees that the distribution is self-contained by making another

tarfile.

distcheck: dist
-rm -rf $(distdir)
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
mkdir $(distdir)/=build
mkdir $(distdir)/=inst
dc_install_base=cd $(distdir)/=inst && pwd;
cd $(distdir)/=build
&& …/configure --srcdir=… --prefix=$$dc_install_base
&& $(MAKE) $(AM_MAKEFLAGS)
&& $(MAKE) $(AM_MAKEFLAGS) dvi
&& $(MAKE) $(AM_MAKEFLAGS) check
&& $(MAKE) $(AM_MAKEFLAGS) install
&& $(MAKE) $(AM_MAKEFLAGS) installcheck
&& $(MAKE) $(AM_MAKEFLAGS) dist
-rm -rf $(distdir)
@banner="$(distdir).tar.gz is ready for distribution";
dashes=echo "$$banner" | sed s/./=/g;
echo “$$dashes”;
echo “$$banner”;
echo "$$dashes"
dist: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
dist-all: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
distdir: $(DISTFILES)
-rm -rf $(distdir)
mkdir $(distdir)
-chmod 777 $(distdir)
@for file in $(DISTFILES); do
d=$(srcdir);
if test -d $$d/$$file; then
cp -pr $$d/$$file $(distdir)/$$file;
else
test -f $(distdir)/$$file
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null
|| cp -p $$d/$$file $(distdir)/$$file || :;
fi;
done
SDLgears.o: SDLgears.c
gears.o: gears.c

info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: all-am
check: check-am
installcheck-am:
installcheck: installcheck-am
install-exec-am: install-binPROGRAMS
install-exec: install-exec-am

install-data-am:
install-data: install-data-am

install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am: uninstall-binPROGRAMS
uninstall: uninstall-am
all-am: Makefile $(PROGRAMS)
all-redirect: all-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
installdirs:
$(mkinstalldirs) $(DESTDIR)$(bindir)

mostlyclean-generic:

clean-generic:

distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*

maintainer-clean-generic:
mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile
mostlyclean-tags mostlyclean-generic

mostlyclean: mostlyclean-am

clean-am: clean-binPROGRAMS clean-compile clean-tags clean-generic
mostlyclean-am

clean: clean-am

distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags
distclean-generic clean-am

distclean: distclean-am
-rm -f config.status

maintainer-clean-am: maintainer-clean-binPROGRAMS
maintainer-clean-compile maintainer-clean-tags
maintainer-clean-generic distclean-am
@echo “This command is intended for maintainers to use;”
@echo “it deletes files that may require special tools to rebuild.”

maintainer-clean: maintainer-clean-am
-rm -f config.status

.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS
mostlyclean-compile distclean-compile clean-compile
maintainer-clean-compile tags mostlyclean-tags distclean-tags
clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check
check-am installcheck-am installcheck install-exec-am install-exec
install-data-am install-data install-am install uninstall-am uninstall
all-redirect all-am all installdirs mostlyclean-generic
distclean-generic clean-generic maintainer-clean-generic clean
mostlyclean distclean maintainer-clean

Tell versions [3.59,3.63) of GNU make to not export all variables.

Otherwise a system limit (for SysV at least) may be exceeded.

.NOEXPORT:

I have the same problem… I’ve looked to see what’s
wrong, but can’t find anything (which means nothing,
I’m a Linux newbie =). Do any of the Linux veterans
here know what’s going on?

Now for a (semi) on-topic rant:

Mandrake is touted as a beginner distro…and while
it’s easy to install and configure, I’ve found that it
has HORRIBLE compatibility problems when trying to
compile programs…not something a windows convert
would want to deal with when they realize they have to
compile something they download.

Mike

— J Grant wrote:

I downloaded SDL-devel-1.2.2-1.i386.rpm and
installed on my mdk8.0
machine
with working 16bpp i810e gfx in KDE/X 4.0.3

I tracked one error down to -lm missing in the
LDFLAGS of the Makefile
generated by ./configure

But there are further errors see the very end of
this email for the log.

I have been unable to work out what these errors
are, is it the auto
generated makefile or something else on my system?
Are there any other lbis required? I have GLX
working but GLUT is broke
atm, will that effect it? i thought glut was not
used in sdl but am not
sure

someone told me it was -static linked but i checked
and the output
makefile was not, i attatch my Makefile
note that LDFLAGS was modified by me

any help appreciated.

JG

[jg at jg SDLgears-1.0.2]$ make
gcc -g -O2 -I/usr/include/SDL -D_REENTRANT -lm -o
SDLgears SDLgears.o
-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
-L/usr/X11R6/lib -lGL
/usr/lib/libSDL.a(SDL_esdaudio.lo): In function
Audio_Available': SDL_esdaudio.lo(.text+0x19): undefined reference to esd_open_sound’
SDL_esdaudio.lo(.text+0x2b): undefined reference to
esd_close' /usr/lib/libSDL.a(SDL_esdaudio.lo): In function ESD_OpenAudio’:
SDL_esdaudio.lo(.text+0x3f0): undefined reference to
esd_play_stream' /usr/lib/libSDL.a(SDL_x11yuv.lo): In function X11_CreateYUVOverlay’:
SDL_x11yuv.lo(.text+0x35): undefined reference to
XvQueryExtension' SDL_x11yuv.lo(.text+0x77): undefined reference to XvQueryAdaptors’
SDL_x11yuv.lo(.text+0x17b): undefined reference to
XvListImageFormats' SDL_x11yuv.lo(.text+0x1e9): undefined reference to XvGrabPort’
SDL_x11yuv.lo(.text+0x274): undefined reference to
XvUngrabPort' SDL_x11yuv.lo(.text+0x2d2): undefined reference to XvUngrabPort’
SDL_x11yuv.lo(.text+0x320): undefined reference to
XvShmCreateImage' SDL_x11yuv.lo(.text+0x3d2): undefined reference to XvShmCreateImage’
/usr/lib/libSDL.a(SDL_x11yuv.lo): In function
X11_DisplayYUVOverlay': SDL_x11yuv.lo(.text+0x590): undefined reference to XvShmPutImage’
/usr/lib/libSDL.a(SDL_x11yuv.lo): In function
X11_FreeYUVOverlay': SDL_x11yuv.lo(.text+0x5e6): undefined reference to XvUngrabPort’
/usr/lib/libSDL.a(SDL_dgavideo.lo): In function
DGA_Available': SDL_dgavideo.lo(.text+0x79): undefined reference to XDGAQueryExtension’
SDL_dgavideo.lo(.text+0x8e): undefined reference to
XDGAQueryVersion' SDL_dgavideo.lo(.text+0xa8): undefined reference to XDGAOpenFramebuffer’
SDL_dgavideo.lo(.text+0xbd): undefined reference to
XDGACloseFramebuffer' /usr/lib/libSDL.a(SDL_dgavideo.lo): In function get_video_size’:
SDL_dgavideo.lo(.text+0x412): undefined reference to
XDGAGetMappedMemory' /usr/lib/libSDL.a(SDL_dgavideo.lo): In function DGA_VideoInit’:
SDL_dgavideo.lo(.text+0x5ce): undefined reference to
XDGAQueryExtension' SDL_dgavideo.lo(.text+0x5ee): undefined reference to XDGAQueryVersion’
SDL_dgavideo.lo(.text+0x741): undefined reference to
XDGAOpenFramebuffer' SDL_dgavideo.lo(.text+0x78a): undefined reference to XDGAQueryModes’
/usr/lib/libSDL.a(SDL_dgavideo.lo): In function
DGA_SetVideoMode': SDL_dgavideo.lo(.text+0x8e3): undefined reference to XDGAQueryModes’
SDL_dgavideo.lo(.text+0x991): undefined reference to
XDGASetMode' SDL_dgavideo.lo(.text+0xa8a): undefined reference to XDGACreateColormap’
SDL_dgavideo.lo(.text+0xafa): undefined reference to
XDGACreateColormap' SDL_dgavideo.lo(.text+0xb29): undefined reference to XDGAInstallColormap’
SDL_dgavideo.lo(.text+0xb73): undefined reference to
XDGASetViewport' SDL_dgavideo.lo(.text+0xc3b): undefined reference to XDGASelectInput’
/usr/lib/libSDL.a(SDL_dgavideo.lo): In function
DGA_FillHWRect': SDL_dgavideo.lo(.text+0x100d): undefined reference to XDGAGetViewportStatus’
SDL_dgavideo.lo(.text+0x10bd): undefined reference
to
XDGAFillRectangle' /usr/lib/libSDL.a(SDL_dgavideo.lo): In function HWAccelBlit’:
SDL_dgavideo.lo(.text+0x1169): undefined reference
to
XDGAGetViewportStatus' SDL_dgavideo.lo(.text+0x12b0): undefined reference to XDGACopyTransparentArea’
SDL_dgavideo.lo(.text+0x12eb): undefined reference
to XDGACopyArea' /usr/lib/libSDL.a(SDL_dgavideo.lo): In function DGA_LockHWSurface’:
SDL_dgavideo.lo(.text+0x1400): undefined reference
to XDGASync' SDL_dgavideo.lo(.text+0x1445): undefined reference to XDGAGetViewportStatus’
SDL_dgavideo.lo(.text+0x148e): undefined reference
to XDGASync' /usr/lib/libSDL.a(SDL_dgavideo.lo): In function DGA_FlipHWSurface’:
SDL_dgavideo.lo(.text+0x154f): undefined reference
to XDGASync' SDL_dgavideo.lo(.text+0x1593): undefined reference to XDGAGetViewportStatus’
SDL_dgavideo.lo(.text+0x15d1): undefined reference
to XDGASetViewport' /usr/lib/libSDL.a(SDL_dgavideo.lo): In function DGA_VideoQuit’:
SDL_dgavideo.lo(.text+0x193f): undefined reference
to
XDGACloseFramebuffer' SDL_dgavideo.lo(.text+0x1972): undefined reference to XDGASetMode’
/usr/lib/libSDL.a(SDL_x11dga.lo): In function
X11_EnableDGAMouse': SDL_x11dga.lo(.text+0xae): undefined reference to XF86DGAQueryExtension’
SDL_x11dga.lo(.text+0xcf): undefined reference to
XF86DGAQueryVersion' SDL_x11dga.lo(.text+0xf4): undefined reference to XF86DGADirectVideo’
/usr/lib/libSDL.a(SDL_x11dga.lo): In function
X11_CheckDGAMouse': SDL_x11dga.lo(.text+0x14d): undefined reference to XF86DGAQueryDirectVideo’
SDL_x11dga.lo(.text+0x171): undefined reference to
XF86DGADirectVideo' /usr/lib/libSDL.a(SDL_x11dga.lo): In function X11_DisableDGAMouse’:
SDL_x11dga.lo(.text+0x1b4): undefined reference to
XF86DGADirectVideo' /usr/lib/libSDL.a(SDL_x11gamma.lo): In function X11_SetGammaNoLock’:
SDL_x11gamma.lo(.text+0x118): undefined reference to
XF40VidModeSetGamma' /usr/lib/libSDL.a(SDL_x11gamma.lo): In function X11_GetGammaNoLock’:
SDL_x11gamma.lo(.text+0x223): undefined reference to
XF40VidModeGetGamma' /usr/lib/libSDL.a(SDL_x11modes.lo): In function XF40VidModeGetModeInfo’:
SDL_x11modes.lo(.text+0x25): undefined reference to
XF40VidModeGetModeLine' /usr/lib/libSDL.a(SDL_x11modes.lo): In function save_mode’:
SDL_x11modes.lo(.text+0xa4): undefined reference to
XF40VidModeGetViewPort' /usr/lib/libSDL.a(SDL_x11modes.lo): In function restore_mode’:
SDL_x11modes.lo(.text+0xeb): undefined reference to
XF40VidModeGetModeLine' SDL_x11modes.lo(.text+0x12b): undefined reference to XF40VidModeSwitchToMode’
SDL_x11modes.lo(.text+0x162): undefined reference to
XF40VidModeSetViewPort' /usr/lib/libSDL.a(SDL_x11modes.lo): In function set_best_resolution’:

=== message truncated ===> # Generated automatically
from Makefile.in by

configure.

Makefile.in generated automatically by automake

1.4a from Makefile.am

Copyright © 1994, 1995-8, 1999 Free Software

Foundation, Inc.

This Makefile.in is free software; the Free

Software Foundation

gives unlimited permission to copy and/or

distribute it,

with or without modifications, as long as this

notice is preserved.

This program is distributed in the hope that it

will be useful,

but WITHOUT ANY WARRANTY, to the extent permitted

by law; without

even the implied warranty of MERCHANTABILITY or

FITNESS FOR A

PARTICULAR PURPOSE.

SHELL = /bin/sh

srcdir = .
top_srcdir = .
prefix = /usr/local
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include

DESTDIR =

pkgdatadir = $(datadir)/SDLgears
pkglibdir = $(libdir)/SDLgears
pkgincludedir = $(includedir)/SDLgears

top_builddir = .

ACLOCAL = aclocal
AUTOCONF = autoconf
AUTOMAKE = automake
AUTOHEADER = autoheader

INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
INSTALL_STRIP_FLAG =
transform = s,x,x,

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = i686-pc-linux-gnu
host_triplet = i686-pc-linux-gnu
CC = gcc
GLUT_LIBS = -L/usr/lib -Wl,-rpath,/usr/lib -lSDL
-lpthread -L/usr/X11R6/lib -lGL -lGLU -lglut
GL_LIBS = -L/usr/lib -Wl,-rpath,/usr/lib -lSDL
-lpthread -L/usr/X11R6/lib -lGL
MAKEINFO = makeinfo
MATHLIB = -lm
PACKAGE = SDLgears
SDL_CFLAGS = -I/usr/include/SDL -D_REENTRANT
SDL_CONFIG = /usr/bin/sdl-config
SDL_LIBS = -L/usr/lib -Wl,-rpath,/usr/lib -lSDL
-lpthread
VERSION = 1.0.2

EXTRA_DIST = autogen.sh gears.c

bin_PROGRAMS = SDLgears gears

SDLgears_LDADD = -L/usr/lib -Wl,-rpath,/usr/lib
-lSDL -lpthread -L/usr/X11R6/lib -lGL
gears_LDADD = -L/usr/lib -Wl,-rpath,/usr/lib -lSDL
-lpthread -L/usr/X11R6/lib -lGL -lGLU -lglut
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
PROGRAMS = $(bin_PROGRAMS)

DEFS = -DPACKAGE=“SDLgears” -DVERSION=“1.0.2”
-I. -I$(srcdir)
CPPFLAGS =
LDFLAGS = -lm
LIBS =
SDLgears_SOURCES = SDLgears.c
SDLgears_OBJECTS = SDLgears.o
SDLgears_DEPENDENCIES =
SDLgears_LDFLAGS =
gears_SOURCES = gears.c
gears_OBJECTS = gears.o
gears_DEPENDENCIES =
gears_LDFLAGS =
CFLAGS = -g -O2 -I/usr/include/SDL -D_REENTRANT
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS)
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o
$@
DIST_COMMON = README Makefile.am Makefile.in
aclocal.m4 config.guess
config.sub configure configure.in install-sh missing
mkinstalldirs

DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS)
$(TEXINFOS) $(EXTRA_DIST)

TAR = gtar
GZIP_ENV = --best
SOURCES = SDLgears.c gears.c
OBJECTS = SDLgears.o gears.o

all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .o .s
$(srcdir)/Makefile.in: Makefile.am
$(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --foreign
–include-deps Makefile

Makefile: $(srcdir)/Makefile.in
$(top_builddir)/config.status
cd $(top_builddir)
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL)
./config.status

$(ACLOCAL_M4): configure.in
cd $(srcdir) && $(ACLOCAL)

config.status: $(srcdir)/configure
$(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.in
$(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
cd $(srcdir) && $(AUTOCONF)

mostlyclean-binPROGRAMS:

clean-binPROGRAMS:
-test -z “$(bin_PROGRAMS)” || rm -f $(bin_PROGRAMS)

distclean-binPROGRAMS:

maintainer-clean-binPROGRAMS:

install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(bindir)
@list=’$(bin_PROGRAMS)’; for p in $$list; do
if test -f $$p; then
echo " $(INSTALL_PROGRAM)
$(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'";
$(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p
$(DESTDIR)$(bindir)/echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/';
else :; fi;
done

uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
list=’$(bin_PROGRAMS)’; for p in $$list; do
rm -f $(DESTDIR)$(bindir)/echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/';
done

.c.o:
$(COMPILE) -c $<

.s.o:
$(COMPILE) -c $<

.S.o:
$(COMPILE) -c $<

mostlyclean-compile:
-rm -f *.o core *.core

=== message truncated ===__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger

You call that a rant?

Let’s see… Compatibility problems? You mean like that every single
version of Mandrake since 6.0 that I am sure of has had a broken and/or
braindamaged compiler and two thirds of them have had broken tools to
match?

It was true before and it is true now: Come to me with a compile problem
and I’m going to ask what you’re trying to compile with. If you tell me
you have Mandrake, I’m going to tell you that you are on your own. And I
will continue to do so until they pull their heads out and fix the
problems.

I’d go into excruciating detail exactly what has been wrong with which
versions, but it’s a long story beginning with pgcc, continuing with some
very screwed up libs, continuing on to incompatibility problems which make
the problems that got RH in hot water with 7.0 look relatively trivial,
and ending with the need to install a particular package (whose name was
obscure enough that I do not remember it now) which has no equivalent (nor
need for one) in any other distribution if you intend to compile the
majority of applications.

Now I do comparitively minor issues with just about every distribution out
there, including the one I’m using right now. But any dist that is broken
release after release and requires different procedures to fix each time
is not something we as a community should be willing to tollerate. No
other distribution has been so totally clueless about the concept that you
may want to install something they did not compile for you. Even the most
clueless dists get the damned build environment right more often than they
manage to get it wrong. But not Mandrake.

And what’s worse, the average Mandrake user is usually a win32 convert who
picked it because it’s supposed to be the easiest distribution on the new
Linux user. Yeah, until you try to compile something. Then may some kind
deity have mercy on your soul. The users most likely to be able to figure
out how to clean up after Mandrake’s “uniqueness” don’t and probably won’t
ever use the dist! Wonderful.

And all the while, the users come to us with their problem compiling our
code, which builds fine for everyone else, rather than complaining to the
people who need to hear it. If I had a dollar for every user who has ever
asked me why their ./configure couldn’t find a lib with development
headers installed or managed to compile one of the Quake engines only to
find that they fall through the floor on the first map or any host of
other problems which are specific to various Mandrake releases, I would
not be afraid of a recession in my country.

(There, that is a rant. If you wish to reply/flame/whatever, please do
it off-list since from here the discussion can only become less on-topic.)On Tue, Sep 04, 2001 at 12:45:46PM -0700, Michael Cowart wrote:

Mandrake is touted as a beginner distro…and while
it’s easy to install and configure, I’ve found that it
has HORRIBLE compatibility problems when trying to
compile programs…not something a windows convert
would want to deal with when they realize they have to
compile something they download.


Joseph Carter Free software developer

Operating Systems Installed:

  • Debian GNU/Linux 2.1 4 CD Set ($20 from www.chguy.net; price includes
    taxes, shipping, and a $3 donation to FSF). 2 CDs are binaries, 2 CDs
    complete source code;

  • Windows 98 Second Edition Upgrade Version ($136 through Megadepot.com,
    price does not include taxes/shipping). Surprisingly, no source code
    is included.

    -- Bill Stilwell, http://linuxtoday.com/stories/8794.html
    

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20010904/7686dd65/attachment.pgp

Now for a (semi) on-topic rant:

Mandrake is touted as a beginner distro…and while
it’s easy to install and configure, I’ve found that it
has HORRIBLE compatibility problems when trying to
compile programs…not something a windows convert
would want to deal with when they realize they have to
compile something they download.

At this moment in time, since SDL is in a stable state, you would do very well to check it out of CVS, and not rely on RPMs for development with SDL. This won't be true forever, as SDL is moving towards a development branch, but checking out the "SDL12" module will always be a good idea.

Building SDL from source will presumably accurately detect your system’s
configuration. If it doesn’t, it’s probably a bug.

(This isn’t related to Mandrake, per se…in fact, I’m typing this on an
iMac running Mandrake 8.0. :slight_smile: )

Seriously, though. Package management is a pain in the butt. Do a “rpm -e
SDL SDL-devel” and install SDL from source.

–ryan.

Just make sure /usr/local is part of your path … Red Hat (and
subsequently Mandrake) puts things under /usr … the default is usually
/usr/local for most distros.

OR, when compiling use the “prefix=/usr” option when doing the ./configure

This has been the only major step for compiling fo rme. After I figured that
out, Mandrake 8.0 seems to work just fine, and most of the packages I need
are usually on the CD if I need something that is going to take a while to
d-load

GL,
Xagon
(Cameron Aycock (Mandrake 8.0 user))> ----- Original Message -----

From: sdl-admin@libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of
Michael Cowart
Sent: Tuesday, September 04, 2001 3:46 PM
To: sdl at libsdl.org
Subject: Re: [SDL] Compilation problems - SDLgears.c

I have the same problem… I’ve looked to see what’s
wrong, but can’t find anything (which means nothing,
I’m a Linux newbie =). Do any of the Linux veterans
here know what’s going on?

Now for a (semi) on-topic rant:

Mandrake is touted as a beginner distro…and while
it’s easy to install and configure, I’ve found that it
has HORRIBLE compatibility problems when trying to
compile programs…not something a windows convert
would want to deal with when they realize they have to
compile something they download.

Mike

— J Grant wrote:

I downloaded SDL-devel-1.2.2-1.i386.rpm and
installed on my mdk8.0
machine
with working 16bpp i810e gfx in KDE/X 4.0.3

I tracked one error down to -lm missing in the
LDFLAGS of the Makefile
generated by ./configure

But there are further errors see the very end of
this email for the log.

I have been unable to work out what these errors
are, is it the auto
generated makefile or something else on my system?
Are there any other lbis required? I have GLX
working but GLUT is broke
atm, will that effect it? i thought glut was not
used in sdl but am not
sure

someone told me it was -static linked but i checked
and the output
makefile was not, i attatch my Makefile
note that LDFLAGS was modified by me

any help appreciated.

JG

[jg at jg SDLgears-1.0.2]$ make
gcc -g -O2 -I/usr/include/SDL -D_REENTRANT -lm -o
SDLgears SDLgears.o
-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
-L/usr/X11R6/lib -lGL
/usr/lib/libSDL.a(SDL_esdaudio.lo): In function
Audio_Available': SDL_esdaudio.lo(.text+0x19): undefined reference toesd_open_sound’
SDL_esdaudio.lo(.text+0x2b): undefined reference to
esd_close' /usr/lib/libSDL.a(SDL_esdaudio.lo): In functionESD_OpenAudio’:
SDL_esdaudio.lo(.text+0x3f0): undefined reference to
esd_play_stream' /usr/lib/libSDL.a(SDL_x11yuv.lo): In functionX11_CreateYUVOverlay’:
SDL_x11yuv.lo(.text+0x35): undefined reference to
XvQueryExtension' SDL_x11yuv.lo(.text+0x77): undefined reference toXvQueryAdaptors’
SDL_x11yuv.lo(.text+0x17b): undefined reference to
XvListImageFormats' SDL_x11yuv.lo(.text+0x1e9): undefined reference toXvGrabPort’
SDL_x11yuv.lo(.text+0x274): undefined reference to
XvUngrabPort' SDL_x11yuv.lo(.text+0x2d2): undefined reference toXvUngrabPort’
SDL_x11yuv.lo(.text+0x320): undefined reference to
XvShmCreateImage' SDL_x11yuv.lo(.text+0x3d2): undefined reference toXvShmCreateImage’
/usr/lib/libSDL.a(SDL_x11yuv.lo): In function
X11_DisplayYUVOverlay': SDL_x11yuv.lo(.text+0x590): undefined reference toXvShmPutImage’
/usr/lib/libSDL.a(SDL_x11yuv.lo): In function
X11_FreeYUVOverlay': SDL_x11yuv.lo(.text+0x5e6): undefined reference toXvUngrabPort’
/usr/lib/libSDL.a(SDL_dgavideo.lo): In function
DGA_Available': SDL_dgavideo.lo(.text+0x79): undefined reference toXDGAQueryExtension’
SDL_dgavideo.lo(.text+0x8e): undefined reference to
XDGAQueryVersion' SDL_dgavideo.lo(.text+0xa8): undefined reference toXDGAOpenFramebuffer’
SDL_dgavideo.lo(.text+0xbd): undefined reference to
XDGACloseFramebuffer' /usr/lib/libSDL.a(SDL_dgavideo.lo): In functionget_video_size’:
SDL_dgavideo.lo(.text+0x412): undefined reference to
XDGAGetMappedMemory' /usr/lib/libSDL.a(SDL_dgavideo.lo): In functionDGA_VideoInit’:
SDL_dgavideo.lo(.text+0x5ce): undefined reference to
XDGAQueryExtension' SDL_dgavideo.lo(.text+0x5ee): undefined reference toXDGAQueryVersion’
SDL_dgavideo.lo(.text+0x741): undefined reference to
XDGAOpenFramebuffer' SDL_dgavideo.lo(.text+0x78a): undefined reference toXDGAQueryModes’
/usr/lib/libSDL.a(SDL_dgavideo.lo): In function
DGA_SetVideoMode': SDL_dgavideo.lo(.text+0x8e3): undefined reference toXDGAQueryModes’
SDL_dgavideo.lo(.text+0x991): undefined reference to
XDGASetMode' SDL_dgavideo.lo(.text+0xa8a): undefined reference toXDGACreateColormap’
SDL_dgavideo.lo(.text+0xafa): undefined reference to
XDGACreateColormap' SDL_dgavideo.lo(.text+0xb29): undefined reference toXDGAInstallColormap’
SDL_dgavideo.lo(.text+0xb73): undefined reference to
XDGASetViewport' SDL_dgavideo.lo(.text+0xc3b): undefined reference toXDGASelectInput’
/usr/lib/libSDL.a(SDL_dgavideo.lo): In function
DGA_FillHWRect': SDL_dgavideo.lo(.text+0x100d): undefined reference toXDGAGetViewportStatus’
SDL_dgavideo.lo(.text+0x10bd): undefined reference
to
XDGAFillRectangle' /usr/lib/libSDL.a(SDL_dgavideo.lo): In functionHWAccelBlit’:
SDL_dgavideo.lo(.text+0x1169): undefined reference
to
XDGAGetViewportStatus' SDL_dgavideo.lo(.text+0x12b0): undefined reference toXDGACopyTransparentArea’
SDL_dgavideo.lo(.text+0x12eb): undefined reference
to XDGACopyArea' /usr/lib/libSDL.a(SDL_dgavideo.lo): In functionDGA_LockHWSurface’:
SDL_dgavideo.lo(.text+0x1400): undefined reference
to XDGASync' SDL_dgavideo.lo(.text+0x1445): undefined reference toXDGAGetViewportStatus’
SDL_dgavideo.lo(.text+0x148e): undefined reference
to XDGASync' /usr/lib/libSDL.a(SDL_dgavideo.lo): In functionDGA_FlipHWSurface’:
SDL_dgavideo.lo(.text+0x154f): undefined reference
to XDGASync' SDL_dgavideo.lo(.text+0x1593): undefined reference toXDGAGetViewportStatus’
SDL_dgavideo.lo(.text+0x15d1): undefined reference
to XDGASetViewport' /usr/lib/libSDL.a(SDL_dgavideo.lo): In functionDGA_VideoQuit’:
SDL_dgavideo.lo(.text+0x193f): undefined reference
to
XDGACloseFramebuffer' SDL_dgavideo.lo(.text+0x1972): undefined reference toXDGASetMode’
/usr/lib/libSDL.a(SDL_x11dga.lo): In function
X11_EnableDGAMouse': SDL_x11dga.lo(.text+0xae): undefined reference toXF86DGAQueryExtension’
SDL_x11dga.lo(.text+0xcf): undefined reference to
XF86DGAQueryVersion' SDL_x11dga.lo(.text+0xf4): undefined reference toXF86DGADirectVideo’
/usr/lib/libSDL.a(SDL_x11dga.lo): In function
X11_CheckDGAMouse': SDL_x11dga.lo(.text+0x14d): undefined reference toXF86DGAQueryDirectVideo’
SDL_x11dga.lo(.text+0x171): undefined reference to
XF86DGADirectVideo' /usr/lib/libSDL.a(SDL_x11dga.lo): In functionX11_DisableDGAMouse’:
SDL_x11dga.lo(.text+0x1b4): undefined reference to
XF86DGADirectVideo' /usr/lib/libSDL.a(SDL_x11gamma.lo): In functionX11_SetGammaNoLock’:
SDL_x11gamma.lo(.text+0x118): undefined reference to
XF40VidModeSetGamma' /usr/lib/libSDL.a(SDL_x11gamma.lo): In functionX11_GetGammaNoLock’:
SDL_x11gamma.lo(.text+0x223): undefined reference to
XF40VidModeGetGamma' /usr/lib/libSDL.a(SDL_x11modes.lo): In functionXF40VidModeGetModeInfo’:
SDL_x11modes.lo(.text+0x25): undefined reference to
XF40VidModeGetModeLine' /usr/lib/libSDL.a(SDL_x11modes.lo): In functionsave_mode’:
SDL_x11modes.lo(.text+0xa4): undefined reference to
XF40VidModeGetViewPort' /usr/lib/libSDL.a(SDL_x11modes.lo): In functionrestore_mode’:
SDL_x11modes.lo(.text+0xeb): undefined reference to
XF40VidModeGetModeLine' SDL_x11modes.lo(.text+0x12b): undefined reference toXF40VidModeSwitchToMode’
SDL_x11modes.lo(.text+0x162): undefined reference to
XF40VidModeSetViewPort' /usr/lib/libSDL.a(SDL_x11modes.lo): In functionset_best_resolution’:

=== message truncated ===> # Generated automatically
from Makefile.in by

configure.

Makefile.in generated automatically by automake

1.4a from Makefile.am

Copyright © 1994, 1995-8, 1999 Free Software

Foundation, Inc.

This Makefile.in is free software; the Free

Software Foundation

gives unlimited permission to copy and/or

distribute it,

with or without modifications, as long as this

notice is preserved.

This program is distributed in the hope that it

will be useful,

but WITHOUT ANY WARRANTY, to the extent permitted

by law; without

even the implied warranty of MERCHANTABILITY or

FITNESS FOR A

PARTICULAR PURPOSE.

SHELL = /bin/sh

srcdir = .
top_srcdir = .
prefix = /usr/local
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include

DESTDIR =

pkgdatadir = $(datadir)/SDLgears
pkglibdir = $(libdir)/SDLgears
pkgincludedir = $(includedir)/SDLgears

top_builddir = .

ACLOCAL = aclocal
AUTOCONF = autoconf
AUTOMAKE = automake
AUTOHEADER = autoheader

INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
INSTALL_STRIP_FLAG =
transform = s,x,x,

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = i686-pc-linux-gnu
host_triplet = i686-pc-linux-gnu
CC = gcc
GLUT_LIBS = -L/usr/lib -Wl,-rpath,/usr/lib -lSDL
-lpthread -L/usr/X11R6/lib -lGL -lGLU -lglut
GL_LIBS = -L/usr/lib -Wl,-rpath,/usr/lib -lSDL
-lpthread -L/usr/X11R6/lib -lGL
MAKEINFO = makeinfo
MATHLIB = -lm
PACKAGE = SDLgears
SDL_CFLAGS = -I/usr/include/SDL -D_REENTRANT
SDL_CONFIG = /usr/bin/sdl-config
SDL_LIBS = -L/usr/lib -Wl,-rpath,/usr/lib -lSDL
-lpthread
VERSION = 1.0.2

EXTRA_DIST = autogen.sh gears.c

bin_PROGRAMS = SDLgears gears

SDLgears_LDADD = -L/usr/lib -Wl,-rpath,/usr/lib
-lSDL -lpthread -L/usr/X11R6/lib -lGL
gears_LDADD = -L/usr/lib -Wl,-rpath,/usr/lib -lSDL
-lpthread -L/usr/X11R6/lib -lGL -lGLU -lglut
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
PROGRAMS = $(bin_PROGRAMS)

DEFS = -DPACKAGE=“SDLgears” -DVERSION=“1.0.2”
-I. -I$(srcdir)
CPPFLAGS =
LDFLAGS = -lm
LIBS =
SDLgears_SOURCES = SDLgears.c
SDLgears_OBJECTS = SDLgears.o
SDLgears_DEPENDENCIES =
SDLgears_LDFLAGS =
gears_SOURCES = gears.c
gears_OBJECTS = gears.o
gears_DEPENDENCIES =
gears_LDFLAGS =
CFLAGS = -g -O2 -I/usr/include/SDL -D_REENTRANT
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS)
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o
$@
DIST_COMMON = README Makefile.am Makefile.in
aclocal.m4 config.guess
config.sub configure configure.in install-sh missing
mkinstalldirs

DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS)
$(TEXINFOS) $(EXTRA_DIST)

TAR = gtar
GZIP_ENV = --best
SOURCES = SDLgears.c gears.c
OBJECTS = SDLgears.o gears.o

all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .o .s
$(srcdir)/Makefile.in: Makefile.am
$(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --foreign
–include-deps Makefile

Makefile: $(srcdir)/Makefile.in
$(top_builddir)/config.status
cd $(top_builddir)
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL)
./config.status

$(ACLOCAL_M4): configure.in
cd $(srcdir) && $(ACLOCAL)

config.status: $(srcdir)/configure
$(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.in
$(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
cd $(srcdir) && $(AUTOCONF)

mostlyclean-binPROGRAMS:

clean-binPROGRAMS:
-test -z “$(bin_PROGRAMS)” || rm -f $(bin_PROGRAMS)

distclean-binPROGRAMS:

maintainer-clean-binPROGRAMS:

install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(bindir)
@list=’$(bin_PROGRAMS)’; for p in $$list; do
if test -f $$p; then
echo " $(INSTALL_PROGRAM)
$(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'";
$(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p
$(DESTDIR)$(bindir)/echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/';
else :; fi;
done

uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
list=’$(bin_PROGRAMS)’; for p in $$list; do
rm -f $(DESTDIR)$(bindir)/echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/';
done

.c.o:
$(COMPILE) -c $<

.s.o:
$(COMPILE) -c $<

.S.o:
$(COMPILE) -c $<

mostlyclean-compile:
-rm -f *.o core *.core

=== message truncated ===


Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Building SDL from source will presumably accurately
detect your system’s
configuration. If it doesn’t, it’s probably a bug.

Ok, I did that, now I can compile, but I have to give
absolute paths to the include files and sdl-config.
Another newbie question, How do I make it where I
don’t have to give an absolute path?

Thanks,=====
Michael Cowart
@Michael_Cowart

“Elen sila lumenn’ omentielvo”-a star shines on the hour of our meeting


Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger

Ok, I did that, now I can compile, but I have to give

Good for you!

absolute paths to the include files and sdl-config.
Another newbie question, How do I make it where I
don’t have to give an absolute path?

export PATH=$PATH:/where/i/installed/sdl-config/

(/where/i/installed/sdl-config is /usr/local/bin/ by default.)

The most convenient way to handle this is to put that “export” line into
the /etc/profile script, so that all users on your system can access it.
Lots of stuff that is installed from source will end up in the /usr/local/
tree by default.

–ryan.

export PATH=$PATH:/where/i/installed/sdl-config/

Ok, it all works now. Thanks Everybody!=====
Michael Cowart
@Michael_Cowart

“Elen sila lumenn’ omentielvo”-a star shines on the hour of our meeting


Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger

Cameron Aycock wrote:

Just make sure /usr/local is part of your path … Red Hat (and
subsequently Mandrake) puts things under /usr … the default is usually
/usr/local for most distros.

OR, when compiling use the “prefix=/usr” option when doing the ./configure

This has been the only major step for compiling fo rme. After I figured that
out, Mandrake 8.0 seems to work just fine, and most of the packages I need
are usually on the CD if I need something that is going to take a while to
d-load

GL,
Xagon
(Cameron Aycock (Mandrake 8.0 user))

Hi,

I still get the same problems, I assume I am doing something wrong as
this other guy got it working.
I tried

./configure --prefix=/usr as sugested
./configure --prefix=/usr/local just incase

they did not work

so i added stuff to my /etc/profile
i tried both of these

PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/X11R6/bin:/usr/games:/usr/local
PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/X11R6/bin:/usr/games:/usr

still no joy.

my sdl-config is in /usr/bin but as that is in the path that should not
cause a problem should it?

JG

./configure --prefix=/usr as sugested
./configure --prefix=/usr/local just incase

they did not work

so i added stuff to my /etc/profile
i tried both of these

PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/X11R6/bin:/usr/games:/usr/local
PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/X11R6/bin:/usr/games:/usr

  1. Did you remove the original RPMs?
  2. Did you build SDL, or just configure the build process?

–ryan.

Hi

I did not remeove the rpm I downloaded yesterday from libsdl.org as I
think a simple program like gears.c should be able to work without the
CVS version.

i did not build SDL, just ./configure on the gears and then make

gcc -g -O2 -I/usr/include/SDL -D_REENTRANT -o SDLgears SDLgears.o
-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -L/usr/X11R6/lib -lGL

that is the comand that gets run by the Makefile generated after
./configure, I notice that sdl-config --cflags is not present, i saw
this in other makefiles,
SDL_CONFIG = /usr/bin/sdl-config

that is in the generated Makefile but it never gets run.

Did anyone else have any problems with this generated makefile, I have
not had anyother problems with mdk8 compiling other programs.

JG

“Ryan C. Gordon” wrote:>

./configure --prefix=/usr as sugested
./configure --prefix=/usr/local just incase

they did not work

so i added stuff to my /etc/profile
i tried both of these

PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/X11R6/bin:/usr/games:/usr/local
PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/X11R6/bin:/usr/games:/usr

  1. Did you remove the original RPMs?
  2. Did you build SDL, or just configure the build process?

–ryan.

Hi

I did some more testing, i got lesson03 from nehe.gamedev.net
the makefile did not work as the libs lines were left out, so i added
them.

$(CC) lesson03.c -o lesson03 -I/usr -L/usr/lib -L/usr/X11R6/lib -lGL
-lGLU sdl-config --cflags --libs

but I still get the same errors, this one did not have a ./configure to
mess it up.

any help apreciated.

JG

J Grant wrote:>

Hi

I did not remeove the rpm I downloaded yesterday from libsdl.org as I
think a simple program like gears.c should be able to work without the
CVS version.

i did not build SDL, just ./configure on the gears and then make

gcc -g -O2 -I/usr/include/SDL -D_REENTRANT -o SDLgears SDLgears.o
-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -L/usr/X11R6/lib -lGL

that is the comand that gets run by the Makefile generated after
./configure, I notice that sdl-config --cflags is not present, i saw
this in other makefiles,
SDL_CONFIG = /usr/bin/sdl-config

that is in the generated Makefile but it never gets run.

Did anyone else have any problems with this generated makefile, I have
not had anyother problems with mdk8 compiling other programs.

JG

Just make sure /usr/local is part of your path … Red Hat (and
subsequently Mandrake) puts things under /usr … the default is
usually /usr/local for most distros.

OR, when compiling use the “prefix=/usr” option when doing the
./configure

According to the FHS, package systems should install into /usr, while self-compiled programs etc. (any stuff without an installer) should install into /usr/local. In other words, stuff in /usr have uninstallers (or should always be there), while stuff in /usr/local will have to be removed by hand. -- Trick

[…]

Building SDL from source will presumably accurately detect your
system’s configuration. If it doesn’t, it’s probably a bug.

Yes! I’ve compiled various versions of SDL + libs and various SDL
programs on some Red Hat and Mandrake systems, and the only "problem"
I’ve seen so far is that the higher security settings on Mandrake won’t
let users build SDL programs at all. (Well, it makes sense - you don’t
want ordinary users running SDL programs with svgalib on your server, do
you? :wink:

[…]

Seriously, though. Package management is a pain in the butt. Do a “rpm
-e SDL SDL-devel” and install SDL from source.

Yeah. I’ve had it with binary RPMs and development libs. Why mess with
them when you have autoconf and automake?

For example, install SDL 1.2.x from source on a system that only has SDL
1.1.x installed as RPM. Then try to install some library that needs SDL
1.2.x from a binary RPM. Now, how do you tell RPM in a nice way that you
DO have SDL 1.2.x, when the RPM database says “the latest SDL installed
is 1.1.x”…?

I got bored and switched to source tarballs long ago. :slight_smile:

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |--------------------------------------> david at linuxdj.com -'On Wednesday 05 September 2001 01:32, Ryan C. Gordon wrote: