public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Building on SunOS - sparc-sun-sunos4.1.3_U1
@ 1997-09-08  7:37 Kate Hedstrom
  0 siblings, 0 replies; 3+ messages in thread
From: Kate Hedstrom @ 1997-09-08  7:37 UTC (permalink / raw)
  To: egcs, kh

> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Building on SunOS - sparc-sun-sunos4.1.3_U1
  1997-09-08  3:47 Kevin Hughes
@ 1997-09-08  5:53 ` Dave Love
  0 siblings, 0 replies; 3+ messages in thread
From: Dave Love @ 1997-09-08  5:53 UTC (permalink / raw)
  To: Kevin Hughes; +Cc: egcs

>>>>> "Kevin" == Kevin Hughes <kh@wg.icl.co.uk> writes:

 Kevin> I have tried to build egcs-970904 on my SunOS m/c but get the following fail 
 Kevin> collect2: ld returned 2 exit status
 Kevin> ld: Undefined symbol 
 Kevin>    _strtoul 

Add `-DFFEPROJ_STRTOUL=0' to CFLAGS -- see gcc/f/INSTALL.  This could
be eliminated either by linking libiberty (I think) and/or using
autoconf in the `f' directory again, but I haven't had time to look
into the current build mechanism as I should.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Building on SunOS - sparc-sun-sunos4.1.3_U1
@ 1997-09-08  3:47 Kevin Hughes
  1997-09-08  5:53 ` Dave Love
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Hughes @ 1997-09-08  3:47 UTC (permalink / raw)
  To: egcs

I have tried to build egcs-970904 on my SunOS m/c but get the following fail 

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'

I built egcc by following the README instructions:_

	configure
	make

The configure.status is

d322% cat con*.status
#!/bin/sh
# This file was generated automatically by configure.  Do not edit.
# This directory was configured as follows:
configure --host=sparc-sun-sunos4.1.3_U1 --prefix=/yperf/yperf --norecursion 
# 


Any help much appreciated


Kevin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-09-08  7:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-08  7:37 Building on SunOS - sparc-sun-sunos4.1.3_U1 Kate Hedstrom
  -- strict thread matches above, loose matches on Subject: below --
1997-09-08  3:47 Kevin Hughes
1997-09-08  5:53 ` Dave Love

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).