From: <k.w...@at...> - 2002-10-30 16:25:11
|
> I am trying to build the Mesa-4.0.4 libs under HPUX-11.11. > > Got passed the "Unsatisfied symbols: finite". > Thank you Brian Paul, Karl Schultz & Rouben Rostamian. > > But now more and more enigmatic unsatisfied symbols: > > cc -I../include +O3 +DAportable -Aa -D_HPUX_SOURCE > -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM nurb.c > -L../lib -lglut -lGLU -lGL -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib > -lXext -lXmu -lXi -lX11 -lm -o nurb > > /usr/ccs/bin/ld: Unsatisfied symbols: > __nwa__FUl (first referenced in ../lib/libGLU.a(error.o)) (code) > [Vtable]key:__dt__21__versioned_type_infoFv (first referenced in > ../lib/libGLU.a(error.o)) (data) > __PureVirtualCalled (first referenced in ../lib/libGLU.a(error.o)) > (code) > __nw__FUl (first referenced in ../lib/libGLU.a(error.o)) (code) > __dla__FPv (first referenced in ../lib/libGLU.a(error.o)) (code) > __dl__FPv (first referenced in ../lib/libGLU.a(error.o)) (code) > > Again, any help would be much appreciated. > > Cheers. > Aurelio. That's probably because the NURBS code in the si-glu is written in C++ and the makefiles aren't set up to build GLU correctly. The severity of this problem varies from platform to platform as does its solution, so this problem still exists on some platforms. And I don't know off-hand how to fix it. I would start by looking for a C++ run-time lib that needs to be linked in. Your choices: 1) Figure out how to fix the Makefiles and then send me the fix so I can apply it :-) . 2) Tweak the Makefiles to simply not build the NURBS code and don't include those objects in libGLU. Clearly this is a bad hack and useful only if you are going to be the only one using the lib and already know that you are not using NURBS. 3) Switch the Makefiles to build src-glu instead. This is easy to do, but you'll be getting the older version of the tessellator, which isn't nearly as good as the one in si-glu. That's all I can offer at present. Karl |
From: Brian P. <br...@tu...> - 2002-10-31 15:01:01
|
> The easiest thing to do seems to be to add "-L/usr/lib -lCsup" > to the "APP_LIB_DEPS" macro for hpux10 target in Make-config. > > This certianly got me past the previous sticking point. OK, I'll make this change. Thanks. -Brian |
From: Brian P. <br...@tu...> - 2002-10-30 20:51:33
|
k.w...@at... wrote: >>I am trying to build the Mesa-4.0.4 libs under HPUX-11.11. >> >>Got passed the "Unsatisfied symbols: finite". >>Thank you Brian Paul, Karl Schultz & Rouben Rostamian. >> >>But now more and more enigmatic unsatisfied symbols: >> >>cc -I../include +O3 +DAportable -Aa -D_HPUX_SOURCE >> -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM nurb.c >> -L../lib -lglut -lGLU -lGL -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib >> -lXext -lXmu -lXi -lX11 -lm -o nurb >> >>/usr/ccs/bin/ld: Unsatisfied symbols: >> __nwa__FUl (first referenced in ../lib/libGLU.a(error.o)) (code) >> [Vtable]key:__dt__21__versioned_type_infoFv (first referenced in >> ../lib/libGLU.a(error.o)) (data) >> __PureVirtualCalled (first referenced in ../lib/libGLU.a(error.o)) >> (code) >> __nw__FUl (first referenced in ../lib/libGLU.a(error.o)) (code) >> __dla__FPv (first referenced in ../lib/libGLU.a(error.o)) (code) >> __dl__FPv (first referenced in ../lib/libGLU.a(error.o)) (code) >> >>Again, any help would be much appreciated. >> >>Cheers. >>Aurelio. > > > That's probably because the NURBS code in the si-glu is written in C++ > and the makefiles aren't set up to build GLU correctly. > > The severity of this problem varies from platform to > platform as does its solution, so this problem still > exists on some platforms. And I don't know off-hand > how to fix it. > > I would start by looking for a C++ run-time lib that needs > to be linked in. > > Your choices: > > 1) Figure out how to fix the Makefiles and then send > me the fix so I can apply it :-) . > > 2) Tweak the Makefiles to simply not build the NURBS code > and don't include those objects in libGLU. Clearly this > is a bad hack and useful only if you are going to be > the only one using the lib and already know that you are > not using NURBS. > > 3) Switch the Makefiles to build src-glu instead. This > is easy to do, but you'll be getting the older version > of the tessellator, which isn't nearly as good as the > one in si-glu. > > That's all I can offer at present. > > Karl Another option would be to link the demo programs with C++ instead of C. That should pull in the C++ runtime library which would probably resolve those symbols. Ideally, the libGLU library would be linked with the C++ runtime library. But I don't know how to do that (on HPUX anyway). -Brian |
From: Aurelio T. <az...@bo...> - 2002-10-31 03:07:59
|
The easiest thing to do seems to be to add "-L/usr/lib -lCsup" to the "APP_LIB_DEPS" macro for hpux10 target in Make-config. This certianly got me past the previous sticking point. However, I have still not managed to complete the build, but this time due to running out of disk space. :-( Thanks for the help. Cheers. Aurelio. |
From: Aurelio T. <az...@bo...> - 2002-10-31 03:36:00
|
Miguel wrote: > I am trying to install Mesa on a hp11 machine but I could not do > that. with the new style I got Make: error in line 365 > And with the old style I got: ( after adding #define finite ...) > Make: Cannot load -c. > What could be wrong? Looks like Make is trying to load option "-c". I suspect one or more of your macros is unset, possibly CPLUSPLUS & CCFLAGS; check under the target you are using in Make-config. I am using target hpux10 and have ended up with this: $(MAKE) $(MFLAGS) -f Makefile.X11 targets \ "GL_LIB = libGL.a" \ "GLU_LIB = libGLU.a" \ "GLUT_LIB = libglut.a" \ "GLW_LIB = libGLw.a" \ "OSMESA_LIB = libOSMesa.a" \ "CC = cc" \ "CPLUSPLUS = aCC" \ "CFLAGS = +O3 +DAportable -Aa -D_HPUX_SOURCE \ -I/usr/include/X11R6 -I/usr/contrib/X11R6/include \ -DUSE_XSHM" \ "CCFLAGS = $(CFLAGS)" \ "MAKELIB = ../bin/mklib.ar-ruv" \ "APP_LIB_DEPS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib \ -lXext -lXmu -lXi -lX11 -lm -L/usr/lib -lCsup" Hope that helps. Cheers. Aurelio. |