Gorka Olaizola wrote: > I'm trying to install freevo 2.0 from todays SVN but I'm having problems > with kaa compilation. > > The warning and error it's attached. > > I think I have almost all important dependancies. The only strange thing > it's that Sid uses gcc-4.0. With gcc-3.4 the error of PyShmMemory_repr is > not reported
I don't have gcc 4.0, it must be a new warning | src/extensions/shmmodule.c:144: warning: function declaration isn't a prototype | src/extensions/shmmodule.c:214: warning: function declaration isn't a prototype Looking at the first lines I see | static PyObject * | PyShm_Err() | { | return PyErr_SetFromErrno(PyShm_Error); | } What's wrong with that? Looks close to perfect to me. Maybe add void would be more ANSI C: PyShm_Err(void). But that should not be the problem. | Traceback (most recent call last): | File "setup.py", line 60, in ? | ext_modules = [ imlib2so ] | File "setup.py", line 51, in ? | if imlib2so.check_cc(['<fcntl.h>'], 'shm_open("foobar");', '-lrt'): | File "../base/build/lib.linux-i686-2.3/kaa/base/distribution.py", line 130, in check_cc | result = f.close() | IOError: [Errno 32] Broken pipe | /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crt1.o: In function `_start':../sysdeps/i386/elf/start.S:115: undefined reference to `main' | collect2: ld returned 1 exit status The code internal adds | for i in includes: | f.write('#include %s\n' % i) | f.write('void main() { ' + code + '};') | result = f.close() Again, looks perfect to me. The main function is there. Maybe main should be 'int main(int argc, char** argv)'? > src/extensions/shmmodule.c: In function 'PyShmMemory_repr': > src/extensions/shmmodule.c:575: warning: format '%lx' expects type 'long > unsigned int', but argument 3 has type 'void *' One cast should fix that warning. > The relevant packages that I have installed are: > > python2.3-pygame 1.7.1release-2 Not needed anymore. Maybe you can dig a little bit deeper, I have no gcc 4.0 Dischi -- errors in argv often lead to output of argh -- suffered wisdom
pgpZsv9E4ROi2.pgp
Description: PGP signature