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 12:56:00 -0700
User-agent: KMail/1.9.5

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




reply via email to

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