ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Q: dereferencing pointer to incomplete type
@ 2010-03-31  4:35 REAL
  2010-03-31  6:45 ` Andrey Rahmatullin
  2010-03-31  7:07 ` Kirill A. Shutemov
  0 siblings, 2 replies; 9+ messages in thread
From: REAL @ 2010-03-31  4:35 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Привет!

Просьба подсказать, как лечить:

src/aomodule.c:187: error: dereferencing pointer to incomplete type

Жалоба идёт на строку:
info = ao_driver_info(ao_self->dev->driver_id);

Это новшество, ещё неделю назад никаких проблем не было.

Контекст:

static PyObject *
py_ao_driver_info(PyObject *self, PyObject *args)
{
   int driver_id = 0;
   char *driver_name;
   ao_info *info;
   PyObject *retdict;

   if (self != NULL) {

     /* It's a method */
     ao_Object *ao_self = (ao_Object *) self;
     info = ao_driver_info(ao_self->dev->driver_id);


Кстати, не смог найти объявление ao_device, кроме typedef struct 
ao_device ao_device;
(файл /usr/include/ao/ao.h)

-- 

REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [devel] Q: dereferencing pointer to incomplete type
  2010-03-31  6:45 ` Andrey Rahmatullin
@ 2010-03-31  5:57   ` REAL
  2010-03-31  7:01     ` Andrey Rahmatullin
  0 siblings, 1 reply; 9+ messages in thread
From: REAL @ 2010-03-31  5:57 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Andrey Rahmatullin пишет:
>> src/aomodule.c:187: error: dereferencing pointer to incomplete type
>>
>> Жалоба идёт на строку:
>> info = ao_driver_info(ao_self->dev->driver_id);
> Нужен #include с кодом, определяющим тип ao_self и/или ao_self->dev

Подключен хеэер, там есть такое:

typedef struct {
   PyObject_HEAD
   ao_device *dev;
} ao_Object;

В том-то и дело, что не могу найти этот ao_device.

-- 

REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [devel] Q: dereferencing pointer to incomplete type
  2010-03-31  7:01     ` Andrey Rahmatullin
@ 2010-03-31  6:03       ` REAL
  0 siblings, 0 replies; 9+ messages in thread
From: REAL @ 2010-03-31  6:03 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Andrey Rahmatullin пишет:
>> В том-то и дело, что не могу найти этот ao_device.
> typedef struct ao_device ao_device; это оно и есть.

Этот хэдер подключен.

-- 

REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [devel] Q: dereferencing pointer to incomplete type
  2010-03-31  7:07 ` Kirill A. Shutemov
@ 2010-03-31  6:10   ` REAL
  2010-03-31  8:14     ` Kirill A. Shutemov
  0 siblings, 1 reply; 9+ messages in thread
From: REAL @ 2010-03-31  6:10 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Kirill A. Shutemov пишет:
> Это какой пакет? Я посмотрю.

Сейчас он ничейный, т.е. висит на членах @python. Вот форвард:



-------- Исходное сообщение --------
Тема: python-module-pyao-0.82-alt4: Sisyphus/i586 test rebuild failed
Дата: Sun, 28 Mar 2010 01:44:57 +0300 (MSK)
От: ALT beekeeper <beehive@altlinux.org>
Отвечать: devel@lists.altlinux.org
Кому: python@packages.altlinux.org
Копия: beehive@altlinux.org

Package: python-module-pyao-0.82-alt4
Status: Sisyphus/i586 test rebuild failed
Cannot build this package.
Please investigate.
Excerpt from build log:

<86>Mar 27 20:48:09 userdel[10141]: delete user `rooter'
<86>Mar 27 20:48:09 userdel[10141]: remove group `rooter'
<86>Mar 27 20:48:09 groupadd[10142]: new group: name=rooter, gid=526
<86>Mar 27 20:48:09 useradd[10143]: new user: name=rooter, uid=526, 
gid=526, home=/root, shell=/bin/bash
<86>Mar 27 20:48:09 userdel[10145]: delete user `builder'
<86>Mar 27 20:48:09 userdel[10145]: remove group `builder'
<86>Mar 27 20:48:09 groupadd[10147]: new group: name=builder, gid=527
<86>Mar 27 20:48:09 useradd[10148]: new user: name=builder, uid=527, 
gid=527, home=/usr/src, shell=/bin/bash
<13>Mar 27 20:48:12 rpmi: libalsa-1:1.0.22-alt1 installed
<13>Mar 27 20:48:12 rpmi: libao-1:1.0.0-alt1 installed
<13>Mar 27 20:48:12 rpmi: libexpat-2.0.1-alt3 installed
<13>Mar 27 20:48:12 rpmi: python-modules-curses-2.6.5-alt2 installed
<13>Mar 27 20:48:12 rpmi: libkeyutils-1.2-alt3 installed
<13>Mar 27 20:48:12 rpmi: libgdbm-1.8.3-alt7 installed
<13>Mar 27 20:48:12 rpmi: ca-certificates-2009.01.15-alt1 installed
<13>Mar 27 20:48:12 rpmi: libcrypto7-0.9.8l-alt6 installed
<13>Mar 27 20:48:12 rpmi: libkrb5-1.6.3-alt9 installed
<13>Mar 27 20:48:12 rpmi: libssl7-0.9.8l-alt6 installed
<13>Mar 27 20:48:12 rpmi: libao-devel-1:1.0.0-alt1 installed
<13>Mar 27 20:48:12 rpmi: python-modules-email-2.6.5-alt2 installed
<13>Mar 27 20:48:12 rpmi: python-modules-compiler-2.6.5-alt2 installed
<13>Mar 27 20:48:13 rpmi: python-modules-2.6.5-alt2 installed
<13>Mar 27 20:48:13 rpmi: python-modules-encodings-2.6.5-alt2 installed
<13>Mar 27 20:48:13 rpmi: python-modules-xml-2.6.5-alt2 installed
<13>Mar 27 20:48:13 rpmi: python-modules-hotshot-2.6.5-alt2 installed
<13>Mar 27 20:48:13 rpmi: python-modules-bsddb-2.6.5-alt2 installed
<13>Mar 27 20:48:13 rpmi: python-modules-ctypes-2.6.5-alt2 installed
<13>Mar 27 20:48:13 rpmi: python-modules-multiprocessing-2.6.5-alt2 
installed
<13>Mar 27 20:48:13 rpmi: python-modules-logging-2.6.5-alt2 installed
<13>Mar 27 20:48:13 rpmi: python-2.6.5-alt2 installed
<13>Mar 27 20:48:13 rpmi: python-dev-2.6.5-alt2 installed
Installing python-module-pyao-0.82-alt4.src.rpm
Building target platforms: i586
Building for target i586
Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.2074
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf pyao-0.82
+ echo 'Source #0 (pyao-0.82.tar.gz):'
Source #0 (pyao-0.82.tar.gz):
+ /bin/gzip -dc /usr/src/RPM/SOURCES/pyao-0.82.tar.gz
+ /bin/tar -xf -
+ cd pyao-0.82
+ /bin/chmod -c -Rf u+rwX,go-w .
+ exit 0
Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.2074
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd pyao-0.82
+ export 'CFLAGS=-pipe -Wall -O2 -march=i586 -mtune=i686'
+ CFLAGS='-pipe -Wall -O2 -march=i586 -mtune=i686'
+ /usr/bin/python2.6 config_unix.py --prefix /usr
Checking for Ao ... success
Wrote Setup file
+ /usr/bin/python2.6 setup.py build
running build
running build_ext
building 'aomodule' extension
creating build
creating build/temp.linux-i686-2.6
creating build/temp.linux-i686-2.6/src
i586-alt-linux-gcc -pthread -DNDEBUG -pipe -Wall -O2 -march=i586 
-mtune=i686 -fPIC -DPIC -D_GNU_SOURCE -pipe -Wall -O2 -march=i586 
-mtune=i686 -fPIC -I/usr/include -I/usr/include/python2.6 -c 
src/aomodule.c -o build/temp.linux-i686-2.6/src/aomodule.o
src/aomodule.c: In function 'py_ao_driver_info':
src/aomodule.c:187: error: dereferencing pointer to incomplete type
error: command 'i586-alt-linux-gcc' failed with exit status 1
error: Bad exit status from /usr/src/tmp/rpm-tmp.2074 (%build)

RPM build errors:
     Bad exit status from /usr/src/tmp/rpm-tmp.2074 (%build)
Command exited with non-zero status 1
0.45user 0.18system 0:00.73elapsed 87%CPU (0avgtext+0avgdata 
0maxresident)k
0inputs+0outputs (0major+44176minor)pagefaults 0swaps
hsh-rebuild: rebuild of `python-module-pyao-0.82-alt4.src.rpm' failed.
Command exited with non-zero status 1
8.31user 5.24system 0:15.13elapsed 89%CPU (0avgtext+0avgdata 
0maxresident)k
0inputs+0outputs (0major+537203minor)pagefaults 0swaps

-- 
Sincerely yours,
ALT beekeeper


-- 

REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [devel] Q: dereferencing pointer to incomplete type
  2010-03-31  4:35 [devel] Q: dereferencing pointer to incomplete type REAL
@ 2010-03-31  6:45 ` Andrey Rahmatullin
  2010-03-31  5:57   ` REAL
  2010-03-31  7:07 ` Kirill A. Shutemov
  1 sibling, 1 reply; 9+ messages in thread
From: Andrey Rahmatullin @ 2010-03-31  6:45 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

On Wed, Mar 31, 2010 at 12:35:45PM +0800, REAL wrote:
> src/aomodule.c:187: error: dereferencing pointer to incomplete type
> 
> Жалоба идёт на строку:
> info = ao_driver_info(ao_self->dev->driver_id);
Нужен #include с кодом, определяющим тип ao_self и/или ao_self->dev

-- 
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(6):

<vvk> мне интуитивно кажется, что в бугзилле не хватает кейворда "на эту багу
      все забили"

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [devel] Q: dereferencing pointer to incomplete type
  2010-03-31  5:57   ` REAL
@ 2010-03-31  7:01     ` Andrey Rahmatullin
  2010-03-31  6:03       ` REAL
  0 siblings, 1 reply; 9+ messages in thread
From: Andrey Rahmatullin @ 2010-03-31  7:01 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 330 bytes --]

On Wed, Mar 31, 2010 at 01:57:48PM +0800, REAL wrote:
> В том-то и дело, что не могу найти этот ao_device.
typedef struct ao_device ao_device; это оно и есть.

-- 
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(6):

<wRAR> лучше загнобить сразу, чем мучаться годами
<dottedmag> Потом гнобить будет сложнее.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [devel] Q: dereferencing pointer to incomplete type
  2010-03-31  4:35 [devel] Q: dereferencing pointer to incomplete type REAL
  2010-03-31  6:45 ` Andrey Rahmatullin
@ 2010-03-31  7:07 ` Kirill A. Shutemov
  2010-03-31  6:10   ` REAL
  1 sibling, 1 reply; 9+ messages in thread
From: Kirill A. Shutemov @ 2010-03-31  7:07 UTC (permalink / raw)
  To: ALT Linux Team development discussions

2010/3/31 REAL <root@mmedia2.kemsu.ru>:
> Привет!
>
> Просьба подсказать, как лечить:
>
> src/aomodule.c:187: error: dereferencing pointer to incomplete type

Это какой пакет? Я посмотрю.

>
> Жалоба идёт на строку:
> info = ao_driver_info(ao_self->dev->driver_id);
>
> Это новшество, ещё неделю назад никаких проблем не было.
>
> Контекст:
>
> static PyObject *
> py_ao_driver_info(PyObject *self, PyObject *args)
> {
>  int driver_id = 0;
>  char *driver_name;
>  ao_info *info;
>  PyObject *retdict;
>
>  if (self != NULL) {
>
>    /* It's a method */
>    ao_Object *ao_self = (ao_Object *) self;
>    info = ao_driver_info(ao_self->dev->driver_id);
>
>
> Кстати, не смог найти объявление ao_device, кроме typedef struct ao_device
> ao_device;
> (файл /usr/include/ao/ao.h)
>
> --
>
> REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
> _______________________________________________
> Devel mailing list
> Devel@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [devel] Q: dereferencing pointer to incomplete type
  2010-03-31  8:14     ` Kirill A. Shutemov
@ 2010-03-31  7:48       ` REAL
  0 siblings, 0 replies; 9+ messages in thread
From: REAL @ 2010-03-31  7:48 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Kirill A. Shutemov пишет:
> В недавно опакеченом libao значительно поменялся API. В частности вот
> это изменение сломало сборку pyao:
> 
> https://trac.xiph.org/changeset/16795/trunk/ao/include/ao
> 
> Похоже pyao нужно патчить. Наверно, лучше пнуть апстрим.

Отправил запрос в апстрим.

-- 

REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [devel] Q: dereferencing pointer to incomplete type
  2010-03-31  6:10   ` REAL
@ 2010-03-31  8:14     ` Kirill A. Shutemov
  2010-03-31  7:48       ` REAL
  0 siblings, 1 reply; 9+ messages in thread
From: Kirill A. Shutemov @ 2010-03-31  8:14 UTC (permalink / raw)
  To: ALT Linux Team development discussions

2010/3/31 REAL <root@mmedia2.kemsu.ru>:

...

> creating build/temp.linux-i686-2.6
> creating build/temp.linux-i686-2.6/src
> i586-alt-linux-gcc -pthread -DNDEBUG -pipe -Wall -O2 -march=i586 -mtune=i686
> -fPIC -DPIC -D_GNU_SOURCE -pipe -Wall -O2 -march=i586 -mtune=i686 -fPIC
> -I/usr/include -I/usr/include/python2.6 -c src/aomodule.c -o
> build/temp.linux-i686-2.6/src/aomodule.o
> src/aomodule.c: In function 'py_ao_driver_info':
> src/aomodule.c:187: error: dereferencing pointer to incomplete type


В недавно опакеченом libao значительно поменялся API. В частности вот
это изменение сломало сборку pyao:

https://trac.xiph.org/changeset/16795/trunk/ao/include/ao

Похоже pyao нужно патчить. Наверно, лучше пнуть апстрим.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-03-31  8:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-31  4:35 [devel] Q: dereferencing pointer to incomplete type REAL
2010-03-31  6:45 ` Andrey Rahmatullin
2010-03-31  5:57   ` REAL
2010-03-31  7:01     ` Andrey Rahmatullin
2010-03-31  6:03       ` REAL
2010-03-31  7:07 ` Kirill A. Shutemov
2010-03-31  6:10   ` REAL
2010-03-31  8:14     ` Kirill A. Shutemov
2010-03-31  7:48       ` REAL

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git