[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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@oss.sgi.com
        ReportedBy: mario@klebsch.de


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.