bug-commoncpp
[Top][All Lists]
Advanced

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

Re: xml.o empty in 1.9.5 (Linux Mandrake, G++ 2.96 20000731)


From: David Sugar
Subject: Re: xml.o empty in 1.9.5 (Linux Mandrake, G++ 2.96 20000731)
Date: Sat, 23 Feb 2002 22:27:05 -0500 (EST)

xml.cpp only compiles when libxml2 has been installed.  Otherwise it
creates a placeholder empty object file just so the make doesn't give a
fit.  If you install gnome libxml2, remove the config.cache file, and
re-run "configure", you will have your missing xml support.

David

On Sat, 23 Feb 2002, Zed A . Shaw wrote:

> Hello,
>
> I just started evaluating CommonC++ for use in an application, and I
> like it a lot.  I ran into a weird problem though:  The object file
> xml.o (and all libraries it is in) is empty of any symbols.  I find
> this error when I attempt to compile the demo/xmlfetch.cpp file:
>
> /bin/sh ../libtool --mode=link c++  -g -O2 -D_GNU_SOURCE -D_REENTRANT
> -D_THREAD_SAFE  -o xmlfetch  xmlfetch.o ../src/libccext.la  -lz
> ../src/libccgnu.la -pthread -ldl
> c++ -g -O2 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -o .libs/xmlfetch
> xmlfetch.o ../src/.libs/libccext.so -lz ../src/.libs/libccgnu.so
> -pthread -ldl -Wl,--rpath -Wl,/usr/local/lib
> xmlfetch.o: In function `myXMLParser::Close(void)':
> /home/zedshaw/projects/CommonC++-1.9.5/demo/xmlfetch.cpp:116: undefined
> reference to `ost::XMLStream::Parse(char const *)'
> collect2: ld returned 1 exit status
> make: *** [xmlfetch] Error 1
>
>
> All the other examples compile without any problems.  I thought this
> was strange, so I used nm -C to investigate the library file libccext.a
> and all that is in there is an empty entry for the xml.o file.  I
> investigated the src/xml.o file and nm -C reports the same thing: no
> functions, classes, nothing.
>
> I tried removing the file and then re-making it with "make xml.o" and
> it still produces an object file with no entries.  The file does have a
> size though, of 81160 bytes.  When I open it with hexedit, it has
> contents in it.
>
> I've attached the object file to this e-mail for you to review.  I'm
> thinking it may be a bug with G++, as it is kind of a strange thing to
> happen.  Please let me know what you think.
>
> Here's the particulars of my machine and configuration:
>
> * Linux  2.4.8-34.1mdk #1 Mon Nov 19 12:40:39 MST 2001 i686 unknown
> * gcc version 2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk)
> * CommonC++ 1.9.5 downloaded from ftp.gnu.org
>
> Thanks again.
>
> Zed A. Shaw
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>




reply via email to

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