Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Steven N. Hirsch <shirsch@ibm.net>
Subject: Re: compiling glibc
Date: Mon, 06 Jan 1997 21:40:21 -0500	[thread overview]
Message-ID: <36c56f769d62072688b7365f998362f5.axp-list@archive.invalid> (raw)

This is a multi-part message in MIME format.

--------------7BE1D07D1AAFD74E52260261
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Yash Khemani wrote:
> 
> hi folks,
> 
> has anyone successfully compiled glibc v1.99 on a udb running rhl/axp
> v4.0?
> i get the following when it enters the sunrpc directory:
> 
> LD_LIBRARY_PATH=..:../elf:../nss ../elf/ld.so.1 ./rpcgen -c
> rpcsvc/bootparam.x -
> o xbootparam.cT
> ld.so.1: memory violation at pc=00004cf4 rp=000044d4 (bad address =
> 00000000)
> make: *** [xbootparam.c] Segmentation fault

> 
> any ideas why calling the shared lib ld.so.1 is causing a memory
> violation?
> 

ld.so.1 is not a shared library, it's the system dynamic loader.  I have
the same problem here.  In frustration, I hacked Makeconfig so that it
doesn't try to directly execute the loader.  Try the patch attached.

Would someone "in the know" please comment on this?  I'm not aware that
it is ever permissable to directly execute the loader..  This will not
be the end of your problems, however.  You will find that a handful of
the tests fail.  I haven't had time to dig into this at all - maybe over
the next weekend.

Steve

--------------7BE1D07D1AAFD74E52260261
Content-Type: text/plain; charset=us-ascii; name="Makeconfig.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="Makeconfig.diff"

*** Makeconfig.orig	Thu Dec 19 20:31:39 1996
--- Makeconfig	Sat Jan  4 22:04:56 1997
***************
*** 365,373 ****
  $(subst $(empty) ,:,$(strip $(patsubst -Wl$(comma)-rpath-link=%, %,\
  				       $(filter -Wl$(comma)-rpath-link=%,\
  						$(sysdep-LDFLAGS)))))
  define built-program-cmd
  LD_LIBRARY_PATH=$(rpath-link)$(patsubst %,:%,$(sysdep-library-path)) \
! $(elf-objpfx)$(rtld-installed-name) $(built-program-file)
  endef
  endif
  
--- 365,377 ----
  $(subst $(empty) ,:,$(strip $(patsubst -Wl$(comma)-rpath-link=%, %,\
  				       $(filter -Wl$(comma)-rpath-link=%,\
  						$(sysdep-LDFLAGS)))))
+ 
+ # LD_LIBRARY_PATH=$(rpath-link)$(patsubst %,:%,$(sysdep-library-path)) \
+ # $(elf-objpfx)$(rtld-installed-name) $(built-program-file)
+ 
  define built-program-cmd
  LD_LIBRARY_PATH=$(rpath-link)$(patsubst %,:%,$(sysdep-library-path)) \
! $(built-program-file)
  endef
  endif
  

--------------7BE1D07D1AAFD74E52260261--

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1997-01-07  2:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-07  2:40 Steven N. Hirsch [this message]
     [not found] <32D1B795.5D5CBFCC@ibm.net>
1997-01-07 17:37 ` compiling glibc Philip Blundell
  -- strict thread matches above, loose matches on Subject: below --
1997-01-07  2:26 Yash Khemani
1997-01-07  2:02 Yash Khemani
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox