/lib/cpp configuration bug affecting XDM on Slackware 1.1.2 (plus fix)

/lib/cpp configuration bug affecting XDM on Slackware 1.1.2 (plus fix)

Post by Przemek Klosows » Fri, 01 Apr 1994 06:38:09



Hi,

In slackware 1.1.2 /lib/cpp is set up as a link:

/lib/cpp -> /usr/lib/gcc-lib/i486-linux/*.*.*/cpp

which of course is wrong. It can be cured by:

ln -sf /usr/lib/gcc-lib/i486-linux/2.5.8/cpp /lib/cpp

(substitute your version of gcc for 2.5.8 if yours is different).

The symptoms of this error are that X programs can't read their resource
files, because resource files are processed by /lib/cpp. In particular,
'xdm' can't read /usr/lib/X11/xdm/Xresources.

--

                        Reactor Division (bldg. 235), E111
                        National Institute of Standards and Technology
                        Gaithersburg, MD 20899,      USA

                        (301) 975 6249

 
 
 

/lib/cpp configuration bug affecting XDM on Slackware 1.1.2 (plus fix)

Post by Robert W. Brew » Sat, 02 Apr 1994 02:48:58



>Hi,
>In slackware 1.1.2 /lib/cpp is set up as a link:
>/lib/cpp -> /usr/lib/gcc-lib/i486-linux/*.*.*/cpp
>which of course is wrong. It can be cured by:
>ln -sf /usr/lib/gcc-lib/i486-linux/2.5.8/cpp /lib/cpp
>(substitute your version of gcc for 2.5.8 if yours is different).
>The symptoms of this error are that X programs can't read their resource
>files, because resource files are processed by /lib/cpp. In particular,
>'xdm' can't read /usr/lib/X11/xdm/Xresources.

Here's a little hack I did to nip this problem.  It seems to work
pretty well, although obviously it uses quite a bit more CPU for the
convenience of not touching this file again when I upgrade.

If anyone has some better ones, I'd love to see them!  :)

---------------
#!/bin/bash
verstring=`/usr/bin/gcc -v 2>&1`
for version in $verstring  # set version to last word of gcc's string
do
  :
done
exec /usr/lib/gcc-lib/i486-linux/$version/cpp $*
---------------

-Rob
--
Robert W. Brewer  "Whoever drinks of the water that I shall give him


 
 
 

1. small bug plus fix for /proc/net/snmp (Imcp: field count)

Hi,

i received a bug report plus fix from Gonzalo A. Arana Tagle

``Icmp:'' values in /proc/net/snmp:

       # awk '/Icmp/ { print NF; }' /proc/net/snmp
       27
       28

the code in snmp_get_info() from net/ipv4/proc.c prints a dummy value
present at the end of struct icmp_mib, which should not be included.

from include/net/snmp.h:

instead of printing all values before the __pad field, printing the
values before the dummy field gives the right number of values:

--- linux-2.4.19/net/ipv4/proc.c-dist   Wed May 16 19:21:45 2001

        len += sprintf (buffer + len,
                "\nIcmp: InMsgs InErrors InDestUnreachs InTimeExcds InParmProbs InSrcQuenchs InRedirects InEchos InEchoReps InTimestamps InTimestampReps InAddrMasks InAddrMaskReps OutMsgs OutErrors OutDestUnreachs OutTimeExcds OutParmProbs OutSrcQuenchs OutRedirects OutEchos OutEchoReps OutTimestamps OutTimestampReps OutAddrMasks OutAddrMaskReps\n"
                  "Icmp:");
-       for (i=0; i<offsetof(struct icmp_mib, __pad)/sizeof(unsigned long); i++)
+       for (i=0; i<offsetof(struct icmp_mib, dummy)/sizeof(unsigned long); i++)
                len += sprintf(buffer+len, " %lu", fold_field((unsigned long*)icmp_statistics, sizeof(struct icmp_mib), i));

        len += sprintf (buffer + len,

please fix this.  thank's in advance,
                                                        Erik
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. StarOffice and true type fonts

3. Help with lib configurations on Slackware 3.0

4. NLS: Allow user to select 1:1 mapping

5. fix two bugs in lib/vsprintf.c

6. SCSI: ST02 + SyQuest Drive problems

7. Slackware 2.02 - xdm-bug?

8. WANTED Software FOR: Hayes OPTIMA 288 v.34|FAX|VOICE

9. wu-ftpd bugs fixed Sept 96 Slackware

10. LILO Bug with Slackware 2.0 release and Fix

11. Slackware 3.1 New /dev Bug Fix (22/08/96) - devs.tgz (0/1)

12. Slackware bug fix page?

13. Slackware 3.1 Bug fixes and changed files