From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85167 invoked by alias); 30 Dec 2016 20:59:36 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 85029 invoked by uid 48); 30 Dec 2016 20:59:23 -0000 From: "luizluca at gmail dot com" To: elfutils-devel@sourceware.org Subject: [Bug general/21009] New: Incompatible with MUSL libc: canonicalize_file_name Date: Fri, 30 Dec 2016 20:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: general X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: luizluca at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2016-q4/txt/msg00016.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D21009 Bug ID: 21009 Summary: Incompatible with MUSL libc: canonicalize_file_name Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: general Assignee: unassigned at sourceware dot org Reporter: luizluca at gmail dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- Hello >From bug 21002: - Since canonicalize_file_name (path) is defined as realpath(path, NULL) th= at change seems fine. However, there seems to be some limitation on realpath: https://mail.gnome.org/archives/gtk-devel-list/2002-October/msg00197.html If autoconf checks for it, we could simply define a macro for it when canonicalize_file_name is not present like: #ifndef HAVE_canonicalize_file_name #define canonicalize_file_name(name) realpath(name,NULL) #endif This function is used only at: ./libdwfl/find-debuginfo.c:388 ./libdwfl/dwfl_build_id_find_elf.c:98 And both include system.h. So, the best place to conditionally define it mi= ght be system.h. What's the correct approach? change the call or conditionally define a new macro? --=20 You are receiving this mail because: You are on the CC list for the bug.