Subject: | |
From: | |
Reply To: | |
Date: | Tue, 4 Jun 2013 07:46:09 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
On Tue, Jun 4, 2013 at 7:40 AM, Mark Whidby
<[log in to unmask]> wrote:
> Hi,
>
> This is on a 64-bit 6.2 version of Scientific Linux.
See that right there? That's probably your problem. Build these things
on SL 6.4, or configure and use the "mock" toolkit available over at
EPEL to build RPM's inside up-to-date, chroot cage build environments.
> I was trying to build a 2.17 version of pygtk2 for some of our
> users but was failing. I then tried to rebuild the original SRPM
> pygtk2-2.16.0-3.el6.src.rpm and got the same error:
>
> $ rpmbuild --rebuild pygtk2-2.16.0-3.el6.src.rpm
>
> <output trimmed>
> In file included from /usr/include/python2.6/Python.h:125,
> from /usr/include/pygtk-2.0/pygobject.h:5,
> from pygtk.h:6,
> from pygtk-private.h:15,
> from gtk-types.c:25:
> /usr/include/python2.6/modsupport.h:136: error: expected ')' before 'uid'
> /usr/include/python2.6/modsupport.h:137: error: expected ')' before 'gid'
> /usr/include/python2.6/modsupport.h:139: error: expected declaration specifiers or '...' before 'uid_t'
> /usr/include/python2.6/modsupport.h:140: error: expected declaration specifiers or '...' before 'gid_t'
> make[2]: *** [_gtk_la-gtk-types.lo] Error 1
> make[2]: Leaving directory `/localhome/epsadmin/rpmbuild/BUILD/pygtk-2.16.0/gtk'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/localhome/epsadmin/rpmbuild/BUILD/pygtk-2.16.0'
> make: *** [all] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.5pINT3 (%build)
>
> It would appear that this is caused by a patch from TUV. It can
> be worked around by adding the following line to the file
> /usr/include/python2.6/modsupport.h after line 10 (#include <stdarg.h>):
>
> #include <sys/types.h>
>
> The same fix also allows me to build the 2.17 version, but we were
> wondering how the RPM managed to get built for SL without this
> modification?
>
> --
> Mark Whidby
> Infrastructure Coordinator (Unix)
> Physics/Chemistry/EAES/Mathematics Team
> IT Services, Faculty of Engineering and Physical Sciences
|
|
|