trouble installing wvware

Help
ben
2003-03-25
2003-06-02
  • ben

    ben - 2003-03-25

    hi,

    i've got the configure to work for wcware, but i'm getting the following eror when i make

    ---------------------------------------------------
    olestorage.cpp:277: warning: use of old-style cast
    olestorage.cpp:281: no matching function for call to `string::push_back (char)'
    make[1]: *** [olestorage.lo] Error 1
    make[1]: Leaving directory `/home/genetic/tvsmedia.com/jsp/WEB-INF/lib/wv2-0.0.8/src'
    make: *** [install-recursive] Error 1
    ---------------------------------------------------

    i was wondering if anyone knows of a way round this?? is there a different version of wvware that i should be using?

    i'm on linux trying to install wv2-0.0.8 with libgsf1.7.2, libconv-1.8, glib2.2.1, pkg-config0.15.0

    thanks in advance

    ben

    here's the full log in case it's of use>>>

    /usr/include/stdlib.h:316: warning: use of old-style cast
    /usr/include/stdlib.h: In function `long long int atoll(const char *)':
    /usr/include/stdlib.h:323: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h: In function `static T * simple_alloc<T,Alloc>::allocate(size_t)':
    In file included from /usr/include/g++-2/alloc.h:21,
    from /usr/include/g++-2/std/bastring.h:39,
    from /usr/include/g++-2/string:6,
    from olestorage.h:23,
    from olestorage.cpp:20:
    /usr/include/g++-2/stl_alloc.h:221: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h: In function `static T * simple_alloc<T,Alloc>::allocate()':
    /usr/include/g++-2/stl_alloc.h:223: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h: In function `static void * debug_alloc<Alloc>::allocate(size_t)':
    /usr/include/g++-2/stl_alloc.h:248: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:249: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h: In function `static void debug_alloc<Alloc>::deallocate(void *, size_t)':
    /usr/include/g++-2/stl_alloc.h:255: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:256: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:256: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h: In function `static void * debug_alloc<Alloc>::reallocate(void *, size_t, size_t)':
    /usr/include/g++-2/stl_alloc.h:262: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:263: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:263: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:265: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:266: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h: In function `static void * __default_alloc_template<threads,inst>::allocate(size_t)':
    /usr/include/g++-2/stl_alloc.h:395: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h: In function `static void __default_alloc_template<threads,inst>::deallocate(void *, size_t)':
    /usr/include/g++-2/stl_alloc.h:418: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:421: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h: In function `static char * __default_alloc_template<threads,inst>::chunk_alloc(size_t, int &)':
    /usr/include/g++-2/stl_alloc.h:474: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:475: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:477: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:489: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:497: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h: In function `static void * __default_alloc_template<threads,inst>::refill(size_t)':
    /usr/include/g++-2/stl_alloc.h:526: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:527: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:530: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:530: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h: In function `static void * __default_alloc_template<threads,inst>::reallocate(void *, size_t, size_t)':
    /usr/include/g++-2/stl_alloc.h:550: warning: use of old-style cast
    /usr/include/g++-2/stl_alloc.h:550: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.h: In method `class basic_string<charT,traits,Allocator> & basic_string<charT,traits,Allocator>::erase(size_t = 0, size_t = basic_string<charT,traits,Allocator>::npos)':
    In file included from /usr/include/g++-2/string:6,
    from olestorage.h:23,
    from olestorage.cpp:20:
    /usr/include/g++-2/std/bastring.h:232: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.h:232: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.h: In method `charT * basic_string<charT,traits,Allocator>::erase(charT *)':
    /usr/include/g++-2/std/bastring.h:235: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.h:235: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.h: In method `charT * basic_string<charT,traits,Allocator>::erase(charT *, charT *)':
    /usr/include/g++-2/std/bastring.h:239: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.h:239: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.h: In method `charT & basic_string<charT,traits,Allocator>::at(size_t)':
    /usr/include/g++-2/std/bastring.h:286: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.h: In method `const charT & basic_string<charT,traits,Allocator>::at(size_t) const':
    /usr/include/g++-2/std/bastring.h:291: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.h: In method `class basic_string<charT,traits,Allocator> & basic_string<charT,traits,Allocator>::replace(charT *, charT *, InputIterator, InputIterator)':
    /usr/include/g++-2/std/bastring.h:404: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.h:407: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.cc: In method `class basic_string<charT,traits,Allocator> & basic_string<charT,traits,Allocator>::replace(unsigned int, unsigned int, const class basic_string<charT,traits,Allocator> &, unsigned int = 0, unsigned int = basic_string<charT,traits,Allocator>::npos)':
    In file included from /usr/include/g++-2/std/bastring.h:618,
    from /usr/include/g++-2/string:6,
    from olestorage.h:23,
    from olestorage.cpp:20:
    /usr/include/g++-2/std/bastring.cc:126: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.cc: In method `class basic_string<charT,traits,Allocator> & basic_string<charT,traits,Allocator>::replace(unsigned int, unsigned int, const charT *, unsigned int)':
    /usr/include/g++-2/std/bastring.cc:156: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.cc:159: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.cc: In method `class basic_string<charT,traits,Allocator> & basic_string<charT,traits,Allocator>::replace(unsigned int, unsigned int, unsigned int, charT)':
    /usr/include/g++-2/std/bastring.cc:192: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.cc:195: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.cc: In method `void basic_string<charT,traits,Allocator>::resize(unsigned int, charT)':
    /usr/include/g++-2/std/bastring.cc:220: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.cc: In method `size_t basic_string<charT,traits,Allocator>::copy(charT *, unsigned int, unsigned int = 0) const':
    /usr/include/g++-2/std/bastring.cc:233: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.cc: In method `int basic_string<charT,traits,Allocator>::compare(const class basic_string<charT,traits,Allocator> &, unsigned int = 0, unsigned int = basic_string<charT,traits,Allocator>::npos) const':
    /usr/include/g++-2/std/bastring.cc:399: warning: use of old-style cast
    /usr/include/g++-2/std/bastring.cc: In method `int basic_string<charT,traits,Allocator>::compare(const charT *, unsigned int, unsigned int) const':
    /usr/include/g++-2/std/bastring.cc:418: warning: use of old-style cast
    /usr/include/g++-2/stl_algobase.h: In function `T * __copy_t(const T *, const T *, T *, struct __false_type)':
    In file included from /usr/include/g++-2/list:30,
    from olestorage.h:24,
    from olestorage.cpp:20:
    /usr/include/g++-2/stl_algobase.h:153: warning: use of old-style cast
    /usr/include/g++-2/stl_algobase.h: In function `bool lexicographical_compare(const char *, const char *, const char *, const char *)':
    /usr/include/g++-2/stl_algobase.h:379: warning: use of old-style cast
    /usr/include/g++-2/stl_algobase.h:380: warning: use of old-style cast
    /usr/include/g++-2/stl_algobase.h:381: warning: use of old-style cast
    /usr/include/g++-2/stl_algobase.h:382: warning: use of old-style cast
    /usr/include/g++-2/stl_algobase.h: In function `int lexicographical_compare_3way(const char *, const char *, const char *, const char *)':
    /usr/include/g++-2/stl_algobase.h:424: warning: use of old-style cast
    /usr/include/g++-2/stl_algobase.h:425: warning: use of old-style cast
    /usr/include/g++-2/stl_algobase.h:426: warning: use of old-style cast
    /usr/include/g++-2/stl_algobase.h:427: warning: use of old-style cast
    /usr/include/g++-2/stl_list.h: In method `struct __list_iterator<T,Ref,Ptr> & __list_iterator<T,Ref,Ptr>::operator ++()':
    In file included from /usr/include/g++-2/list:34,
    from olestorage.h:24,
    from olestorage.cpp:20:
    /usr/include/g++-2/stl_list.h:77: warning: use of old-style cast
    /usr/include/g++-2/stl_list.h: In method `struct __list_iterator<T,Ref,Ptr> & __list_iterator<T,Ref,Ptr>::operator --()':
    /usr/include/g++-2/stl_list.h:86: warning: use of old-style cast
    /usr/include/g++-2/stl_list.h: In method `struct __list_iterator<T,T &,T *> list<T,Alloc>::begin()':
    /usr/include/g++-2/stl_list.h:214: warning: use of old-style cast
    /usr/include/g++-2/stl_list.h: In method `struct __list_iterator<T,const T &,const T *> list<T,Alloc>::begin() const':
    /usr/include/g++-2/stl_list.h:215: warning: use of old-style cast
    /usr/include/g++-2/stl_list.h: In method `void list<T,Alloc>::insert(struct __list_iterator<T,T &,T *>, int, const T &)':
    /usr/include/g++-2/stl_list.h:257: warning: use of old-style cast
    /usr/include/g++-2/stl_list.h: In method `void list<T,Alloc>::insert(struct __list_iterator<T,T &,T *>, long int, const T &)':
    /usr/include/g++-2/stl_list.h:260: warning: use of old-style cast
    /usr/include/g++-2/stl_list.h: In function `bool operator ==(const class list<T,Alloc> &, const class list<T,Alloc> &)':
    /usr/include/g++-2/stl_list.h:358: warning: use of old-style cast
    /usr/include/g++-2/stl_list.h:359: warning: use of old-style cast
    /usr/include/g++-2/stl_list.h:361: warning: use of old-style cast
    /usr/include/g++-2/stl_list.h:361: warning: use of old-style cast
    /usr/include/g++-2/stl_list.h: In method `void list<T,Alloc>::clear()':
    /usr/include/g++-2/stl_list.h:435: warning: use of old-style cast
    /usr/include/g++-2/stl_list.h:438: warning: use of old-style cast
    /usr/include/g++-2/stl_deque.h: In method `void deque<T,Alloc,BufSiz>::insert(struct __deque_iterator<T,T &,T *,BufSiz>, int, const T &)':
    In file included from /usr/include/g++-2/deque:34,
    from olestorage.h:25,
    from olestorage.cpp:20:
    /usr/include/g++-2/stl_deque.h:498: warning: use of old-style cast
    /usr/include/g++-2/stl_deque.h: In method `void deque<T,Alloc,BufSiz>::insert(struct __deque_iterator<T,T &,T *,BufSiz>, long int, const T &)':
    /usr/include/g++-2/stl_deque.h:501: warning: use of old-style cast
    /home/genetic/tvsmedia.com/jsp/WEB-INF/lib/include/glib-2.0/glib/gutils.h: In function `gint g_bit_nth_lsf(gulong, gint)':
    In file included from /home/genetic/tvsmedia.com/jsp/WEB-INF/lib/include/glib-2.0/glib.h:71,
    from /home/genetic/tvsmedia.com/jsp/WEB-INF/lib/include/libgsf-1/gsf/gsf.h:25,
    from olestorage.h:27,
    from olestorage.cpp:20:
    /home/genetic/tvsmedia.com/jsp/WEB-INF/lib/include/glib-2.0/glib/gutils.h:235: warning: use of old-style cast
    /home/genetic/tvsmedia.com/jsp/WEB-INF/lib/include/glib-2.0/glib/gutils.h: In function `gint g_bit_nth_msf(gulong, gint)':
    /home/genetic/tvsmedia.com/jsp/WEB-INF/lib/include/glib-2.0/glib/gutils.h:250: warning: use of old-style cast
    /home/genetic/tvsmedia.com/jsp/WEB-INF/lib/include/glib-2.0/glib/gutils.h: In function `void g_trash_stack_push(struct GTrashStack **, void *)':
    /home/genetic/tvsmedia.com/jsp/WEB-INF/lib/include/glib-2.0/glib/gutils.h:273: warning: use of old-style cast
    olestorage.cpp: In method `bool ::wvWare::OLEStorage::open(enum ::wvWare::OLEStorage::Mode)':
    olestorage.cpp:110: warning: use of old-style cast
    olestorage.cpp:110: warning: use of old-style cast
    olestorage.cpp:110: warning: use of old-style cast
    olestorage.cpp:129: warning: use of old-style cast
    olestorage.cpp:129: warning: use of old-style cast
    olestorage.cpp:130: warning: use of old-style cast
    olestorage.cpp:130: warning: use of old-style cast
    olestorage.cpp:130: warning: use of old-style cast
    olestorage.cpp: In method `void ::wvWare::OLEStorage::close()':
    olestorage.cpp:149: warning: use of old-style cast
    olestorage.cpp:149: warning: use of old-style cast
    olestorage.cpp:149: warning: use of old-style cast
    olestorage.cpp:155: warning: use of old-style cast
    olestorage.cpp:155: warning: use of old-style cast
    olestorage.cpp:155: warning: use of old-style cast
    olestorage.cpp: In method `class list<basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >,__default_alloc_template<true,0> > ::wvWare::OLEStorage::listDirectory()':
    olestorage.cpp:181: warning: use of old-style cast
    olestorage.cpp:181: warning: use of old-style cast
    olestorage.cpp:181: warning: use of old-style cast
    olestorage.cpp: In method `bool ::wvWare::OLEStorage::enterDirectory(const class string &)':
    olestorage.cpp:195: warning: use of old-style cast
    olestorage.cpp:196: warning: use of old-style cast
    olestorage.cpp:196: warning: use of old-style cast
    olestorage.cpp:197: warning: use of old-style cast
    olestorage.cpp:197: warning: use of old-style cast
    olestorage.cpp:208: warning: use of old-style cast
    olestorage.cpp:208: warning: use of old-style cast
    olestorage.cpp: In method `void ::wvWare::OLEStorage::leaveDirectory()':
    olestorage.cpp:219: warning: use of old-style cast
    olestorage.cpp:219: warning: use of old-style cast
    olestorage.cpp:219: warning: use of old-style cast
    olestorage.cpp:222: warning: use of old-style cast
    olestorage.cpp:222: warning: use of old-style cast
    olestorage.cpp:222: warning: use of old-style cast
    olestorage.cpp: In method `class string ::wvWare::OLEStorage::path() const':
    olestorage.cpp:275: warning: use of old-style cast
    olestorage.cpp:275: warning: use of old-style cast
    olestorage.cpp:277: warning: use of old-style cast
    olestorage.cpp:277: warning: use of old-style cast
    olestorage.cpp:281: no matching function for call to `string::push_back (char)'
    make[1]: *** [olestorage.lo] Error 1
    make[1]: Leaving directory `/home/genetic/tvsmedia.com/jsp/WEB-INF/lib/wv2-0.0.8/src'
    make: *** [install-recursive] Error 1

     
    • Anonymous - 2003-03-26

      Hi,

      I've seen the same texts on my own screen.
      Using RedHat 6.2 on a Intel-PIII box.

      I worked around this problem by compiling and installing GCC 3.2.2, than this problem is gone.

      But the next problem comes: I see ....

      source='ustring.cpp' object='ustring.lo' libtool=yes \ depfile='.deps/ustring.Plo' tmpdepfile='.deps/ustring.TPlo' \ depmode=gcc3 /bin/sh ../depcomp \ /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -DPACKAGE=\&quot;wv2\&quot; -DVERSIO
      N=\&quot;0.0.8\&quot; -I. -I. -I.. -I../include -I.. -I. -I/usr/local/include/libgsf-1 -I/
      usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/includ
      e/libxml2   -L/usr/local/lib -liconv    -I/usr/local/include/libgsf-1 -I/usr/loc
      al/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxm
      l2   -L/usr/local/lib -liconv -Wold-style-cast -Wnon-virtual-dtor -Wundef -Wall
      -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN
      _SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wform
      at-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -c -o ustr
      ing.lo `test -f 'ustring.cpp' || echo './'`ustring.cpp
      g++ -DHAVE_CONFIG_H -DPACKAGE=\&quot;wv2\&quot; -DVERSION=\&quot;0.0.8\&quot; -I. -I. -I.. -I../incl
      ude -I.. -I. -I/usr/local/include/libgsf-1 -I/usr/local/include/glib-2.0 -I/usr/
      local/lib/glib-2.0/include -I/usr/local/include/libxml2 -L/usr/local/lib -liconv
      -I/usr/local/include/libgsf-1 -I/usr/local/include/glib-2.0 -I/usr/local/lib/gl
      ib-2.0/include -I/usr/local/include/libxml2 -L/usr/local/lib -liconv -Wold-style
      -cast -Wnon-virtual-dtor -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-pr
      ototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -W
      conversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -f
      no-exceptions -fno-check-new -c ustring.cpp -MT ustring.lo -MD -MP -MF .deps/ust
      ring.TPlo  -fPIC -DPIC -o ustring.lo
      ustring.cpp:81:7: warning: "HAVE_FUNC_FINITE" is not defined
      ustring.cpp:83:7: warning: "HAVE_FUNC__FINITE" is not defined
      ustring.cpp: In function `bool wvWare::isPosInf(double)':
      ustring.cpp:78: warning: unused parameter `double d'
      ustring.cpp:94:7: warning: "HAVE_FUNC_FINITE" is not defined
      ustring.cpp:96:7: warning: "HAVE_FUNC__FINITE" is not defined
      ustring.cpp: In function `bool wvWare::isNegInf(double)':
      ustring.cpp:91: warning: unused parameter `double d'
      ustring.cpp: In constructor `wvWare::CString::CString(const char*)':
      ustring.cpp:105: `strlen' undeclared (first use this function)
      ustring.cpp:105: (Each undeclared identifier is reported only once for each
         function it appears in.)
      ustring.cpp:106: `strcpy' undeclared (first use this function)
      ustring.cpp: In member function `wvWare::CString& wvWare::CString::append(const
         wvWare::CString&)':
      ustring.cpp:130: `strcat' undeclared (first use this function)
      ustring.cpp: In function `bool wvWare::operator==(const wvWare::CString&, const
         wvWare::CString&)':
      ustring.cpp:173: `strcmp' undeclared (first use this function)
      ustring.cpp: In member function `wvWare::UChar wvWare::UChar::toLower() const':
      ustring.cpp:189: warning: use of old-style cast
      ustring.cpp:189: warning: use of old-style cast
      ustring.cpp: In member function `wvWare::UChar wvWare::UChar::toUpper() const':
      ustring.cpp:197: warning: use of old-style cast
      ustring.cpp:197: warning: use of old-style cast
      ustring.cpp: In constructor `wvWare::UString::UString(const wvWare::UChar*,
         int)':
      ustring.cpp:268: `memcpy' undeclared (first use this function)
      ustring.cpp: In member function `double wvWare::UString::toDouble(bool) const':
      ustring.cpp:425: warning: use of old-style cast
      ustring.cpp:425: warning: use of old-style cast
      ustring.cpp:448: `HUGE_VAL' undeclared (first use this function)
      ustring.cpp:459: `strncmp' undeclared (first use this function)
      ustring.cpp:467: warning: use of old-style cast
      ustring.cpp:467: warning: use of old-style cast
      ustring.cpp: In member function `int wvWare::UString::find(const
         wvWare::UString&, int) const':
      ustring.cpp:501: `memcmp' undeclared (first use this function)
      make[2]: *** [ustring.lo] Error 1
      make[2]: Leaving directory `/mnt/hda10/wv/wv2-0.0.8/src'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/mnt/hda10/wv/wv2-0.0.8'
      make: *** [all] Error 2
      [root@TRESPA-IND wv2-0.0.8]#

      For this problem I don't have a solution jet.

      Next to wv2 0.0.8, I tried 0.0.6 which build and installed correct, but it isn't used by wvHtml.
      So I tried wv 0.7.3 and this one work as long as there is no Header/Footer in the word-document.

      For so far ...

      Frank

       
    • ben

      ben - 2003-03-26

      thanks frank,

      i'll install gcc 3.2.2 & try wv0.7.3. i'll tell you how i get on!

      cheers,

      ben

       
    • ben

      ben - 2003-03-27

      got it working! wv0.7.4 worked first time. have also managed to use wvHtml via jsp.

      cheers,

      ben

       
    • Anonymous - 2003-05-26

      Great to hear (read) this !

      Well now I'm testing wv0.7.5....

      Installing works fine but the img tags of converted wmf images are not correct.

      Greetz,

      Frank

       
    • Justin T. Broste

      I was finally able to compile wv2 from CVS by downgrading my libgsf to 1.7.2 instead of 1.8.0.  It appears that there might be some sort of incompatibility there.

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks