cball@ishmael (11/15/88)
I'm trying to install g++ on a BSD4.3 Vax. The Sun-3 installation went well, but I'm having problems with the Vax installation. The compilers(gcc and g++) are built, and now I'm working in dist-libg++. Unfortunately, test0 fails while loading test.hello.o with the following message: ld: relocation address out of range in /usr/local/lib/crt0+.o I'm pretty certain that I'm using the right defines, link's etc. for the Vax. We have sources, so I tried including the code for __do_global_init() and __do_global_cleanup() in the BSD crt0.c and using that for /usr/local/lib/crt0+.o. Unfortunately, ld still fails with the same error. Does anyone have any ideas? Thanks, Charles Ball cball@inmet.inmet.com Intermetrics, Inc. uunet!inmet!cball
dcmartin@cheddar.cs.wisc.edu (David C. Martin) (11/17/88)
Some things to note: hardcoded pathnames in ld.c for DEFAULT_SEARCH_PREFIX which should be the location of your libraries .. the only directories currently searched are /lib, /usr/lib and /usr/local/lib. You might want to define this in your Makefile for g++. Edit test0.h to specify that crt* are as /usr/local/lib/gcc-crt*, not as defaulted to /usr/local/lib/crt*. That should be it. dcm ----- David C. Martin arpa: dcmartin@cs.wisc.edu University of Wisconsin - Madison uucp: ..!ucbvax!dcmartin Computer Sciences Department at&t: 608/262-6624 (O)