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’:
SDL_x11modes.lo(.text+0x1e5): undefined reference to
XF40VidModeGetModeLine' SDL_x11modes.lo(.text+0x211): undefined reference to
XF40VidModeGetAllModeLines’
SDL_x11modes.lo(.text+0x2a8): undefined reference to
XF40VidModeSwitchToMode' /usr/lib/libSDL.a(SDL_x11modes.lo): In function
get_real_resolution’:
SDL_x11modes.lo(.text+0x308): undefined reference to
XF40VidModeGetModeLine' /usr/lib/libSDL.a(SDL_x11modes.lo): In function
X11_GetVideoModes’:
SDL_x11modes.lo(.text+0x6aa): undefined reference to
XF40VidModeQueryExtension' SDL_x11modes.lo(.text+0x6c8): undefined reference to
XF40VidModeQueryVersion’
SDL_x11modes.lo(.text+0x704): undefined reference to
XF40VidModeGetAllModeLines' /usr/lib/libSDL.a(SDL_x11modes.lo): In function
X11_EnterFullScreen’:
SDL_x11modes.lo(.text+0xde5): undefined reference to
XF40VidModeLockModeSwitch' /usr/lib/libSDL.a(SDL_x11modes.lo): In function
X11_LeaveFullScreen’:
SDL_x11modes.lo(.text+0xee2): undefined reference to
XF40VidModeLockModeSwitch' /usr/lib/libSDL.a(SDL_dgaevents.lo): In function
DGA_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: