[SM-Grimoire-Bugs] [Bug 14347] Adding new spell "gphotofs"

bugzilla-daemon at bugs.sourcemage.org bugzilla-daemon at bugs.sourcemage.org
Wed Mar 5 21:32:27 EST 2008


http://bugs.sourcemage.org/show_bug.cgi?id=14347





------- Additional Comments From jevv.cr at gmail.com  2008-03-05 20:32 -------
Well, here it goes, on gphotofs_fail.txt you can find what the errors are:

gphotofs.c: In function 'gphotofs_init':
gphotofs.c:682: error: 'LC_CTYPE' undeclared (first use in this function)
gphotofs.c:682: error: (Each undeclared identifier is reported only once
gphotofs.c:682: error: for each function it appears in.)

If you look at the failing piece of code:

   p->context = gp_context_new();
   gettimeofday (&glob_tv_zero, NULL);

   setlocale (LC_CTYPE,"en_US.UTF-8"); /* for ptp2 driver to convert to utf-8 */

   gp_camera_new (&p->camera);

   gp_abilities_list_new(&p->abilities);
   gp_abilities_list_load(p->abilities, p->context);

So the complain comes from the fact LC_CTYPE was not recognized, but it should
if "#include <locale.h>" was called, which I didn't find in any place except the
configure script:

cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <locale.h>
int
main ()
{
return LC_MESSAGES
  ;
  return 0;
}

Which I didn't have a clue how that gets referenced by gphotofs.c...  Weird
thing as I mentioned before, is that by doing ./configure && make, I have no
problems, gphotofs compiles with NO problem, but by casting the spell I get this
error.

After I include the patch, then gphotofs compiles and install with NO problem as
well.  See gphotofs_pass.txt for the output of the spell cast when the patch is
applied, see NO error there...

I'm trying to update the grimoire to catch the latest spell, I'll provide
feedback after that, :)

Javier.

-- 
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the SM-Grimoire-Bugs mailing list