SWIG-Python/LCMS compilation error

Randy McMurchy randy at linuxfromscratch.org
Thu Apr 14 08:12:19 PDT 2005


Hi all,

I'm trying to compile the LCMS package but it is stumbling trying
to build the SWIG/Python module. Here is the relevant lines giving
problems from the lcms.i file (which is used to autogenerate the
lcms_wrap.cxx source)

if ((SWIG_ConvertPtr(tmp[0], (void **) &gamma[0], SWIGTYPE_LPGAMMATABLE,1)) == -1) return NULL;
if ((SWIG_ConvertPtr(tmp[1], (void **) &gamma[1], SWIGTYPE_LPGAMMATABLE,1)) == -1) return NULL;
if ((SWIG_ConvertPtr(tmp[2], (void **) &gamma[2], SWIGTYPE_LPGAMMATABLE,1)) == -1) return NULL;

This code in the lcms.i file produces identical lines in lcms_wrap.cxx
(in two places) which is actually used during compilation.

Compilation fails with this message:

lcms_wrap.cxx:8731: error: `SWIGTYPE_LPGAMMATABLE' undeclared (first use this function)

Though it seems that declaring this identifier should be easy
enough, I'm so weak on c++ that I'm not sure what to do, especially
since the c++ code is autogenerated from SWIG source.

Anyone have any pointers or tips on how I could patch the SWIG source
so that the SWIGTYPE_LPGAMMATABLE identifier would be declared?

-- 
Randy

rmlscsi: [GNU ld version 2.15.94.0.2 20041220] [gcc (GCC) 3.4.3]
[GNU C Library stable release version 2.3.4] [Linux 2.6.10 i686]
10:00:00 up 12 days, 9:33, 3 users, load average: 0.00, 0.00, 0.00



More information about the blfs-dev mailing list