Build trouble on OS X

I’m having a problem building the latest 1.2.5 CVS HEAD as checked out
5 minutes ago on Mac OS X. When compiling, I get a link error:

 /usr/bin/gcc3  -o  

/Users/astraw/other-peoples-src/SDL12-patch-submit/PBProjects/SDL/
build/SDL.framework/Versions/A/SDL
"-L/Users/astraw/other-peoples-src/SDL12-patch-submit/PBProjects/SDL/
build"
"-F/Users/astraw/other-peoples-src/SDL12-patch-submit/PBProjects/SDL/
build" -filelist
/Users/astraw/other-peoples-src/SDL12-patch-submit/PBProjects/SDL/
build/SDL.build/Framework.build/Objects-normal/LinkFileList “-arch”
“ppc” “-Wl,-exported_symbols_list”
"…/…/src/main/macosx/exports/SDL.x" “-prebind” “-Wl,-single_module”
"-dynamiclib" “-compatibility_version” “1” “-current_version” “1"
”-seg1addr" “0x30000000” “-framework” “IOKit” “-framework” “Cocoa”
"-framework" “OpenGL” “-framework” “Carbon” “-framework” “QuickTime”
-install_name "echo "@executable_path/../Frameworks/SDL.framework/Versions/A/SDL" | /usr/bin/sed 's!//*!/!g'"
ld: symbols names listed in -exported_symbols_list:
…/…/src/main/macosx/exports/SDL.x not in linked objects
_SDL_LoadFunction
_SDL_LoadObject
_SDL_UnloadObject
/usr/bin/libtool: internal link edit command failed
…failed DynamicLibrary.LinkUsingFileList
/Users/astraw/other-peoples-src/SDL12-patch-submit/PBProjects/SDL/
build/SDL.framework/Versions/A/SDL …
** BUILD FAILED **

This link error does not happen with the exact same system with a 1.2.5
CVS HEAD check out from March 5. Hopefully the problem results from
something silly I’ve done or forgot to do.

Perhaps the error is because I didn’t do the equivalent of ‘make
distclean’ – how do I do that using pbxbuild?

If it’s not my fault, though, it would sure be great to get fixed
before 1.2.6!

Cheers!
Andrew

I’m having a problem building the latest 1.2.5 CVS HEAD as checked out
5 minutes ago on Mac OS X. When compiling, I get a link error:

I get linking errors also when trying to compile from CVS. Alas… I
don’t know THAT much about compiling and linking to be able to fix it by
hand if it is a simple error somewhere. I have always used the release
1.2.5 for the last 6 months on my projects because CVS builds have never
worked for me. Anyone had any luck on OS-X building from the latest CVS
of 1.2.5?

  • Andrew

I get linking errors also when trying to compile from CVS. Alas… I
don’t know THAT much about compiling and linking to be able to fix it by
hand if it is a simple error somewhere. I have always used the release
1.2.5 for the last 6 months on my projects because CVS builds have never
worked for me. Anyone had any luck on OS-X building from the latest CVS
of 1.2.5?

Are you using Project Builder? The command line builds from CVS are
working fine for me…

–ryan.

I get linking errors also when trying to compile from CVS. Alas… I
don’t know THAT much about compiling and linking to be able to fix it
by
hand if it is a simple error somewhere. I have always used the
release
1.2.5 for the last 6 months on my projects because CVS builds have
never
worked for me. Anyone had any luck on OS-X building from the latest
CVS
of 1.2.5?

Are you using Project Builder? The command line builds from CVS are
working fine for me…

OK, I’ve succeeded in getting SDL to build on OS X. (My problems were
with both “pbxbuild” and the Project Builder GUI.) Here’s what I did
to fix it. I’m not sure if this is the “proper” thing to do, but it
solved the problem and the latest SDL runs great!

Cheers!
Andrew

Index: src/main/macosx/exports/SDL.xOn Wednesday, July 23, 2003, at 04:55 AM, Ryan C. Gordon wrote:

