From mboxrd@z Thu Jan 1 00:00:00 1970 From: jma@netgem.com To: gcc-gnats@gcc.gnu.org Subject: libstdc++/3353: Problem while generating .h file... Date: Thu, 21 Jun 2001 19:16:00 -0000 Message-id: <20010622020617.9688.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00939.html List-Id: >Number: 3353 >Category: libstdc++ >Synopsis: Problem while generating .h file... >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Jun 21 19:16:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: jma@netgem.com >Release: gcc 3.0 >Organization: >Environment: Linux Mandrake 8.0 Kernel 2.4.3 with gcc 2.96 from Mandrake... >Description: I had a problem while generating gthr.h file. In fact, there is a preprocessing file using sed which change every #something into #_GLIBCPP_something in this file. So, the sources which include this file cannot compile any more, as the preprocessor gets, for example: #__GLICPP_ifdef something .... So, I removed the sed preprocessing of this file and everything seems to be all right. I modified acinclude.m4 and aclocal.m4. I feel that it's not the real correct patch to apply, but I don't know what was the real goal of the preprocessing that was to be done... I use gcc 3.0 since it cames out. Seems really all right !!! Regards. Jocelyn Mayer. >How-To-Repeat: I compiled gcc 3.0 using: ../gcc-3.0/configure --prefix=/usr --host=i686-pc-linux-gnu --enable-shared >Fix: --- acinclude.m4-orig Fri Jun 22 03:51:59 2001 +++ acinclude.m4 Fri Jun 22 03:51:45 2001 @@ -1155,7 +1155,8 @@ fi AC_OUTPUT_COMMANDS([d=include/bits rm -f $d/gthr.h $d/gthr-single.h $d/gthr-default.h - sed '/^#/s/\([A-Z_][A-Z_]*\)/_GLIBCPP_\1/g' <$d/gthr.h-in >$d/gthr.h +# sed '/^#/s/\([A-Z_][A-Z_]*\)/_GLIBCPP_\1/g' <$d/gthr.h-in >$d/gthr.h + cp gthr.h-in $d/gthr.h sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-single.h-in \ | sed 's/\(GCC[A-Z_]*_H\)/_GLIBCPP_\1/g' >$d/gthr-single.h sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-default.h-in \ --- aclocal.m4-orig Fri Jun 22 03:53:27 2001 +++ aclocal.m4 Fri Jun 22 03:53:17 2001 @@ -1167,7 +1167,8 @@ fi AC_OUTPUT_COMMANDS([d=include/bits rm -f $d/gthr.h $d/gthr-single.h $d/gthr-default.h - sed '/^#/s/\([A-Z_][A-Z_]*\)/_GLIBCPP_\1/g' <$d/gthr.h-in >$d/gthr.h +# sed '/^#/s/\([A-Z_][A-Z_]*\)/_GLIBCPP_\1/g' <$d/gthr.h-in >$d/gthr.h + cp $d/gthr.h-in $d/gthr.h sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-single.h-in \ | sed 's/\(GCC[A-Z_]*_H\)/_GLIBCPP_\1/g' >$d/gthr-single.h sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-default.h-in \ >Release-Note: >Audit-Trail: >Unformatted: