libextractor
[Top][All Lists]
Advanced

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

Re: [libextractor] OLE2 problem while using libextractor library


From: Christian Grothoff
Subject: Re: [libextractor] OLE2 problem while using libextractor library
Date: Tue, 7 Nov 2006 22:45:47 -0700
User-agent: KMail/1.9.5

That is strange.  Are you sure that you're linking your test-program against 
the same libextractor.so library that extract is linked against? (check 
with "ldd BINARYNAME" on both binaries).  

Christian

On Tuesday 07 November 2006 22:39, sunilp wrote:
> Hi Christian,
>
>  Well thanks first of all for your prompt reply.
>  I applied the patch & compiled libextractor again. I checked out the
> config.h file. Now it does set HAVE_GSF.
>
>  EARLIER i had to use "extract -l libextractor_ole2 sample.doc" to get
> metadata out of office files, But now it works
>  if I just give
>                                      "extract sample.doc"
>
> But as earlier said when I use the libextractor library it does'nt give any
> output, though it works for all other file types.
>
> my sample code just contains following lines:
>                      EXTRACTOR_ExtractorList *extractors =
> EXTRACTOR_loadDefaultLibraries();
>                      EXTRACTOR_KeywordList *keywords =
> EXTRACTOR_getKeywords(extractors, argv[1]);
>                      EXTRACTOR_printKeywords(stdout,keywords);
>
> Christian Grothoff wrote:
> > I suspect that somehow the "HAVE_GSF" directive is not set when
> > extractor.c
> > was compiled (check the config.h file generated by configure).  Looking
> > at the configure scripts (m4/abi-gsf.m4), I think that there is a bug
> > which means that HAVE_GSF would NOT be set if something else Gnome'ish
> > was detected
> > on your system.
> >
> > Patch:
> >
> > Index: abi-gsf.m4
> > ===================================================================
> > --- abi-gsf.m4  (revision 3659)
> > +++ abi-gsf.m4  (working copy)
> > @@ -68,6 +68,7 @@
> >
> >  if test "x$have_gsf_gnome" = "xtrue" ; then
> >         abi_gsf_message="yes, with GNOME support"
> > +        AC_DEFINE(HAVE_GSF, 1, [Have gsf])
> >  else if test "x$have_gsf" = "xtrue" ; then
> >         abi_gsf_message="yes, without GNOME support"
> >          AC_DEFINE(HAVE_GSF, 1, [Have gsf])
> >
> > I've fixed the problem in SVN.  As a work-around, you can also load the
> > ole2
> > plugin by hand (as you do with extract's -l option below). You can do
> > this in
> > your own C code using EXTRACTOR_loadConfigLibraries.
> >
> > Best regards,
> >
> > Christian
> >
> > On Tuesday 07 November 2006 06:28, sunilp wrote:
> >> extract works fine for ole2 when i use
> >>                     "extract -l libextractor_ole2 sample.doc"
> >>
> >> But when i use the sample c code on gnunet.org, it gives no output for
> >> the
> >> same doc file, though it prints the metadata for other file extensions.
> >>
> >> I compile my file extract_meta.c as,
> >>                 gcc  extract_meta.c -o extract_meta -lextractor
> >> It complies fine & works for all other file formats except windows
> >> office file using ole2
> >>
> >> Can someone help me out to trace the problem.
> >> Thanks
> >
> > _______________________________________________
> > libextractor mailing list
> > address@hidden
> > http://lists.gnu.org/mailman/listinfo/libextractor




reply via email to

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