There are two possible problems:
1) less likely, you are mixing ELF and ECOFF object files or libraries.
2) you've run into a limit in the current ELF linker in the size of the
.got section (which is related to the number of global variables and
functions in the program).
Assuming the second, there is a way that you can work around the problem
right now: turn some of your static libraries into shared libraries.
>From your link line, there appear to be three likely candidates:
-lvtkTcl, -lvtk, and -lGL. The link line for doing that is
gcc -shared -o <library>.so -Wl,--whole-archive <library>.a \
Now you have three options: (1) you can either put the newly created
shared libraries in one of the standard library directories, (2) if
you have a dedicated directory heirarchy for your application (e.g.
/usr/local/vtk/) you can put them in /usr/local/vtk/lib and add that
to your /etc/ld.so.conf, or (3) you can pick a directory (usually
the one the executable resides in) and add -Wl,-rpath=<directory> to
the link line _for the executable_.
-- To unsubscribe: send e-mail to email@example.com with 'unsubscribe' as the subject. Do not send it to firstname.lastname@example.org
Copyright © 1995-1997 Red Hat Software. Legal notices