Re: [Plib-devel] SUNWspro patch, questions
Brought to you by:
sjbaker
From: Curtis L. O. <cu...@me...> - 2000-06-28 15:30:18
|
Steve Baker writes: > > Also - not sure if it is my version of automake or not (1.4), but automake > > creates PLIB Makefile's that assume you are using gcc (uses -Md to create > > dependencies). I didn't know of any easy way to fix this - it gives a > > warning message when compiling with SUNWspro 4.2, but builds fine. > > I have no idea - autoconf/automake is a Black Art as > far as I'm concerned. Touching configure.in is *scarey*! Yes this part about handling dependencies is definitely a black art and they've gone to great lengths to hide it from even the developers who use automake/autoconf. > It seems that with this line in configure.in: > > CPPFLAGS="$CPPFLAGS -I$x_includes" Hmmm, I'm surprised you even got away with this. I've seen this sort of thing break different versions of Make which didn't like the circular reference. > ...causes PLIB modules to compile with: > > -I/usr/X11R6/include > > ...which causes the *wierdest* symptoms.... > > c++ -g -O2 -O6 -Wall -o tuxkart start_tuxkart.o tuxkart.o gfx.o material.o gui.o status.o sound.o utils.o isect.o guNet.o loader.o guClock.o Track.o Driver.o Herring.o Explosion.o KartDriver.o Traffic.o PlayerDriver.o AutoDriver.o Projectile.o -lplibsl -lplibssg -lplibpu -lplibfnt -lplibsg -lglut -lGLU -lGL -L/usr/X11R6/lib -lSM -lICE -lpthread -lX11 -lXi -lXext -lXmu -lm > Herring.o: In function `HerringInstance type_info function': > /u/tuxkart/src/Herring.cxx(.text+0x941): undefined reference to `ssgVtxTable::ssgVtxTable(GLenum, ssgVertexArray *, ssgNormalArray *, ssgTexCoordArray *, ssgColourArray *)' > Herring.o: In function `Shadow::Shadow(float, float, float, float)': > /u/tuxkart/src/Herring.cxx:84: undefined reference to `ssgVtxTable::ssgVtxTable(GLenum, ssgVertexArray *, ssgNormalArray *, ssgTexCoordArray *, ssgColourArray *)' > > ...I can't understand why that should possibly be. Compiled without /usr/X11R6/include, everything > works OK?!??! Sounds like you must have an older version of plib in /usr/X11R6 ... now wouldn't that be funny. :-) I have seen more complicated apps like FlightGear start to develop sensitivities with link orders. No idea if either of these are related, but they are the first things that come to mind. Curt. -- Curtis Olson Human Factors Research Lab Flight Gear Project Twin Cities cu...@hf... cu...@fl... Minnesota http://www.menet.umn.edu/~curt http://www.flightgear.org |