xfs
[Top] [All Lists]

[Bug 212] New: Problem compiling acl-2.0.9: undefined reference to `getx

To: xfs-master@xxxxxxxxxxx
Subject: [Bug 212] New: Problem compiling acl-2.0.9: undefined reference to `getxattr'
From: bugzilla-daemon@xxxxxxxxxxx
Date: Mon, 27 Jan 2003 15:22:29 -0800
Sender: linux-xfs-bounce@xxxxxxxxxxx
http://oss.sgi.com/bugzilla/show_bug.cgi?id=212

           Summary: Problem compiling acl-2.0.9: undefined reference to
                    `getxattr'
           Product: Linux XFS
           Version: 1.1.x
          Platform: IA32
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: Low
         Component: xfsdump
        AssignedTo: xfs-master@xxxxxxxxxxx
        ReportedBy: mario@xxxxxxxxxx


Description of Problem:

I have configured attr-2.0.7 and dmapi-2.0.3 to not build a shared library 
(configure --disble-shared).

libattr.a and libdm.a were installed succesfully in /usr/lib. When linking the 
programs in acl-2.0.9, I get an error, that getxattr is undefined. It turned 
out, that in 

acl-2.0.9/chacl/Makefile
acl-2.0.9/setfacl/Makefile
acl-2.0.9/getfacl/Makefile
 
the reuired libs are given in the wrong order. I had to change the definition 
of LLDLIBS to look like this.

LLDLIBS = $(LIBACL) $(LIBATTR)

The libraries are given in the opposite order, but libacl.a depends on 
libattr.a. It does not matter when linking dynamically, but the static linker 
does not tie the required modules into the binary, when the order is not Ok.

73, Mario



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


<Prev in Thread] Current Thread [Next in Thread>
  • [Bug 212] New: Problem compiling acl-2.0.9: undefined reference to `getxattr', bugzilla-daemon <=