[gcc-3.0] Fixinclude uw7_byteorder_fix not getting applied
Bruce Korb
bkorb@veritas.com
Tue Jun 26 10:01:00 GMT 2001
Hi Matthew,
The uw7_byteorder_fix is designed to apply on platforms where
the target machine triplet matches "i?86-*-sysv5*", among
the others. ``i586-sco-sysv5uw7.1.1'' should match that.
By changing to "#ifdef SVR5" you simply remove the target test.
If it is not applying, then it is likely not applying because
the new declarations of htons and ntohs do not match this:
"^extern.*(htons|ntohs).*\\(in_port_t\\).*\n"
which looks a little sloppy to me anyway. To isolate the problem,
first, please, look at the definitions of htons and ntohs in
the arpa/inet.h file. If the problem is not clear, then do the
following:
cd ${top_builddir}/gcc
rm -rf include stmp-fixinc
VERBOSE=9 make stmp-fixinc > inet.LOG 2>&1
cp /usr/include/arpa/inet.h include/arpa/inet.h.ori
mv inet.LOG include/arpa
tar cvf - include/arpa/inet.* | gzip --best > /tmp/inetlog.tar.gz
and email that to me offline to my pacbell address.
Thanks!
Bruce
More information about the Gcc-bugs
mailing list