Help compiling on Mac OS X 10.6 (64-bit)

I have a pretty decent 10.6 setup. Apple’s gcc version 4.2.1. Several “standard” libraries I’ve compiled (libz, gif, jpeg, lame, etc.), so I know the environment is pretty solid. I’ve been compiling open source for Solaris and Mac OS X for quite a while, so I’m comfortable with the whole configure/make process, even when I need to go compile some other dependencies first.

But, I can’t get libsdl to compile. The configure out looks out, and compile “seems” to complete (no actual errors), but I get these right at the end.

Code:
ranlib: file: /usr/local/lib/libSDL.a(SDL_audiodev.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_mixer_MMX.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_mixer_MMX_VC.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_mixer_m68k.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_getenv.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_malloc.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_qsort.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_stdlib.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_yuv_mmx.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_nullmouse.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_dgamouse.o) has no symbols
libtool: link: ranlib build/.libs/libSDL.a
ranlib: file: build/.libs/libSDL.a(SDL_audiodev.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_mixer_MMX.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_mixer_MMX_VC.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_mixer_m68k.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_getenv.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_malloc.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_qsort.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_stdlib.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_yuv_mmx.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_nullmouse.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_dgamouse.o) has no symbols
libtool: link: ( cd “build/.libs” && rm -f “libSDL.la” && ln -s “…/libSDL.la” “libSDL.la” )
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/main/macosx/SDLMain.m -o build/SDLMain.o
ar cru build/libSDLmain.a build/SDLMain.o
ranlib build/libSDLmain.a

I assume there is a problem, so I’m reluctant to install the library. Any suggestions?

Thanks!

Can you show us the steps you took to compile SDL? I can’t recall (it’s
been a while since I compiled SDL from source on Mac), but maybe it’s a
little quirky.

Take care,
-AlexOn Sat, Oct 2, 2010 at 12:09 AM, hypert wrote:

I have a pretty decent 10.6 setup. Apple’s gcc version 4.2.1. Several
"standard" libraries I’ve compiled (libz, gif, jpeg, lame, etc.), so I know
the environment is pretty solid. I’ve been compiling open source for Solaris
and Mac OS X for quite a while, so I’m comfortable with the whole
configure/make process, even when I need to go compile some other
dependencies first.

But, I can’t get libsdl to compile. The configure out looks out, and
compile “seems” to complete (no actual errors), but I get these right at the
end.

Code:

ranlib: file: /usr/local/lib/libSDL.a(SDL_audiodev.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_mixer_MMX.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_mixer_MMX_VC.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_mixer_m68k.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_getenv.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_malloc.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_qsort.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_stdlib.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_yuv_mmx.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_nullmouse.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_dgamouse.o) has no symbols
libtool: link: ranlib build/.libs/libSDL.a
ranlib: file: build/.libs/libSDL.a(SDL_audiodev.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_mixer_MMX.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_mixer_MMX_VC.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_mixer_m68k.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_getenv.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_malloc.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_qsort.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_stdlib.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_yuv_mmx.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_nullmouse.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_dgamouse.o) has no symbols
libtool: link: ( cd “build/.libs” && rm -f “libSDL.la” && ln -s
"…/libSDL.la" “libSDL.la” )
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/main/macosx/SDLMain.m -o build/SDLMain.o
ar cru build/libSDLmain.a build/SDLMain.o
ranlib build/libSDLmain.a

I assume there is a problem, so I’m reluctant to install the library. Any
suggestions?

Thanks!


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

It was a simple “./configure” followed by “make”. Here’s the output from configure:

Code:

checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking how to run the C preprocessor… gcc -E
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking minix/config.h usability… no
checking minix/config.h presence… no
checking for minix/config.h… no
checking whether it is safe to define EXTENSIONS… yes
checking build system type… x86_64-apple-darwin10.4.1
checking host system type… x86_64-apple-darwin10.4.1
checking for a sed that does not truncate output… /usr/bin/sed
checking for fgrep… /usr/bin/grep -F
checking for ld used by gcc… /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld… no
checking for BSD- or MS-compatible name lister (nm)… /usr/bin/nm
checking the name lister (/usr/bin/nm) interface… BSD nm
checking whether ln -s works… yes
checking the maximum length of command line arguments… 196608
checking whether the shell understands some XSI constructs… yes
checking whether the shell understands “+=”… yes
checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload object files… -r
checking for objdump… no
checking how to recognize dependent libraries… pass_all
checking for ar… ar
checking for strip… strip
checking for ranlib… ranlib
checking command to parse /usr/bin/nm output from gcc object… ok
checking for dsymutil… dsymutil
checking for nmedit… nmedit
checking for lipo… lipo
checking for otool… otool
checking for otool64… no
checking for -single_module linker flag… yes
checking for -exported_symbols_list linker flag… yes
checking for dlfcn.h… yes
checking for objdir… .libs
checking if gcc supports -fno-rtti -fno-exceptions… no
checking for gcc option to produce PIC… -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works… yes
checking if gcc static flag -static works… no
checking if gcc supports -c -o file.o… yes
checking if gcc supports -c -o file.o… (cached) yes
checking whether the gcc linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries… yes
checking dynamic linker characteristics… darwin10.4.1 dyld
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… yes
checking whether byte ordering is bigendian… no
checking for gcc… (cached) gcc
checking whether we are using the GNU C compiler… (cached) yes
checking whether gcc accepts -g… (cached) yes
checking for gcc option to accept ISO C89… (cached) none needed
checking for g++… g++
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking whether we are using the GNU C++ compiler… (cached) yes
checking whether g++ accepts -g… (cached) yes
checking how to run the C++ preprocessor… g++ -E
checking for ld used by g++… /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld… no
checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries… yes
checking for g++ option to produce PIC… -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works… yes
checking if g++ static flag -static works… no
checking if g++ supports -c -o file.o… yes
checking if g++ supports -c -o file.o… (cached) yes
checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries… yes
checking dynamic linker characteristics… darwin10.4.1 dyld
checking how to hardcode library paths into programs… immediate
checking for a BSD-compatible install… /usr/bin/install -c
checking whether make sets $(MAKE)… yes
checking for windres… no
checking for darwin10.4.1-windres… no
checking for an ANSI C-conforming const… yes
checking for inline… inline
checking for working volatile… yes
checking for ANSI C header files… (cached) yes
checking for sys/types.h… (cached) yes
checking stdio.h usability… yes
checking stdio.h presence… yes
checking for stdio.h… yes
checking for stdlib.h… (cached) yes
checking stddef.h usability… yes
checking stddef.h presence… yes
checking for stddef.h… yes
checking stdarg.h usability… yes
checking stdarg.h presence… yes
checking for stdarg.h… yes
checking malloc.h usability… no
checking malloc.h presence… no
checking for malloc.h… no
checking for memory.h… (cached) yes
checking for string.h… (cached) yes
checking for strings.h… (cached) yes
checking for inttypes.h… (cached) yes
checking for stdint.h… (cached) yes
checking ctype.h usability… yes
checking ctype.h presence… yes
checking for ctype.h… yes
checking math.h usability… yes
checking math.h presence… yes
checking for math.h… yes
checking iconv.h usability… yes
checking iconv.h presence… yes
checking for iconv.h… yes
checking signal.h usability… yes
checking signal.h presence… yes
checking for signal.h… yes
checking for size_t… yes
checking for int64_t… yes
checking for working alloca.h… yes
checking for alloca… yes
checking for working memcmp… yes
checking for working strtod… yes
checking for mprotect… yes
checking for malloc… yes
checking for calloc… yes
checking for realloc… yes
checking for free… yes
checking for getenv… yes
checking for putenv… yes
checking for unsetenv… yes
checking for qsort… yes
checking for abs… yes
checking for bcopy… yes
checking for memset… yes
checking for memcpy… yes
checking for memmove… yes
checking for strlen… yes
checking for strlcpy… yes
checking for strlcat… yes
checking for strdup… yes
checking for _strrev… no
checking for _strupr… no
checking for _strlwr… no
checking for strchr… yes
checking for strrchr… yes
checking for strstr… yes
checking for itoa… no
checking for _ltoa… no
checking for _uitoa… no
checking for _ultoa… no
checking for strtol… yes
checking for strtoul… yes
checking for _i64toa… no
checking for _ui64toa… no
checking for strtoll… yes
checking for strtoull… yes
checking for atoi… yes
checking for atof… yes
checking for strcmp… yes
checking for strncmp… yes
checking for _stricmp… no
checking for strcasecmp… yes
checking for _strnicmp… no
checking for strncasecmp… yes
checking for sscanf… yes
checking for snprintf… yes
checking for vsnprintf… yes
checking for iconv… no
checking for sigaction… yes
checking for setjmp… yes
checking for nanosleep… yes
checking for libiconv_open in -liconv… no
checking for pow in -lm… yes
checking for GCC -fvisibility=hidden option… yes
checking for dlopen… yes
checking for dlopen in -lc… yes
checking for Cocoa framework… yes
checking for X… libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking whether -R must be followed by a space… no
checking for gethostbyname… yes
checking for connect… yes
checking for remove… yes
checking for shmat… yes
checking for IceConnectionNumber in -lICE… yes
– dynamic libX11 -> /usr/X11R6/lib/libX11.6.dylib
– dynamic libX11ext -> /usr/X11R6/lib/libXext.6.dylib
checking for X11/extensions/Xrandr.h… yes
– dynamic libXrender -> /usr/X11R6/lib/libXrender.1.dylib
– dynamic libXrandr -> /usr/X11R6/lib/libXrandr.2.dylib
checking for OpenGL (GLX) support… yes
checking for pthreads… yes
checking for recursive mutexes… yes
checking for pthread semaphores… yes
checking for Altivec with GCC altivec.h and -maltivec option… no
checking for Altivec with GCC -maltivec option… no
checking for Altivec with GCC altivec.h and -faltivec option… no
checking for Altivec with GCC -faltivec option… no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sdl-config
config.status: creating SDL.spec
config.status: creating SDL.qpg
config.status: creating sdl.pc
config.status: creating include/SDL_config.h
config.status: include/SDL_config.h is unchanged
config.status: executing libtool commands
config.status: executing default commands
Generating dependencies for ./src/SDL.c
Generating dependencies for ./src/SDL_error.c
Generating dependencies for ./src/SDL_fatal.c
Generating dependencies for ./src/audio/SDL_audio.c
Generating dependencies for ./src/audio/SDL_audiocvt.c
Generating dependencies for ./src/audio/SDL_audiodev.c
Generating dependencies for ./src/audio/SDL_mixer.c
Generating dependencies for ./src/audio/SDL_mixer_MMX.c
Generating dependencies for ./src/audio/SDL_mixer_MMX_VC.c
Generating dependencies for ./src/audio/SDL_mixer_m68k.c
Generating dependencies for ./src/audio/SDL_wave.c
Generating dependencies for ./src/cdrom/SDL_cdrom.c
Generating dependencies for ./src/cpuinfo/SDL_cpuinfo.c
Generating dependencies for ./src/events/SDL_active.c
Generating dependencies for ./src/events/SDL_events.c
Generating dependencies for ./src/events/SDL_expose.c
Generating dependencies for ./src/events/SDL_keyboard.c
Generating dependencies for ./src/events/SDL_mouse.c
Generating dependencies for ./src/events/SDL_quit.c
Generating dependencies for ./src/events/SDL_resize.c
Generating dependencies for ./src/file/SDL_rwops.c
Generating dependencies for ./src/stdlib/SDL_getenv.c
Generating dependencies for ./src/stdlib/SDL_iconv.c
Generating dependencies for ./src/stdlib/SDL_malloc.c
Generating dependencies for ./src/stdlib/SDL_qsort.c
Generating dependencies for ./src/stdlib/SDL_stdlib.c
Generating dependencies for ./src/stdlib/SDL_string.c
Generating dependencies for ./src/thread/SDL_thread.c
Generating dependencies for ./src/timer/SDL_timer.c
Generating dependencies for ./src/video/SDL_RLEaccel.c
Generating dependencies for ./src/video/SDL_blit.c
Generating dependencies for ./src/video/SDL_blit_0.c
Generating dependencies for ./src/video/SDL_blit_1.c
Generating dependencies for ./src/video/SDL_blit_A.c
Generating dependencies for ./src/video/SDL_blit_N.c
Generating dependencies for ./src/video/SDL_bmp.c
Generating dependencies for ./src/video/SDL_cursor.c
Generating dependencies for ./src/video/SDL_gamma.c
Generating dependencies for ./src/video/SDL_pixels.c
Generating dependencies for ./src/video/SDL_stretch.c
Generating dependencies for ./src/video/SDL_surface.c
Generating dependencies for ./src/video/SDL_video.c
Generating dependencies for ./src/video/SDL_yuv.c
Generating dependencies for ./src/video/SDL_yuv_mmx.c
Generating dependencies for ./src/video/SDL_yuv_sw.c
Generating dependencies for ./src/joystick/SDL_joystick.c
Generating dependencies for ./src/video/dummy/SDL_nullevents.c
Generating dependencies for ./src/video/dummy/SDL_nullmouse.c
Generating dependencies for ./src/video/dummy/SDL_nullvideo.c
Generating dependencies for ./src/audio/disk/SDL_diskaudio.c
Generating dependencies for ./src/audio/dummy/SDL_dummyaudio.c
Generating dependencies for ./src/loadso/dlopen/SDL_sysloadso.c
Generating dependencies for ./src/video/quartz/SDL_QuartzEvents.m
Generating dependencies for ./src/video/quartz/SDL_QuartzGL.m
Generating dependencies for ./src/video/quartz/SDL_QuartzVideo.m
Generating dependencies for ./src/video/quartz/SDL_QuartzWM.m
Generating dependencies for ./src/video/quartz/SDL_QuartzWindow.m
Generating dependencies for ./src/video/x11/SDL_x11dga.c
Generating dependencies for ./src/video/x11/SDL_x11dyn.c
Generating dependencies for ./src/video/x11/SDL_x11events.c
Generating dependencies for ./src/video/x11/SDL_x11gamma.c
Generating dependencies for ./src/video/x11/SDL_x11gl.c
Generating dependencies for ./src/video/x11/SDL_x11image.c
Generating dependencies for ./src/video/x11/SDL_x11modes.c
Generating dependencies for ./src/video/x11/SDL_x11mouse.c
Generating dependencies for ./src/video/x11/SDL_x11video.c
Generating dependencies for ./src/video/x11/SDL_x11wm.c
Generating dependencies for ./src/video/x11/SDL_x11yuv.c
Generating dependencies for ./src/video/Xext/Xxf86dga/XF86DGA.c
Generating dependencies for ./src/video/Xext/Xxf86dga/XF86DGA2.c
Generating dependencies for ./src/video/dga/SDL_dgaevents.c
Generating dependencies for ./src/video/dga/SDL_dgamouse.c
Generating dependencies for ./src/video/dga/SDL_dgavideo.c
Generating dependencies for ./src/video/Xext/Xxf86vm/XF86VMode.c
Generating dependencies for ./src/video/Xext/Xv/Xv.c
Generating dependencies for ./src/video/Xext/Xinerama/Xinerama.c
Generating dependencies for ./src/video/Xext/XME/xme.c
Generating dependencies for ./src/thread/pthread/SDL_systhread.c
Generating dependencies for ./src/thread/pthread/SDL_syssem.c
Generating dependencies for ./src/thread/pthread/SDL_sysmutex.c
Generating dependencies for ./src/thread/pthread/SDL_syscond.c
Generating dependencies for ./src/audio/macosx/SDL_coreaudio.c
Generating dependencies for ./src/joystick/darwin/SDL_sysjoystick.c
Generating dependencies for ./src/cdrom/macosx/AudioFilePlayer.c
Generating dependencies for ./src/cdrom/macosx/AudioFileReaderThread.c
Generating dependencies for ./src/cdrom/macosx/CDPlayer.c
Generating dependencies for ./src/cdrom/macosx/SDLOSXCAGuard.c
Generating dependencies for ./src/cdrom/macosx/SDL_syscdrom.c
Generating dependencies for ./src/timer/unix/SDL_systimer.c

