Closed Bug 18552 Opened 25 years ago Closed 25 years ago

run-mozilla.sh script doesn't set SHLIB_PATH

Categories

(Core Graveyard :: Tracking, defect, P3)

HP
HP-UX
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rkl, Assigned: jdunn)

References

()

Details

Attachments

(1 file)

On HP-UX, you set SHLIB_PATH, not LD_LIBRARY_PATH, to indicate the dir paths of
shared libraries to be picked up. The run-mozilla.sh script (run by both
mozilla-apprunner.sh and mozilla-viewer.sh) only sets LD_LIBRARY_PATH though,
meaning it doesn't work on HP-UX "as is".

My suggestion is that you add the setting of SHLIB_PATH in exactly the same
way as LD_LIBRARY_PATH is set (e.g insert this at around line 362 or so):

##
## Set SHLIB_PATH
##
if [ -n "$SHLIB_PATH" ]
then
   SHLIB_PATH=${MOZ_DIST_BIN}${SHLIB_PATH+":$SHLIB_PATH"}
else
   SHLIB_PATH=${MOZ_DIST_BIN}
fi

And maybe add in a SHLIB_PATH line that's output to stdout:

echo "  LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
echo "       SHLIB_PATH=$SHLIB_PATH"
echo "      MOZ_PROGRAM=$MOZ_PROGRAM"
Assignee: chofmann → jdunn
Attached patch Potential patchSplinter Review
I added a patch. Someone else can review it and check it in. The "-n" test was
redundant, so I took it out. We could make the script test for HP-UX, but
setting SHLIB_PATH for other platforms should not hurt them.
Blocks: 18687
Status: NEW → ASSIGNED
I figured I would add AIX/LIBPATH in also

Index: run-mozilla.sh
===================================================================
RCS file: /cvsroot/mozilla/build/unix/run-mozilla.sh,v
retrieving revision 1.14
diff -r1.14 run-mozilla.sh
361a362,379
> ##
> ## Set SHLIB_PATH for HPUX
> ##
> if [ -n "$SHLIB_PATH" ]
> then
>       SHLIB_PATH=${MOZ_DIST_BIN}${SHLIB_PATH+":$SHLIB_PATH"}
> else
>       SHLIB_PATH=${MOZ_DIST_BIN}
> fi
> ##
> ## Set LIBPATH for AIX
> ##
> if [ -n "$LIBPATH" ]
> then
>       LIBPATH=${MOZ_DIST_BIN}${LIBPATH+":$LIBPATH"}
> else
>       LIBPATH=${MOZ_DIST_BIN}
> fi
364a383,384
> echo "       SHLIB_PATH=$SHLIB_PATH"
> echo "          LIBPATH=$LIBPATH"
370a391
> export SHLIB_PATH LIBPATH
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
QA Contact: leger → granrose
Setting QA contact to build team to verify
marking verified.  looked at hpux10.20 m12 build on mozilla.org which has build 
date 19990823(?) but has this change in it.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: