From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17308 invoked by alias); 22 Aug 2011 07:30:12 -0000 Received: (qmail 17253 invoked by uid 22791); 22 Aug 2011 07:30:09 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from tschetwerikow.v9g.de (HELO tschetwerikow.v9g.de) (217.92.164.63) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Aug 2011 07:29:50 +0000 Received: from localhost (localhost [127.0.0.1]) by tschetwerikow.v9g.de (Postfix) with ESMTP id A360D175120B; Mon, 22 Aug 2011 09:29:48 +0200 (CEST) Received: from tschetwerikow.v9g.de ([127.0.0.1]) by localhost (tschetwerikow.boxberg.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H-vd7q4RA+vg; Mon, 22 Aug 2011 09:29:47 +0200 (CEST) Received: from mikulin.boxberg.lan (mikulin.boxberg.lan [10.0.1.253]) by tschetwerikow.v9g.de (Postfix) with ESMTPSA id 87A6D17511FD; Mon, 22 Aug 2011 09:29:47 +0200 (CEST) Subject: Re: compiling ltrace on macos / was Re: gdb problem Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=iso-8859-1 From: Titus von Boxberg In-Reply-To: Date: Mon, 22 Aug 2011 07:30:00 -0000 Cc: crossgcc@sourceware.org Content-Transfer-Encoding: 7bit Message-Id: <98C5662A-1931-4603-9065-50E6E5592228@v9g.de> References: <3838F5CA-B4DE-44C8-9BA2-3EBEA35BAD7E@v9g.de> <201108190032.26721.yann.morin.1998@anciens.enib.fr> <8C6FFCAE-3C84-41B9-B422-F39120D95984@v9g.de> To: Guylhem Aznar X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00098.txt.bz2 Am 21.08.2011 um 20:11 schrieb Guylhem Aznar: >> read_config_file.c:86: undefined reference to `index'. >> The first three would be fairly simple to correct. >> As a uclibc-agnostic, the last one is beyond my imagination. >> Any hints? > > In my "handy functions" .h, which I frequently use to compile with uclibc : > #define MAX_LINE 255 > #define getwd(x) getcwd(x,MAX_LINE) > #define bcmp(s1,s2,n) memcmp((s1), (s2), (size_t)(n)) > #define index(s,c) strchr((s), (c)) > #define rindex(s,c) strrchr((s), (c)) > #define bcopy(src, dst, len) memcpy(dst, src, len) Yann, Guylhem, I'm just wondering if (and how!) uclibc/ltrace ever has been used before. Since I do not use both, I'm reluctant to change it, though replacing index by strchr doesn't look too difficult. Comments? Regards Titus -- For unsubscribe information see http://sourceware.org/lists.html#faq