Two more questions: Are you compiling SDL 1.2.x or 1.3? Is SDL already
installed somewhere in the system?
If SDL is already installed, you may have to ./configure
–prefix=/SDL/CUSTOM/PATH
I haven’t compiled SDL 1.3 on a Mac (haven’t used Mac in a little while), so
I can’t help you beyond 1.2

-AlexOn Sun, Oct 3, 2010 at 10:38 AM, hypert wrote:

It was a simple “./configure” followed by “make”. Here’s the output from
configure:

Code:

checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking how to run the C preprocessor… gcc -E
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking minix/config.h usability… no
checking minix/config.h presence… no
checking for minix/config.h… no
checking whether it is safe to define EXTENSIONS… yes
checking build system type… x86_64-apple-darwin10.4.1
checking host system type… x86_64-apple-darwin10.4.1
checking for a sed that does not truncate output… /usr/bin/sed
checking for fgrep… /usr/bin/grep -F
checking for ld used by gcc…
/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is
GNU ld… no
checking for BSD- or MS-compatible name lister (nm)… /usr/bin/nm
checking the name lister (/usr/bin/nm) interface… BSD nm
checking whether ln -s works… yes
checking the maximum length of command line arguments… 196608
checking whether the shell understands some XSI constructs… yes
checking whether the shell understands “+=”… yes
checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload
object files… -r
checking for objdump… no
checking how to recognize dependent libraries… pass_all
checking for ar… ar
checking for strip… strip
checking for ranlib… ranlib
checking command to parse /usr/bin/nm output from gcc object… ok
checking for dsymutil… dsymutil
checking for nmedit… nmedit
checking for lipo… lipo
checking for otool… otool
checking for otool64… no
checking for -single_module linker flag… yes
checking for -exported_symbols_list linker flag… yes
checking for dlfcn.h… yes
checking for objdir… .libs
checking if gcc supports -fno-rtti -fno-exceptions… no
checking for gcc option to produce PIC… -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works… yes
checking if gcc static flag -static works… no
checking if gcc supports -c -o file.o… yes
checking if gcc supports -c -o file.o… (cached) yes
checking whether the gcc linker
(/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries…
yes
checking dynamic linker characteristics… darwin10.4.1 dyld
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… yes
checking whether byte ordering is bigendian… no
checking for gcc… (cached) gcc
checking whether we are using the GNU C compiler… (cached) yes
checking whether gcc accepts -g… (cached) yes
checking for gcc option to accept ISO C89… (cached) none needed
checking for g++… g++
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking whether we are using the GNU C++ compiler… (cached) yes
checking whether g++ accepts -g… (cached) yes
checking how to run the C++ preprocessor… g++ -E
checking for ld used by g++…
/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is
GNU ld… no
checking whether the g++ linker
(/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries…
yes
checking for g++ option to produce PIC… -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works… yes
checking if g++ static flag -static works… no
checking if g++ supports -c -o file.o… yes
checking if g++ supports -c -o file.o… (cached) yes
checking whether the g++ linker
(/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries…
yes
checking dynamic linker characteristics… darwin10.4.1 dyld
checking how to hardcode library paths into programs… immediate
checking for a BSD-compatible install… /usr/bin/install -c
checking whether make sets $(MAKE)… yes
checking for windres… no
checking for darwin10.4.1-windres… no
checking for an ANSI C-conforming const… yes
checking for inline… inline
checking for working volatile… yes
checking for ANSI C header files… (cached) yes
checking for sys/types.h… (cached) yes
checking stdio.h usability… yes
checking stdio.h presence… yes
checking for stdio.h… yes
checking for stdlib.h… (cached) yes
checking stddef.h usability… yes
checking stddef.h presence… yes
checking for stddef.h… yes
checking stdarg.h usability… yes
checking stdarg.h presence… yes
checking for stdarg.h… yes
checking malloc.h usability… no
checking malloc.h presence… no
checking for malloc.h… no
checking for memory.h… (cached) yes
checking for string.h… (cached) yes
checking for strings.h… (cached) yes
checking for inttypes.h… (cached) yes
checking for stdint.h… (cached) yes
checking ctype.h usability… yes
checking ctype.h presence… yes
checking for ctype.h… yes
checking math.h usability… yes
checking math.h presence… yes
checking for math.h… yes
checking iconv.h usability… yes
checking iconv.h presence… yes
checking for iconv.h… yes
checking signal.h usability… yes
checking signal.h presence… yes
checking for signal.h… yes
checking for size_t… yes
checking for int64_t… yes
checking for working alloca.h… yes
checking for alloca… yes
checking for working memcmp… yes
checking for working strtod… yes
checking for mprotect… yes
checking for malloc… yes
checking for calloc… yes
checking for realloc… yes
checking for free… yes
checking for getenv… yes
checking for putenv… yes
checking for unsetenv… yes
checking for qsort… yes
checking for abs… yes
checking for bcopy… yes
checking for memset… yes
checking for memcpy… yes
checking for memmove… yes
checking for strlen… yes
checking for strlcpy… yes
checking for strlcat… yes
checking for strdup… yes
checking for _strrev… no
checking for _strupr… no
checking for _strlwr… no
checking for strchr… yes
checking for strrchr… yes
checking for strstr… yes
checking for itoa… no
checking for _ltoa… no
checking for _uitoa… no
checking for _ultoa… no
checking for strtol… yes
checking for strtoul… yes
checking for _i64toa… no
checking for _ui64toa… no
checking for strtoll… yes
checking for strtoull… yes
checking for atoi… yes
checking for atof… yes
checking for strcmp… yes
checking for strncmp… yes
checking for _stricmp… no
checking for strcasecmp… yes
checking for _strnicmp… no
checking for strncasecmp… yes
checking for sscanf… yes
checking for snprintf… yes
checking for vsnprintf… yes
checking for iconv… no
checking for sigaction… yes
checking for setjmp… yes
checking for nanosleep… yes
checking for libiconv_open in -liconv… no
checking for pow in -lm… yes
checking for GCC -fvisibility=hidden option… yes
checking for dlopen… yes
checking for dlopen in -lc… yes
checking for Cocoa framework… yes
checking for X… libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking whether -R must be followed by a space… no
checking for gethostbyname… yes
checking for connect… yes
checking for remove… yes
checking for shmat… yes
checking for IceConnectionNumber in -lICE… yes
– dynamic libX11 -> /usr/X11R6/lib/libX11.6.dylib
– dynamic libX11ext -> /usr/X11R6/lib/libXext.6.dylib
checking for X11/extensions/Xrandr.h… yes
– dynamic libXrender -> /usr/X11R6/lib/libXrender.1.dylib
– dynamic libXrandr -> /usr/X11R6/lib/libXrandr.2.dylib
checking for OpenGL (GLX) support… yes
checking for pthreads… yes
checking for recursive mutexes… yes
checking for pthread semaphores… yes
checking for Altivec with GCC altivec.h and -maltivec option… no
checking for Altivec with GCC -maltivec option… no
checking for Altivec with GCC altivec.h and -faltivec option… no
checking for Altivec with GCC -faltivec option… no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sdl-config
config.status: creating SDL.spec
config.status: creating SDL.qpg
config.status: creating sdl.pc
config.status: creating include/SDL_config.h
config.status: include/SDL_config.h is unchanged
config.status: executing libtool commands
config.status: executing default commands
Generating dependencies for ./src/SDL.c
Generating dependencies for ./src/SDL_error.c
Generating dependencies for ./src/SDL_fatal.c
Generating dependencies for ./src/audio/SDL_audio.c
Generating dependencies for ./src/audio/SDL_audiocvt.c
Generating dependencies for ./src/audio/SDL_audiodev.c
Generating dependencies for ./src/audio/SDL_mixer.c
Generating dependencies for ./src/audio/SDL_mixer_MMX.c
Generating dependencies for ./src/audio/SDL_mixer_MMX_VC.c
Generating dependencies for ./src/audio/SDL_mixer_m68k.c
Generating dependencies for ./src/audio/SDL_wave.c
Generating dependencies for ./src/cdrom/SDL_cdrom.c
Generating dependencies for ./src/cpuinfo/SDL_cpuinfo.c
Generating dependencies for ./src/events/SDL_active.c
Generating dependencies for ./src/events/SDL_events.c
Generating dependencies for ./src/events/SDL_expose.c
Generating dependencies for ./src/events/SDL_keyboard.c
Generating dependencies for ./src/events/SDL_mouse.c
Generating dependencies for ./src/events/SDL_quit.c
Generating dependencies for ./src/events/SDL_resize.c
Generating dependencies for ./src/file/SDL_rwops.c
Generating dependencies for ./src/stdlib/SDL_getenv.c
Generating dependencies for ./src/stdlib/SDL_iconv.c
Generating dependencies for ./src/stdlib/SDL_malloc.c
Generating dependencies for ./src/stdlib/SDL_qsort.c
Generating dependencies for ./src/stdlib/SDL_stdlib.c
Generating dependencies for ./src/stdlib/SDL_string.c
Generating dependencies for ./src/thread/SDL_thread.c
Generating dependencies for ./src/timer/SDL_timer.c
Generating dependencies for ./src/video/SDL_RLEaccel.c
Generating dependencies for ./src/video/SDL_blit.c
Generating dependencies for ./src/video/SDL_blit_0.c
Generating dependencies for ./src/video/SDL_blit_1.c
Generating dependencies for ./src/video/SDL_blit_A.c
Generating dependencies for ./src/video/SDL_blit_N.c
Generating dependencies for ./src/video/SDL_bmp.c
Generating dependencies for ./src/video/SDL_cursor.c
Generating dependencies for ./src/video/SDL_gamma.c
Generating dependencies for ./src/video/SDL_pixels.c
Generating dependencies for ./src/video/SDL_stretch.c
Generating dependencies for ./src/video/SDL_surface.c
Generating dependencies for ./src/video/SDL_video.c
Generating dependencies for ./src/video/SDL_yuv.c
Generating dependencies for ./src/video/SDL_yuv_mmx.c
Generating dependencies for ./src/video/SDL_yuv_sw.c
Generating dependencies for ./src/joystick/SDL_joystick.c
Generating dependencies for ./src/video/dummy/SDL_nullevents.c
Generating dependencies for ./src/video/dummy/SDL_nullmouse.c
Generating dependencies for ./src/video/dummy/SDL_nullvideo.c
Generating dependencies for ./src/audio/disk/SDL_diskaudio.c
Generating dependencies for ./src/audio/dummy/SDL_dummyaudio.c
Generating dependencies for ./src/loadso/dlopen/SDL_sysloadso.c
Generating dependencies for ./src/video/quartz/SDL_QuartzEvents.m
Generating dependencies for ./src/video/quartz/SDL_QuartzGL.m
Generating dependencies for ./src/video/quartz/SDL_QuartzVideo.m
Generating dependencies for ./src/video/quartz/SDL_QuartzWM.m
Generating dependencies for ./src/video/quartz/SDL_QuartzWindow.m
Generating dependencies for ./src/video/x11/SDL_x11dga.c
Generating dependencies for ./src/video/x11/SDL_x11dyn.c
Generating dependencies for ./src/video/x11/SDL_x11events.c
Generating dependencies for ./src/video/x11/SDL_x11gamma.c
Generating dependencies for ./src/video/x11/SDL_x11gl.c
Generating dependencies for ./src/video/x11/SDL_x11image.c
Generating dependencies for ./src/video/x11/SDL_x11modes.c
Generating dependencies for ./src/video/x11/SDL_x11mouse.c
Generating dependencies for ./src/video/x11/SDL_x11video.c
Generating dependencies for ./src/video/x11/SDL_x11wm.c
Generating dependencies for ./src/video/x11/SDL_x11yuv.c
Generating dependencies for ./src/video/Xext/Xxf86dga/XF86DGA.c
Generating dependencies for ./src/video/Xext/Xxf86dga/XF86DGA2.c
Generating dependencies for ./src/video/dga/SDL_dgaevents.c
Generating dependencies for ./src/video/dga/SDL_dgamouse.c
Generating dependencies for ./src/video/dga/SDL_dgavideo.c
Generating dependencies for ./src/video/Xext/Xxf86vm/XF86VMode.c
Generating dependencies for ./src/video/Xext/Xv/Xv.c
Generating dependencies for ./src/video/Xext/Xinerama/Xinerama.c
Generating dependencies for ./src/video/Xext/XME/xme.c
Generating dependencies for ./src/thread/pthread/SDL_systhread.c
Generating dependencies for ./src/thread/pthread/SDL_syssem.c
Generating dependencies for ./src/thread/pthread/SDL_sysmutex.c
Generating dependencies for ./src/thread/pthread/SDL_syscond.c
Generating dependencies for ./src/audio/macosx/SDL_coreaudio.c
Generating dependencies for ./src/joystick/darwin/SDL_sysjoystick.c
Generating dependencies for ./src/cdrom/macosx/AudioFilePlayer.c
Generating dependencies for ./src/cdrom/macosx/AudioFileReaderThread.c
Generating dependencies for ./src/cdrom/macosx/CDPlayer.c
Generating dependencies for ./src/cdrom/macosx/SDLOSXCAGuard.c
Generating dependencies for ./src/cdrom/macosx/SDL_syscdrom.c
Generating dependencies for ./src/timer/unix/SDL_systimer.c


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Install it anyway. Does it work?On 10/02/2010 07:09 AM, hypert wrote:

I have a pretty decent 10.6 setup. Apple’s gcc version 4.2.1. Several
"standard" libraries I’ve compiled (libz, gif, jpeg, lame, etc.), so I
know the environment is pretty solid. I’ve been compiling open source
for Solaris and Mac OS X for quite a while, so I’m comfortable with the
whole configure/make process, even when I need to go compile some other
dependencies first.

But, I can’t get libsdl to compile. The configure out looks out, and
compile “seems” to complete (no actual errors), but I get these right at
the end.

Code:

ranlib: file: /usr/local/lib/libSDL.a(SDL_audiodev.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_mixer_MMX.o) has no symbols
[etc]

I assume there is a problem, so I’m reluctant to install the library.
Any suggestions?

the “has no symbols” is a weird error and the resulting linked library
won’t have any symbol and won’t work at all.
You could try to compile SDL from the xcode project, or if you like
command line, cd to the .xcodeproj file and run ‘xcodebuild’

bye
VittorioOn Sun, Oct 3, 2010 at 8:32 PM, Nikos Chantziaras wrote:

On 10/02/2010 07:09 AM, hypert wrote:

I have a pretty decent 10.6 setup. Apple’s gcc version 4.2.1. Several
"standard" libraries I’ve compiled (libz, gif, jpeg, lame, etc.), so I
know the environment is pretty solid. I’ve been compiling open source
for Solaris and Mac OS X for quite a while, so I’m comfortable with the
whole configure/make process, even when I need to go compile some other
dependencies first.

But, I can’t get libsdl to compile. The configure out looks out, and
compile “seems” to complete (no actual errors), but I get these right at
the end.

Code:

ranlib: file: /usr/local/lib/libSDL.a(SDL_audiodev.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_mixer_MMX.o) has no symbols
[etc]

I assume there is a problem, so I’m reluctant to install the library.
Any suggestions?

Install it anyway. ?Does it work?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

so I’m starting to deal with 1.3 on os x (10.6) and ran into the same
issue. wanted to see if anyone has stumbled across a solution? I
managed to build inside XCode, but then the SDLTest project failed to
build with 200 errors, all in the x11 directory.

I also tried the “sudo make install anyway” suggestion, and got
similar errors. Then I noticed this line:

abort: There is no Mercurial repository here (.hg not found)!

Do I need to have a local checkout? (I had just downloaded the tar.gz file)

Thanks,

JohnOn Mon, Oct 4, 2010 at 3:21 AM, Vittorio G. <vitto.giova at yahoo.it> wrote:

the “has no symbols” is a weird error and the resulting linked library
won’t have any symbol and won’t work at all.
You could try to compile SDL from the xcode project, or if you like
command line, cd to the .xcodeproj file and run ‘xcodebuild’

bye
Vittorio

On Sun, Oct 3, 2010 at 8:32 PM, Nikos Chantziaras wrote:

On 10/02/2010 07:09 AM, hypert wrote:

I have a pretty decent 10.6 setup. Apple’s gcc version 4.2.1. Several
"standard" libraries I’ve compiled (libz, gif, jpeg, lame, etc.), so I
know the environment is pretty solid. I’ve been compiling open source
for Solaris and Mac OS X for quite a while, so I’m comfortable with the
whole configure/make process, even when I need to go compile some other
dependencies first.

But, I can’t get libsdl to compile. The configure out looks out, and
compile “seems” to complete (no actual errors), but I get these right at
the end.

Code:

ranlib: file: /usr/local/lib/libSDL.a(SDL_audiodev.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_mixer_MMX.o) has no symbols
[etc]

I assume there is a problem, so I’m reluctant to install the library.
Any suggestions?

Install it anyway. ?Does it work?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Ok, I think I figured it out. I had previously installed SDL with
fink, and needed to fink remove sdl before things would work.

JohnOn Fri, Jan 14, 2011 at 12:16 PM, John Magnotti <@John_Magnotti> wrote:

so I’m starting to deal with 1.3 on os x (10.6) and ran into the same
issue. wanted to see if anyone has stumbled across a solution? I
managed to build inside XCode, but then the SDLTest project failed to
build with 200 errors, all in the x11 directory.

I also tried the “sudo make install anyway” suggestion, and got
similar errors. Then I noticed this line:

abort: There is no Mercurial repository here (.hg not found)!

Do I need to have a local checkout? (I had just downloaded the tar.gz file)

Thanks,

John

On Mon, Oct 4, 2010 at 3:21 AM, Vittorio G. <vitto.giova at yahoo.it> wrote:

the “has no symbols” is a weird error and the resulting linked library
won’t have any symbol and won’t work at all.
You could try to compile SDL from the xcode project, or if you like
command line, cd to the .xcodeproj file and run ‘xcodebuild’

bye
Vittorio

On Sun, Oct 3, 2010 at 8:32 PM, Nikos Chantziaras wrote:

On 10/02/2010 07:09 AM, hypert wrote:

I have a pretty decent 10.6 setup. Apple’s gcc version 4.2.1. Several
"standard" libraries I’ve compiled (libz, gif, jpeg, lame, etc.), so I
know the environment is pretty solid. I’ve been compiling open source
for Solaris and Mac OS X for quite a while, so I’m comfortable with the
whole configure/make process, even when I need to go compile some other
dependencies first.

But, I can’t get libsdl to compile. The configure out looks out, and
compile “seems” to complete (no actual errors), but I get these right at
the end.

Code:

ranlib: file: /usr/local/lib/libSDL.a(SDL_audiodev.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_mixer_MMX.o) has no symbols
[etc]

I assume there is a problem, so I’m reluctant to install the library.
Any suggestions?

Install it anyway. ?Does it work?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Did you run the ‘autogen.sh’ and/or ‘configure’ script in the source directory?

I discovered (the hard way) that if you just build SDL in Xcode that it won’t build some of the main include files correctly, and as a result, things won’t compile.

With that said, I’m using the mercurial trunk version; not a snapshot.

-ShawnOn Jan 14, 2011, at 10:16 AM, John Magnotti wrote:

so I’m starting to deal with 1.3 on os x (10.6) and ran into the same
issue. wanted to see if anyone has stumbled across a solution? I
managed to build inside XCode, but then the SDLTest project failed to
build with 200 errors, all in the x11 directory.

I also tried the “sudo make install anyway” suggestion, and got
similar errors. Then I noticed this line:

abort: There is no Mercurial repository here (.hg not found)!

Do I need to have a local checkout? (I had just downloaded the tar.gz file)

Thanks,

John

On Mon, Oct 4, 2010 at 3:21 AM, Vittorio G. <vitto.giova at yahoo.it> wrote:

the “has no symbols” is a weird error and the resulting linked library
won’t have any symbol and won’t work at all.
You could try to compile SDL from the xcode project, or if you like
command line, cd to the .xcodeproj file and run ‘xcodebuild’

bye
Vittorio

On Sun, Oct 3, 2010 at 8:32 PM, Nikos Chantziaras wrote:

On 10/02/2010 07:09 AM, hypert wrote:

I have a pretty decent 10.6 setup. Apple’s gcc version 4.2.1. Several
"standard" libraries I’ve compiled (libz, gif, jpeg, lame, etc.), so I
know the environment is pretty solid. I’ve been compiling open source
for Solaris and Mac OS X for quite a while, so I’m comfortable with the
whole configure/make process, even when I need to go compile some other
dependencies first.

But, I can’t get libsdl to compile. The configure out looks out, and
compile “seems” to complete (no actual errors), but I get these right at
the end.

Code:

ranlib: file: /usr/local/lib/libSDL.a(SDL_audiodev.o) has no symbols
ranlib: file: /usr/local/lib/libSDL.a(SDL_mixer_MMX.o) has no symbols
[etc]

I assume there is a problem, so I’m reluctant to install the library.
Any suggestions?

Install it anyway. Does it work?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org