Skip to Content.
Sympa Menu

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

sm-grimoire-bugs AT lists.ibiblio.org

Subject: SourceMage Grimoire Bug List

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-grimoire-bugs AT lists.ibiblio.org
  • Subject: [SM-Grimoire-Bugs] [Bug 14347] Adding new spell "gphotofs"
  • Date: 6 Mar 2008 02:32:27 -0000

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.




Archive powered by MHonArc 2.6.24.

Top of Page