Steven Woolsey:
|I am trying to compile dx-4.1.0 on a sun running Solaris 2.6. The
|compiler is gcc-2.95.2. ... initially had a problem with the rtti stuff
|(__rtti_user, etc) but I set CXXFLAGS=-fno-rtti and that took care of the
|rest of the problem. I cant seem to get rid of the rest though.
|
|When it gets to the linking phase in the directory src/uipp/dxui it
|errors out with the following:
|
|Undefined first referenced
| symbol in file
|terminate(void) ../base/libBASE.a(Application.o)
|__pure_virtual DeleteNodeCommand.o
|__builtin_vec_new ColormapNode.o
|__builtin_vec_delete Node.o
|__throw ../base/libBASE.a(Application.o)
Looks like you may be missing a library (or possibly you didn't make clean
after changing your CXXFLAGS?)
On Solaris 2.6 gcc 2.8.1, __pure_virtual is defined in libgcc.a (maybe just
add a -lgcc) to the link line).
FWIW, I built 4.1.0 on Solaris 2.6 box not long ago, albeit with gcc 2.8.1.
Here are the configure gymnastics I used. This accounts for global
environments setting ARCH (configure doesn't like that), the java makefile in
dx-4.1.0 requiring gmake, and OpenGL installed in some non-standard
location (sysadmins here hadn't done it yet).
env ARCH="" \
CXX="/usr/local/bin/g++" \
CC="/usr/local/bin/gcc" \
CFLAGS="-O2" CXXFLAGS="-O2" \
CPPFLAGS="-I/usr/openwin/include -I/usr/openwin/include/X11
-I/home/rhh/software/Sun_OpenGL_121/openwin/share/include" \
LDFLAGS="-Wl,-R,/usr/openwin/lib:/home/rhh/software/Sun_OpenGL_121/openwin/lib
-L/usr/openwin/lib -L/home/rhh/software/Sun_OpenGL_121/openwin/lib" \
configure --prefix=$HOME/software/dx-4.1.0
gmake
--
Randall Hopper (mailto:[EMAIL PROTECTED])
EPA Scientific Visualization Center
US EPA MD/24 ERC-1A; RTP, NC 27711