This is the mail archive of the mailing list for the elfutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug general/21009] New: Incompatible with MUSL libc: canonicalize_file_name

            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: ---


>From bug 21002:

- Since canonicalize_file_name (path) is defined as realpath(path, NULL) that
change seems fine.

However, there seems to be some limitation on realpath:

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)

This function is used only at:


And both include system.h. So, the best place to conditionally define it might
be system.h.

What's the correct approach? change the call or conditionally define a new

You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]