Path: utzoo!utgpu!attcan!uunet!seismo!esosun!ucsdhub!ucsd!telesoft!souza From: souza@telesoft.UUCP (Steve Souza @eldest) Newsgroups: comp.unix.wizards Subject: SunOS 4.0 Dynamic Linking Keywords: 4.0 dynamic linking, "ld.so mapping failure" Message-ID: <314@telesoft.UUCP> Date: 28 Sep 88 19:05:42 GMT Organization: TeleSoft Inc., San Diego, CA Lines: 34 Sun-Gods: We have a job spooler application here that has suddenly broken under SunOS 4.0. The setup is analogous to the remote shell software in that commands are remotely executed by a root daemon on behalf of users. The main difference is that the root daemon executes the job by doing a popen() on ". scriptfile" (as opposed to a fork/exec, as it will someday), where "scriptfile" contains a list of Bourne shell style variable initializations followed by the command to execute. The application compiles and runs without a hitch, but when "scriptfile" hits a 4.0 executable (i.e. the user command), it barfs with the message: crt0: /usr/lib/ld.so mapping failure If a 3.x program binary is copied to the remote (4.0) machine, the daemon has no problem executing it, so it appears to be a problem with 4.0 dynamic linking in a shell environment that is somehow different. I've tried compiling both the daemon software and the target command with and without the -Bstatic switch, to no avail. Any thoughts, suggestions, or guesses? Thanks! Steve Souza ...ucsd!telesoft!souza, telesoft!souza@ucsd.edu TELESOFT Inc., San Diego, CA (619)457-2700 x277