List:MySQL++« Previous MessageNext Message »
From:Chris Frey Date:November 9 2005 7:14pm
Subject:Re: Problems building lib on SunOS
View as plain text  
On Wed, Nov 09, 2005 at 02:00:59PM -0500, Dave Brooks wrote:
> --- cut & paste
> ----------------------------------------------------------------------------
> ----------
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I/usr/include/sys 
> g++ -I/usr/include -I/opt/mysql/include -g -O2 -c coldata.cpp -MT 
> g++ coldata.lo -MD -MP -MF .deps/coldata.TPlo  -fPIC -DPIC -o coldata.lo
> In file included from
> /opt/common/lib/gcc-lib/../../include/c++/3.2.3/cwchar:51,
>                  from
> /opt/common/lib/gcc-lib/../../include/c++/3.2.3/bits/fpos.h:45,
>                  from
> /opt/common/lib/gcc-lib/../../include/c++/3.2.3/bits/char_traits.h:46,
>                  from
> /opt/common/lib/gcc-lib/../../include/c++/3.2.3/string:47,
>                  from
> /opt/common/lib/gcc-lib/../../include/c++/3.2.3/stdexcept:45,
>                  from const_string.h:34,
>                  from coldata.h:37,
>                  from coldata.cpp:27:
> /opt/common/lib/gcc-lib/../../include/c++/3.2.3/ctime:68: `tm' not declared
> /opt/common/lib/gcc-lib/../../include/c++/3.2.3/ctime:70: `clock' not
> declared

This appears to be a bug in the gcc C++ headers.  mysql++ doesn't use
C time functions, and as the include list shows, they are being included
indirectly through stdexcept.

You might try upgrading the compiler, or you can hack the source to
include <time.h> manually, before anything else.

- Chris

Thread
Problems building lib on SunOSDave Brooks9 Nov
  • Re: Problems building lib on SunOSChris Frey9 Nov
    • RE: Problems building lib on SunOSDave Brooks10 Nov
      • Re: Problems building lib on SunOSChris Frey10 Nov
        • Re: Problems building lib on SunOSOvidiu Bivolaru10 Nov
          • Re: Problems building lib on SunOSWarren Young10 Nov
            • Re: Problems building lib on SunOSOvidiu Bivolaru11 Nov
              • Re: Problems building lib on SunOSWarren Young11 Nov