rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] cmodule.c and compiling


From: Ben Escoto
Subject: Re: [rdiff-backup-users] cmodule.c and compiling
Date: Wed, 21 May 2003 12:45:11 -0700

>>>>> "DE" == Dave Encisco <address@hidden>
>>>>> wrote the following on Wed, 14 May 2003 10:11:21 -0700 (PDT)

  DE> Hi, I've search the rdiff-backup-users archive regarding a
  DE> compiling exit error when compiling cmodule.c and I see that it
  DE> was once recommended to include the library_dirs in the
  DE> setup.py. This appears to be fixed in the newest release.
    ...
  DE> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
  DE> -I/usr/local/include/python2.3 -c cmodule.c -o
  DE> build/temp.linux-i686-2.3/cmodule.o cmodule.c: In function
  DE> `c_make_file_dict': cmodule.c:69: `LONG_LONG' undeclared (first
  DE> use in this function)

Does python itself compile correctly for you?  If so, are you sure
that the correct Python.h file is being included?  The offending lines
from cmodule.c appear to be:

#ifdef HAVE_LARGEFILE_SUPPORT
  size = PyLong_FromLongLong((LONG_LONG)sbuf.st_size);
  inode = PyLong_FromLongLong((LONG_LONG)sbuf.st_ino);
#else
  size = PyInt_FromLong(sbuf.st_size);
  inode = PyInt_FromLong((long)sbuf.st_ino);

But check out these lines from python's posixmodule.c:

#ifdef HAVE_LARGEFILE_SUPPORT
        PyStructSequence_SET_ITEM(v, 1, 
                                  PyLong_FromLongLong((LONG_LONG)st.st_ino));
#else
        PyStructSequence_SET_ITEM(v, 1, PyInt_FromLong((long)st.st_ino));

So it seems that if HAVE_LARGEFILE_SUPPORT is defined, LONG_LONG
should be also.


-- 
Ben Escoto

Attachment: pgpbJS6_PBvdy.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]