RCS file:
/home/sdlweb/libsdl.org/cvs/SDL12/src/main/macosx/exports/SDL.x,v
retrieving revision 1.6
diff -c -w -r1.6 SDL.x
*** src/main/macosx/exports/SDL.x 10 Jul 2003 07:46:19 -0000
1.6
— src/main/macosx/exports/SDL.x 23 Jul 2003 09:44:57 -0000


*** 74,82 ****
_SDL_GetModState
_SDL_SetModState
_SDL_GetKeyName

  •   _SDL_LoadObject
    
  •   _SDL_LoadFunction
    
  •   _SDL_UnloadObject
       _SDL_GetMouseState
       _SDL_GetRelativeMouseState
       _SDL_WarpMouse
    

— 74,79 ----

I get linking errors also when trying to compile from CVS. Alas… I
don’t know THAT much about compiling and linking to be able to fix it by
hand if it is a simple error somewhere. I have always used the release
1.2.5 for the last 6 months on my projects because CVS builds have never
worked for me. Anyone had any luck on OS-X building from the latest CVS
of 1.2.5?

Are you using Project Builder? The command line builds from CVS are
working fine for me…

–ryan.

I am doing command-line builds, pretty much exactly what the CVS build
tutorial says to do. =\ Ryan, what do you do to get it to build? I
could do it again quickly and dump what happens here if that will help
someone help. =P

  • Andrew

Did you mean 1.2.6?

Yeah, show the errors you’re getting. I’m running OS 10.2.6, I just
pulled the latest via CVS (1.2.6) and it compiled fine.

patOn Friday, July 25, 2003, at 03:52 AM, Andrew1300 at aol.com wrote:

I get linking errors also when trying to compile from CVS. Alas… I
don’t know THAT much about compiling and linking to be able to fix
it by
hand if it is a simple error somewhere. I have always used the
release
1.2.5 for the last 6 months on my projects because CVS builds have
never
worked for me. Anyone had any luck on OS-X building from the latest
CVS
of 1.2.5?

Are you using Project Builder? The command line builds from CVS are
working fine for me…

–ryan.

I am doing command-line builds, pretty much exactly what the CVS build
tutorial says to do. =\ Ryan, what do you do to get it to build? I
could do it again quickly and dump what happens here if that will help
someone help. =P

  • Andrew

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

Did you mean 1.2.6?

Yeah, show the errors you’re getting. I’m running OS 10.2.6, I just
pulled the latest via CVS (1.2.6) and it compiled fine.

pat

Here’s the build problems I have… I pulled fresh from the CVS of
1.2.6, did ./autogen.sh, ./configure, make, make install, all working
perfectly. And now to finish it off from within’ PB am trying to compile
the framework. I get the same error if I compile as Deployment or
Development. Any one had a problem like this? I have a feeling it might
be the PB building? If so, how do I do command line builds of the
framework? I’m on a 12" G4 PB with OS-X 10.2.6. Thanks guys…

  • Andrew

DynamicLibrary.LinkUsingFileList
/Users/deus/SDL16/SDL12/PBProjects/SDL/build/SDL.framework/Versions/A/SDL
/usr/bin/gcc2 -o
/Users/deus/SDL16/SDL12/PBProjects/SDL/build/SDL.framework/Versions/A/SDL
"-L/Users/deus/SDL16/SDL12/PBProjects/SDL/build"
"-F/Users/deus/SDL16/SDL12/PBProjects/SDL/build" -filelist
/Users/deus/SDL16/SDL12/PBProjects/SDL/build/SDL.build/Framework.build/Obje
cts-normal/LinkFileList “-arch” “ppc” “-Wl,-exported_symbols_list”
"…/…/src/main/macosx/exports/SDL.x" “-prebind” “-Wl,-single_module”
"-dynamiclib" “-compatibility_version” “1” “-current_version” “1"
”-seg1addr" “0x30000000” “-framework” “IOKit” “-framework” “Cocoa”
"-framework" “OpenGL” “-framework” “Carbon” “-framework” “QuickTime”
-install_name "echo "@executable_path/../Frameworks/SDL.framework/Versions/A/SDL" | /usr/bin/sed 's!//*!/!g'"
ld: symbols names listed in -exported_symbols_list:
…/…/src/main/macosx/exports/SDL.x not in linked objects
_SDL_LoadFunction
_SDL_LoadObject
_SDL_UnloadObject
/usr/bin/libtool: internal link edit command failed
…failed DynamicLibrary.LinkUsingFileList
/Users/deus/SDL16/SDL12/PBProjects/SDL/build/SDL.framework/Versions/A/SDL
…>To: sdl at libsdl.org

On Friday, July 25, 2003, at 03:52 AM, Andrew1300 at aol.com wrote:

I get linking errors also when trying to compile from CVS. Alas… I
don’t know THAT much about compiling and linking to be able to fix
it by
hand if it is a simple error somewhere. I have always used the
release
1.2.5 for the last 6 months on my projects because CVS builds have
never
worked for me. Anyone had any luck on OS-X building from the latest
CVS
of 1.2.5?

Are you using Project Builder? The command line builds from CVS are
working fine for me…

–ryan.

I am doing command-line builds, pretty much exactly what the CVS build
tutorial says to do. =\ Ryan, what do you do to get it to build? I
could do it again quickly and dump what happens here if that will help
someone help. =P

  • Andrew

Here’s the build problems I have… I pulled fresh from the CVS of
1.2.6, did ./autogen.sh, ./configure, make, make install, all working
perfectly. And now to finish it off from within’ PB am trying to
compile
the framework. I get the same error if I compile as Deployment or
Development. Any one had a problem like this? I have a feeling it
might
be the PB building? If so, how do I do command line builds of the
framework? I’m on a 12" G4 PB with OS-X 10.2.6. Thanks guys…

Use “pbxbuild” from the command line.

It sounds like the below isn’t fixed in CVS, although I’m not enough of
a Project Builder whiz to really know if this is the cause of the
problem. Any opinions?Begin forwarded message:

From: Andrew Straw <@Andrew_Straw>
Date: Thu Jul 24, 2003 11:55:29 Europe/Berlin
To: sdl at libsdl.org
Subject: Re: [SDL] build trouble on OS X
Reply-To: sdl at libsdl.org

On Wednesday, July 23, 2003, at 04:55 AM, Ryan C. Gordon wrote:

I get linking errors also when trying to compile from CVS. Alas… I
don’t know THAT much about compiling and linking to be able to fix
it by
hand if it is a simple error somewhere. I have always used the
release
1.2.5 for the last 6 months on my projects because CVS builds have
never
worked for me. Anyone had any luck on OS-X building from the latest
CVS
of 1.2.5?

Are you using Project Builder? The command line builds from CVS are
working fine for me…

OK, I’ve succeeded in getting SDL to build on OS X. (My problems were
with both “pbxbuild” and the Project Builder GUI.) Here’s what I did
to fix it. I’m not sure if this is the “proper” thing to do, but it
solved the problem and the latest SDL runs great!

Cheers!
Andrew

Index: src/main/macosx/exports/SDL.x

RCS file:
/home/sdlweb/libsdl.org/cvs/SDL12/src/main/macosx/exports/SDL.x,v
retrieving revision 1.6
diff -c -w -r1.6 SDL.x
*** src/main/macosx/exports/SDL.x 10 Jul 2003 07:46:19 -0000
1.6
— src/main/macosx/exports/SDL.x 23 Jul 2003 09:44:57 -0000


*** 74,82 ****
_SDL_GetModState
_SDL_SetModState
_SDL_GetKeyName

  •   _SDL_LoadObject
    
  •   _SDL_LoadFunction
    
  •   _SDL_UnloadObject
      _SDL_GetMouseState
      _SDL_GetRelativeMouseState
      _SDL_WarpMouse
    

— 74,79 ----


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