[GRASSLIST:4735] Re: opengl compile problem
Glynn Clements
glynn.clements at virgin.net
Mon Oct 14 11:45:34 EDT 2002
Richard Greenwood wrote:
> > Post the section of the config.log file starting with:
> >
> > configure:8954: checking for gluBeginCurve in -lGLU
> >
> > and ending with:
> >
> > configure:9017: checking whether to use ODBC
>
> Below is my configure.log from 8954 to the end. Thanks for your help.
> === configure.log =====================================
> configure:8954: checking for gluBeginCurve in -lGLU
> configure:8971: gcc -o conftest -g -O2 -L/usr/lib -L/usr/X11R6/lib
> -L/lib/i686 -L/lib conftest.c -lGLU -lGL -L/usr/X11R6/lib -lSM -lICE
> -lX11 -lm 1>&5
> /usr/lib/libGLU.so: undefined reference to `operator new[](unsigned)'
> /usr/lib/libGLU.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
> /usr/lib/libGLU.so: undefined reference to `operator delete(void*)'
> /usr/lib/libGLU.so: undefined reference to `__gxx_personality_v0'
> /usr/lib/libGLU.so: undefined reference to `__cxa_pure_virtual'
> /usr/lib/libGLU.so: undefined reference to `vtable for __cxxabiv1::__class_type_info'
> /usr/lib/libGLU.so: undefined reference to `operator delete[](void*)'
> /usr/lib/libGLU.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info'
> /usr/lib/libGLU.so: undefined reference to `operator new(unsigned)'
Right; libGLU depends upon libstdc++, but doesn't have it as a
dependency.
If you have autoconf installed, change line 850 of configure.in from:
LOC_CHECK_LIBS(GLU,gluBeginCurve,GLU,$OPENGL_LIB_PATH,OPENGLULIB,$OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB,,)
to:
LOC_CHECK_LIBS(GLU,gluBeginCurve,GLU,$OPENGL_LIB_PATH,OPENGLULIB,$OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB,,,-lstdc++)
(i.e. add ",-lstdc++ to the end of the list), then run "autoconf" in
the top-level directory.
Otherwise, you'll need to obtain the updated configure script from
CVS:
http://freegis.org/cgi-bin/viewcvs.cgi/*checkout*/grass/configure?rev=1.120
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-user
mailing list