Hi;
I have serious problems forcing the GNU Pascal compiler to use /usr/lib/libc.a instead of /usr/lib/libc.so.1 (on Solaris 8). The result is a segmentation fault at runtime. Trying -static among the LFLAGS gives me:
Undefined first referenced symbol in file _dlopen /usr/lib/libc.a(nss_deffinder.o) _dlclose /usr/lib/libc.a(nss_deffinder.o) _dlsym /usr/lib/libc.a(nss_deffinder.o)
The same happens if I try to play with -B static and -B dynamic. I gave a try to recompile the Pascal compiler including GCC to get a version of the libraries that it can handle, but that requires such a large number of other installations that I am very reluctant to do it. I'm pretty much at my wit's end. Has anyone out there experienced similar trouble?
Regards, Hartmut Schmider High Performance Computing Virtual Laboratory Queen's University 141 Collingwood St. Kingston, Ontario, CANADA K7L 3X6 hs7@post.queensu.ca phone (613) 533 6000 ext 78252 FAX (613) 533 2015
Hartmut Schmider wrote:
I have serious problems forcing the GNU Pascal compiler to use /usr/lib/libc.a instead of /usr/lib/libc.so.1 (on Solaris 8). The result is a segmentation fault at runtime. Trying -static among the LFLAGS gives me:
Undefined first referenced symbol in file _dlopen /usr/lib/libc.a(nss_deffinder.o) _dlclose /usr/lib/libc.a(nss_deffinder.o) _dlsym /usr/lib/libc.a(nss_deffinder.o)
You might have to add -ldl. If this results in an unfound library, you can compile the attached dummy library:
gcc -c dlsym.c && ar rc libdl.a dlsym.o
I gave a try to recompile the Pascal compiler including GCC to get a version of the libraries that it can handle, but that requires such a large number of other installations that I am very reluctant to do it.
I don't think it does -- it needs the GCC and GPC sources (obviously), GNU make and GNU sed (currently only due to a bug; the next version of GPC should work again with other kinds of sed as well).
Other tools listed in the installation chapter of the manual are only needed if you build GPC from the CVS version (so you don't need bison, flex, etc. if you get a normal source .tar.gz) or if you want to build a local copy of the WWW pages or printable documentation.
Frank