pkgsrc-Users archive

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

(textproc/cElement-Tree) error: Python.h: No such file or directory



I had following problem at (textproc/cElement-Tree)
NetBSD/amd64 6.1.1 (pbulk with limited_list)
  ---------------
  creating build/temp.netbsd-6.1-amd64-2.7/Modules
  
  gcc -DNDEBUG -O2 -DHAVE_DB_185_H -I/usr/include
  -I/usr/pkg/include -O2 -I/usr/include -I/usr/pkg/include
  -I/usr/include -I/usr/pkg/include -fPIC -DUSE_EXPAT
  -I/WRKOBJDIR/textproc/py-cElementTree/work/.buildlink/include
  -I/usr/pkg/include/python2.7 -c Modules/_elementtree.c -o
  build/temp.netbsd-6.1-amd64-2.7/Modules/_elementtree.o
  
  Modules/_elementtree.c:50:20: fatal error: Python.h: No such file or directory
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  *** Error code 1
  
  Stop.
  make: stopped in /usr/pkgsrc/textproc/py-cElementTree
  *** Error code 1
  
The attache change fixed above problem. 
Am I wrong ?
---
Makoto Fujiwara, 
Chiba, Japan, Narita Airport and Disneyland prefecture.

Index: textproc/py-cElementTree/Makefile
===================================================================
RCS file: /cvs/cvsroot/pkgsrc/textproc/py-cElementTree/Makefile,v
retrieving revision 1.9
diff -u -r1.9 Makefile
--- textproc/py-cElementTree/Makefile   20 Apr 2013 09:38:05 -0000      1.9
+++ textproc/py-cElementTree/Makefile   19 Oct 2013 00:33:13 -0000
@@ -30,6 +30,7 @@
        done)
 
 .include "../../textproc/expat/buildlink3.mk"
+.include "../../lang/${PYPACKAGE}/buildlink3.mk"
 .include "../../lang/python/extension.mk"
 .include "../../lang/python/srcdist.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index