[SM-Discuss] rpm spell
Craig Dyke
grail at westnet.com.au
Wed Feb 2 15:38:37 EST 2005
In case anyone is interested, the only way I was able to cast rpm
was to change the following in the BUILD file:
export CPPFLAGS="$CPPFLAGS -I/usr/include/python$(installed_version
Python| cut -c 1-3)"
to:
export CPPFLAGS="$CPPFLAGS -I/usr/include/python2.4"
Craig
Craig Dyke wrote:
> Arwed
>
> It appears that this is set in the configure script but I am unsure as
> to which
> piece I should change.
>
> Any suggestions?
>
> Craig
>
> Arwed von Merkatz wrote:
>
>> On Thu, Jan 27, 2005 at 12:54:15AM +0000, Craig Dyke wrote:
>>
>>
>>> Has anyone else had problems with the rpm spell?
>>>
>>> It seems to always fail when compiling the python portion for me
>>> (see attached log)
>>>
>>> Any advice would be good?
>>> I am using test grimoire and devel sorcery.
>>>
>>
>>
>> Seems like rpm doesn't check where python is and instead assumes its
>> headers are in /usr/include/python (which they aren't):
>> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../lib -I../rpmdb -I../rpmio
>> -I../beecrypt -I../popt -I/usr/include/pythonauto
>> -I../elfutils/libelf -I../zlib -I/usr/include/python -O -march=athlon
>> -mmmx -m3dnow -pipe -DPIC -fPIC -O3 -D_GNU_SOURCE -D_REENTRANT -Wall
>> -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
>> -Wno-char-subscripts -c rpmmodule.c -MT rpmmodule.lo -MD -MP -MF
>> .deps/rpmmodule.TPlo -fPIC -DPIC -o .libs/rpmmodule.lo
>> rpmmodule.c:7:20: Python.h: No such file or directory
>>
>> changing the Makefile(.in) in that directory to use
>> /usr/include/python2.4 instead of /usr/include/python should fix it.
>>
>>
>>
>
> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss
>
More information about the SM-Discuss
mailing list