This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: [gcc-3.0] Fixinclude uw7_byteorder_fix not getting applied
- To: Matt Schalit <mschalit at pacbell dot net>, gcc-bugs at gcc dot gnu dot org
- Subject: RE: [gcc-3.0] Fixinclude uw7_byteorder_fix not getting applied
- From: Bruce Korb <bkorb at veritas dot com>
- Date: Tue, 26 Jun 2001 08:29:02 -0700
- CC: Bruce Korb <bkorb at pacbell dot net>
- Reply-To: Bruce Korb <bkorb at pacbell dot net>
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