List:MySQL++« Previous MessageNext Message »
From:Dave Brooks Date:November 9 2005 7:00pm
Subject:Problems building lib on SunOS
View as plain text  
Hi All,

I originally sent this to plusplus-owner, sorry about that; having one of
those (geriatric) days...


I'm experiencing difficulties building the mysql++ libs on a SunOS 5.8
platform with gcc version 3.2.3.  I took the time to search through the list
archives, but didn't have a lot of luck.

Has anyone out there successfully built the lib on the above mentioned
configuration?

I'm trying to build mysql 2.0.6.  I am able to configure successfully with
the line:

CPPFLAGS="-I/usr/include/sys -I/usr/include" LDFLAGS=-L/usr/lib ./configure
--prefix=/usr/local --with-mysql=/opt/mysql
--with-mysql-lib=/opt/mysql-3.23.52/lib
--includedir=/usr/local/include/mysql++

*I had to add the explicit line for the mysql lib to get it to work.
/opt/mysql is a symbolic link to /opt/mysql-3.23.52

When I try to make (under sudo, just in case that makes a difference to
anyone), I get the following:

--- 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
/opt/common/lib/gcc-lib/../../include/c++/3.2.3/ctime:71: `difftime' not 
   declared
/opt/common/lib/gcc-lib/../../include/c++/3.2.3/ctime:72: `mktime' not
declared
/opt/common/lib/gcc-lib/../../include/c++/3.2.3/ctime:73: `time' not
declared
/opt/common/lib/gcc-lib/../../include/c++/3.2.3/ctime:74: `asctime' not 
   declared
/opt/common/lib/gcc-lib/../../include/c++/3.2.3/ctime:75: `ctime' not
declared
/opt/common/lib/gcc-lib/../../include/c++/3.2.3/ctime:76: `gmtime' not
declared
/opt/common/lib/gcc-lib/../../include/c++/3.2.3/ctime:77: `localtime' not 
   declared
/opt/common/lib/gcc-lib/../../include/c++/3.2.3/ctime:78: `strftime' not 
   declared
make[2]: *** [coldata.lo] Error 1
make[2]: Leaving directory `/usr1/dtb26/dave_work/mysql++-2.0.6/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr1/dtb26/dave_work/mysql++-2.0.6'
make: *** [all] Error 2
--- end cut & paste
----------------------------------------------------------------------------
-----

Of course, ctime undef's all the above mentioned structures in favor of
std::<functions>.  I poured through coldata.h/.cpp and don't see anything
trying to use these calls (I thought maybe something was lacking std
namespace resolution or something).

Has anyone else run into this situation and if so, were you able to resolve
it?

Thanks in advance for any light anyone might be able to shed on this.

Thanks,
Dave
----------------------------------------
David Brooks
Instructional & Web Services
Academic Technology & Media Services
Cornell Information Technologies
Cornell University
(607)254-1551
dtb26@stripped
http://www.cit.cornell.edu/atc/
 

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