From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kate Hedstrom To: egcs@cygnus.com, kh@wg.icl.co.uk Subject: Re: Building on SunOS - sparc-sun-sunos4.1.3_U1 Date: Mon, 08 Sep 1997 07:37:00 -0000 Message-id: <199709081312.JAA21756@ahab.rutgers.edu> X-SW-Source: 1997-09/msg00279.html > collect2: ld returned 2 exit status > ld: Undefined symbol > _strtoul > *** Error code 1 > make: Fatal error: Command failed for target `f771' > Current working directory /d322/kh/egcs-970904/gcc > *** Error code 1 > make: Fatal error: Command failed for target `f771' There are two ways to fix this: 1. go into gcc/f/proj.h and modify: #define FFEPROJ_STRTOUL 1 /* 0=>use untested code in proj.c. */ to #define FFEPROJ_STRTOUL 0 /* 0=>use untested code in proj.c. */ I have done this successfully on a Sun3. 2. modify your shared libc.so.x.x so that it includes a version of strtoul. The one I use is from the BSD bind package since I was installing gethostbyname and friends from there anyway. You might want to grab strerror while you are at it. Kate