Issue 9 in pylibtiff: fails to compile on opensuse 11.3 x86_64

2 views
Skip to first unread message

pyli...@googlecode.com

unread,
Sep 15, 2010, 7:40:22 PM9/15/10
to pylibtif...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 9 by nevion: fails to compile on opensuse 11.3 x86_64
http://code.google.com/p/pylibtiff/issues/detail?id=9

python-numpy-1.3.0-7.1.x86_64
python-2.6.5-2.11.x86_64

Small patch (git format-patch) attached to fix the problem.

Attachments:
0001-fix-for-undef-d-NPY_-BIG-LITTLE-_ENDIAN.patch 1.0 KB

pyli...@googlecode.com

unread,
Sep 20, 2010, 6:19:42 AM9/20/10
to pylibtif...@googlegroups.com

Comment #1 on issue 9 by y...@delley.net: fails to compile on opensuse
11.3 x86_64
http://code.google.com/p/pylibtiff/issues/detail?id=9

I encountered the same problem too! Apparently numpy does not follow it's
documentation. Grep-ing the numpy headers shows that NPY_*_ENDIAN are
actually used using #ifdefs.
However note: The
patch "0001-fix-for-undef-d-NPY_-BIG-LITTLE-_ENDIAN.patch" that is supplied
here will probably fail to compile on big-endian machines. Particularly,
the line
#elif NPY_BIG_ENDIAN
should probably read
#elif defined(NPY_BIG_ENDIAN)

I have attached another improved patch.

Attachments:
workaround_NPY_ENDIAN_macros.patch 802 bytes

pyli...@googlecode.com

unread,
Sep 23, 2010, 7:02:37 AM9/23/10
to pylibtif...@googlegroups.com
Updates:
Status: Fixed

Comment #2 on issue 9 by pearu.peterson: fails to compile on opensuse 11.3
x86_64
http://code.google.com/p/pylibtiff/issues/detail?id=9

Thanks for the patch. It has been applied to SVN.

Reply all
Reply to author
Forward
0 new messages