Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue6420] Fix warning in nismodule.c on OpenBSD

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jul 4, 2009, 2:39 PM

Post #1 of 6 (170 views)
Permalink
[issue6420] Fix warning in nismodule.c on OpenBSD

New submission from Henry Precheur <henry[at]precheur.org>:

On OpenBSD the file /usr/include/rpcsvc/ypclnt.h contains the following
declaration:

struct ypall_callback {
/* return non-0 to stop getting called */
int (*foreach)(unsigned long, char *, int, char *, int, void *);
char *data; /* opaque pointer for use of callback fn */
};

the 'foreach' function pointer's declaration in Modules/nismodule.c is
different:

gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -I. -I./Include -I/usr/local/include -IInclude
-I/home/henry/py3k -c /home/henry/py3k/Modules/nismodule.c -o
build/temp.openbsd-4.6-amd64-3.2/home/henry/py3k/Modules/nismodule.o
/home/henry/py3k/Modules/nismodule.c: In function `nis_cat':
/home/henry/py3k/Modules/nismodule.c:208: warning: assignment from
incompatible pointer type


The attached patch fixes this very important issue :)

----------
components: Build, Library (Lib)
files: patch-Modules_nismodule_c
messages: 90128
nosy: henry.precheur
severity: normal
status: open
title: Fix warning in nismodule.c on OpenBSD
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file14450/patch-Modules_nismodule_c

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue6420>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 6, 2009, 4:26 PM

Post #2 of 6 (141 views)
Permalink
[issue6420] Fix warning in nismodule.c on OpenBSD [In reply to]

Amaury Forgeot d'Arc <amauryfa[at]gmail.com> added the comment:

Does someone know whether FreeBSD or NetBSD need the same treatment?

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue6420>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 6, 2009, 4:42 PM

Post #3 of 6 (143 views)
Permalink
[issue6420] Fix warning in nismodule.c on OpenBSD [In reply to]

Henry Precheur <henry[at]precheur.org> added the comment:

FreeBSD does.

http://svn.freebsd.org/viewvc/base/stable/7/include/rpcsvc/ypclnt.h?revision=172506&view=markup

But NetBSD doesn't:

http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/include/rpcsvc/ypclnt.h?rev=1.13&content-type=text/plain&only_with_tag=MAIN

On Mon, Jul 06, 2009 at 11:26:45PM +0000, Amaury Forgeot d'Arc wrote:
>
> Amaury Forgeot d'Arc <amauryfa[at]gmail.com> added the comment:
>
> Does someone know whether FreeBSD or NetBSD need the same treatment?
>
> ----------
> nosy: +amaury.forgeotdarc
>
> _______________________________________
> Python tracker <report[at]bugs.python.org>
> <http://bugs.python.org/issue6420>
> _______________________________________

----------

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue6420>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 6, 2009, 6:00 PM

Post #4 of 6 (142 views)
Permalink
[issue6420] Fix warning in nismodule.c on OpenBSD [In reply to]

Amaury Forgeot d'Arc <amauryfa[at]gmail.com> added the comment:

What about this new patch?

----------
keywords: +patch
Added file: http://bugs.python.org/file14464/nismodule.patch

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue6420>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 6, 2009, 6:49 PM

Post #5 of 6 (142 views)
Permalink
[issue6420] Fix warning in nismodule.c on OpenBSD [In reply to]

Henry Precheur <henry[at]precheur.org> added the comment:

It works on OpenBSD, but I don't have any FreeBSD to test. I should be
safe to commit though, the patch is rather trivial.

----------

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue6420>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 6, 2009, 11:53 PM

Post #6 of 6 (137 views)
Permalink
[issue6420] Fix warning in nismodule.c on OpenBSD [In reply to]

Amaury Forgeot d'Arc <amauryfa[at]gmail.com> added the comment:

Thanks, fixed in r73873, r73874, r73875 and r73876.

----------
resolution: -> fixed
status: open -> closed

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue6420>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.