From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <36c56f769d62072688b7365f998362f5.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199701062109.FAA02425@tapa.admu.edu.ph> Date: Mon, 06 Jan 1997 21:40:21 -0500 From: Steven N. Hirsch Subject: Re: compiling glibc 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