[issue12720] Expose linux extended filesystem attributes

Arfrever Frehtes Taifersar Arahesis report at bugs.python.org
Tue Sep 13 22:25:42 CEST 2011

Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA at GMail.Com> added the comment:

There is an inconsistency in used header and library.
attr/xattr.h and libattr.so belong to attr package (http://savannah.nongnu.org/projects/attr).
glibc provides sys/xattr.h and libc.so.
Both libattr.so and libc.so define getxattr(), setxattr() and other functions.
Modules/posixmodule.c includes attr/xattr.h from attr package, but libpython3.3.so isn't linked against libattr.so and is linked against libc.so, so functions from glibc are used at run time.

I suggest to use sys/xattr.h:
- sys/xattr.h instead of attr/xattr.h in Modules/posixmodule.c, configure, configure.in and pyconfig.h.in
- HAVE_SYS_XATTR_H instead of HAVE_ATTR_XATTR_H in Modules/posixmodule.c and pyconfig.h.in

resolution: fixed -> 
status: closed -> open

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list