Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

Re: Netscape colormap

Da Borg (vladi_mip@iceonline.com)
Mon, 03 Feb 1997 18:47:46 -0800

George Cserenyi wrote:
>
> Hello,
>
> When I start Netscape it complains:
> ---
> Warning: Cannot allocate colormap entry for "#0000BF"
> Warning: Cannot allocate colormap entry for "#69B5B5"
> Warning:
> Cannot allocate colormap entry for default background
>
> Warning: Cannot allocate colormap entry for "#D3B5B5"
> Bus error
> ---
> What can I do to fix it?
> Kernel is v2.0.27 Netscape v3.0
> George

This is a very very FAQ. Colormap entry errors are due
to you running X in 8bpp. Try running it in at least 16bpp, like:

startx -- -bpp16

Read documentation at www.xfree.org for more details.

Second problem with bus error is not related to your color problem.
The problem is that Netscape is compiled against libraries using
old style memory allocation technics, I think it was libc 5.0.8
while you're probably having 5.3.12 or higher. If you have Java
enabled, you'll be getting bus errors very frequently. To fix it, use
a script library wrapper like:

[root@borg]/>$ cat `whereis netscape`
#!/bin/sh
LD_PRELOAD=/lib/oldlib/libc.so.5.2.18
export LD_PRELOAD
exec /opt/netscape/netscape "$@"
##############END SCRIPT#####################

Explanations: I created a subdirectory in /lib called "oldlib",
then grabbed that old style library and shoved it in there.
My netscape binary is _not_ in my $PATH. But that script is.
It invokes netscape binary residing in /opt/netscape and makes
sure that it uses that old library instead of 5.3.12. No more
bus errors.

-- 
When sending private email, please remove underscores in "vladi_mip".
#include <disclaimer.h>  |   *Good pings come in small packets*
vladimip @ iceonline.com | Ceterum censeo Microsoftam delendam esse
Vancouver, B.C.     86 108 97 100 32 80 101 116 101 114 115 101 110