From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 614 invoked by alias); 6 Jan 2012 09:48:41 -0000 Received: (qmail 604 invoked by uid 22791); 6 Jan 2012 09:48:40 -0000 X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-yx0-f175.google.com (HELO mail-yx0-f175.google.com) (209.85.213.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 06 Jan 2012 09:48:27 +0000 Received: by yenm12 with SMTP id m12so565802yen.20 for ; Fri, 06 Jan 2012 01:48:27 -0800 (PST) Received: by 10.236.146.36 with SMTP id q24mr6018407yhj.85.1325843307400; Fri, 06 Jan 2012 01:48:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.153.7 with HTTP; Fri, 6 Jan 2012 01:48:06 -0800 (PST) From: Santosh Pratap Singh Date: Fri, 06 Jan 2012 10:57:00 -0000 Message-ID: Subject: gcc4.6.1 installation To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2012-01/txt/msg00029.txt.bz2 Hi All: The gcc4.6.1 installation (build on=A0Red Hat Enterprise Linux ES release 4.5) is not working on SuSE11.1=A0systems. The compiling results in the following: /usr/include/bits/stdio.h: In function '__ssize_t getline(char**, size_t*, FILE*)': /usr/include/bits/stdio.h:118:52: error: '__getdelim' was not declared in this scope On SuSE 11.0 systems=A0these function is defined if __USE_GNU is set and on SuSE 11.1 systems this function=A0is defined if __USE_XOPEN2K8 is defined instead. =A0So, for gcc/g++ install to work on both functions, =A0I have to=A0manually define=A0=A0__USE_XOPEN2K8 to 1=A0in the= file (lib/gcc/x86_64-unknown-linux-gnu/4.6.1/include-fixed/features.h) In the gcc/g++ installation. I manually modified this file at line 269 to set __USE_XOPEN2K8 if _GNU_SOURCE is defined: #ifdef =A0_GNU_SOURCE # define __USE_GNU =A0 =A0 =A01 # define __USE_XOPEN2K8 1 #endif and, after that the compilation goes fine. I don't know if it is a good idea to manually modify this features.h file. Is there any configuration option which will activate both=A0__USE_XOPEN2K8 and __USE_GNU at the same time. =A0Can someone help me in this ? Does anyone have an idea to fix this in a more elegant way. Thanks in advance! Regards. Santosh