Bug#358648: FTBFS: 'alloc2' undeclared

2006-04-12 Thread Igor Belyi
OK, I've looked at it and I'm sorry to say I don't think this is the 
right patch.


It seems to me that the patch disables gpgme.i's "const char *" typemap 
definition by using
SWIG's bug of not reporting invalid syntax but silently ignoring it to 
work around another SWIG
bug of the typemap causing alloc2 and buf2 not to be declared while 
statements freeing them to be

present.

I'm still trying to find the right workaround for this. For now it seems 
SWIG 1.3.28 is not good

version to use for pyme build.

Thanks for finding this out! :-)
Igor

Arnaud Fontaine wrote:

Hello,

This bug  [0] is due  to swig upgrade.  Actually, pyme builds  fine with
swig <  1.3.28. In swig 1.3.28,  there is a new  option, namely 'match',
for typemaps.

I have attached the patch which  fixes this bug. I have built and tested
pyme successfully using this patch.  Could you please make an upgrade of
pyme for  swig 1.3.28 ? Thanks  a lot to  Manuel Menal for his  help for
tracking the bug.

Regards,
Arnaud Fontaine

[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=358648

  



--- gpgme.i.old 2006-04-02 16:23:02.0 +0200
+++ gpgme.i 2006-04-02 15:43:27.0 +0200
@@ -23,7 +23,7 @@
 
 // Allow use of None for strings.
 
-%typemap(python,in) const char * {

+%typemap(match="in") const char * {
   if ($input == Py_None)
 $1 = NULL;
   else if (PyString_Check($input))
  




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#358648: FTBFS: 'alloc2' undeclared

2006-04-05 Thread Igor Belyi
Sorry, I'm on LinuxWorld Expo this week and won't be able to look at 
this until next week. If this switch appears just in 1.3.28 swig then 
the change should be a little bit bigger for back compatibility. 
Shortly, I greatly appreciate the patch - it gives me the right 
direction where I need to look for details.


Thanks,
Igor

Arnaud Fontaine wrote:

Hello,

This bug  [0] is due  to swig upgrade.  Actually, pyme builds  fine with
swig <  1.3.28. In swig 1.3.28,  there is a new  option, namely 'match',
for typemaps.

I have attached the patch which  fixes this bug. I have built and tested
pyme successfully using this patch.  Could you please make an upgrade of
pyme for  swig 1.3.28 ? Thanks  a lot to  Manuel Menal for his  help for
tracking the bug.

Regards,
Arnaud Fontaine

[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=358648

  



--- gpgme.i.old 2006-04-02 16:23:02.0 +0200
+++ gpgme.i 2006-04-02 15:43:27.0 +0200
@@ -23,7 +23,7 @@
 
 // Allow use of None for strings.
 
-%typemap(python,in) const char * {

+%typemap(match="in") const char * {
   if ($input == Py_None)
 $1 = NULL;
   else if (PyString_Check($input))
  




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#358648: FTBFS: 'alloc2' undeclared

2006-04-02 Thread Arnaud Fontaine
Hello,

This bug  [0] is due  to swig upgrade.  Actually, pyme builds  fine with
swig <  1.3.28. In swig 1.3.28,  there is a new  option, namely 'match',
for typemaps.

I have attached the patch which  fixes this bug. I have built and tested
pyme successfully using this patch.  Could you please make an upgrade of
pyme for  swig 1.3.28 ? Thanks  a lot to  Manuel Menal for his  help for
tracking the bug.

Regards,
Arnaud Fontaine

[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=358648

--- gpgme.i.old 2006-04-02 16:23:02.0 +0200
+++ gpgme.i 2006-04-02 15:43:27.0 +0200
@@ -23,7 +23,7 @@
 
 // Allow use of None for strings.
 
-%typemap(python,in) const char * {
+%typemap(match="in") const char * {
   if ($input == Py_None)
 $1 = NULL;
   else if (PyString_Check($input))


Bug#358648: FTBFS: 'alloc2' undeclared

2006-03-23 Thread Martin Michlmayr
Package: pyme
Version: 0.7.0-1
Severity: serious

Your package fails to build in unstable:

> Automatic build of pyme_0.7.0-1 on bigsur by sbuild/mips 1.106
...
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes 
> -fPIC -I/build/tbm/pyme-0.7.0 -I/usr/include/python2.3 -c helpers.c -o 
> ./build/temp.linux-mips-2.3/helpers.o
> In file included from /usr/include/python2.3/Python.h:8,
>  from helpers.c:24:
> /usr/include/python2.3/pyconfig.h:853:1: warning: "_POSIX_C_SOURCE" redefined
> In file included from /usr/include/stdio.h:28,
>  from helpers.c:20:
> /usr/include/features.h:190:1: warning: this is the location of the previous 
> definition
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes 
> -fPIC -I/build/tbm/pyme-0.7.0 -I/usr/include/python2.3 -c gpgme_wrap.c -o 
> ./build/temp.linux-mips-2.3/gpgme_wrap.o
> gpgme_wrap.c:2439: warning: function declaration isn't a prototype
> gpgme_wrap.c:2795: warning: function declaration isn't a prototype
> gpgme_wrap.c:2816: warning: function declaration isn't a prototype
> gpgme_wrap.c:2837: warning: function declaration isn't a prototype
> gpgme_wrap.c:2858: warning: function declaration isn't a prototype
> gpgme_wrap.c:2879: warning: function declaration isn't a prototype
> gpgme_wrap.c:2900: warning: function declaration isn't a prototype
> gpgme_wrap.c:2921: warning: function declaration isn't a prototype
> gpgme_wrap.c:2942: warning: function declaration isn't a prototype
> gpgme_wrap.c: In function '_wrap__gpgme_engine_info_req_version_set':
> gpgme_wrap.c:4088: error: 'alloc2' undeclared (first use in this function)
> gpgme_wrap.c:4088: error: (Each undeclared identifier is reported only once
> gpgme_wrap.c:4088: error: for each function it appears in.)
> gpgme_wrap.c:4088: error: 'buf2' undeclared (first use in this function)
> gpgme_wrap.c: In function '_wrap__gpgme_key_sig__py_obsolete_class_set':
> gpgme_wrap.c:5997: warning: '_py_obsolete_class' is deprecated (declared at 
> /build/tbm/pyme-0.7.0/gpgme.h:581)
> gpgme_wrap.c: In function '_wrap__gpgme_key_sig__py_obsolete_class_get':
> gpgme_wrap.c:6020: warning: '_py_obsolete_class' is deprecated (declared at 
> /build/tbm/pyme-0.7.0/gpgme.h:581)
> gpgme_wrap.c: In function '_wrap_gpgme_set_locale':
> gpgme_wrap.c:8948: error: 'alloc3' undeclared (first use in this function)
> gpgme_wrap.c:8948: error: 'buf3' undeclared (first use in this function)
> gpgme_wrap.c: In function '_wrap_gpgme_ctx_set_engine_info':
> gpgme_wrap.c:9035: error: 'alloc3' undeclared (first use in this function)
> gpgme_wrap.c:9035: error: 'buf3' undeclared (first use in this function)
> gpgme_wrap.c:9036: error: 'alloc4' undeclared (first use in this function)
> gpgme_wrap.c:9036: error: 'buf4' undeclared (first use in this function)
> gpgme_wrap.c: In function '_wrap_gpgme_sig_notation_add':
> gpgme_wrap.c:9257: error: 'alloc2' undeclared (first use in this function)
> gpgme_wrap.c:9257: error: 'buf2' undeclared (first use in this function)
> gpgme_wrap.c:9258: error: 'alloc3' undeclared (first use in this function)
> gpgme_wrap.c:9258: error: 'buf3' undeclared (first use in this function)
> gpgme_wrap.c: In function '_wrap_gpgme_data_new_from_mem':
> gpgme_wrap.c:10178: error: 'alloc2' undeclared (first use in this function)
> gpgme_wrap.c:10178: error: 'buf2' undeclared (first use in this function)
> gpgme_wrap.c: In function '_wrap_gpgme_data_set_file_name':
> gpgme_wrap.c:10461: error: 'alloc2' undeclared (first use in this function)
> gpgme_wrap.c:10461: error: 'buf2' undeclared (first use in this function)
> gpgme_wrap.c: In function '_wrap_gpgme_data_new_from_file':
> gpgme_wrap.c:10511: error: 'alloc2' undeclared (first use in this function)
> gpgme_wrap.c:10511: error: 'buf2' undeclared (first use in this function)
> gpgme_wrap.c: In function '_wrap_gpgme_data_new_from_filepart':
> gpgme_wrap.c:10575: error: 'alloc2' undeclared (first use in this function)
> gpgme_wrap.c:10575: error: 'buf2' undeclared (first use in this function)
> gpgme_wrap.c: In function '_wrap_gpgme_get_key':
> gpgme_wrap.c:10634: error: 'alloc2' undeclared (first use in this function)
> gpgme_wrap.c:10634: error: 'buf2' undeclared (first use in this function)
> gpgme_wrap.c: In function '_wrap__gpgme_new_signature__py_obsolete_class_set':
> gpgme_wrap.c:12893: warning: '_py_obsolete_class' is deprecated (declared at 
> /build/tbm/pyme-0.7.0/gpgme.h:1175)
> gpgme_wrap.c: In function '_wrap__gpgme_new_signature__py_obsolete_class_get':
> gpgme_wrap.c:12916: warning: '_py_obsolete_class' is deprecated (declared at 
> /build/tbm/pyme-0.7.0/gpgme.h:1175)
> gpgme_wrap.c: In function '_wrap_gpgme_op_export_start':
> gpgme_wrap.c:15893: error: 'alloc2' undeclared (first use in this function)
> gpgme_wrap.c:15893: error: 'buf2' undeclared (first use in this function)
> gpgme_wrap.c: In function '_wrap_gpgme_op_export':
> gpgme_wrap.c:15966: error: 'alloc2' undeclared