Bug #46439 MySQL erroneously attempts to include stdint.h on Solaris 9
Submitted: 28 Jul 2009 22:36 Modified: 30 Jul 2009 7:33
Reporter: Reid Madsen Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL++ Severity:S3 (Non-critical)
Version:3.0.9 OS:Solaris (SunOS arcade 5.9 Generic_122300-13 sun4u sparc SUNW,Sun-Fire-V490 Solaris)
Assigned to: CPU Architecture:Any
Tags: solaris, stdint.h

[28 Jul 2009 22:36] Reid Madsen
Description:
When configuring/building/installing on Solaris, MYSQL++ incorrectly assumes that stdint.h is available and arranges for it to be included.  This results in numerous errors during installation -- for example:

In file included from ./lib/stadapter.h:36,
                 from ./lib/qparms.h:35,
                 from ./lib/query.h:34,
                 from ./lib/connection.cpp:31:
./lib/sql_types.h:40:21: warning: stdint.h: No such file or directory

These are all warnings, so the build/installation succeeds.

However, after installation, all applications that build using MYSQL++ headers now get the following warnings:

In file included from /home/rmadsen/sea/local/install/sparc-sunos-solaris-9/versions/V3.0.0.5/include/mysql++/stadapter.h:36,
                 from /home/rmadsen/sea/local/install/sparc-sunos-solaris-9/versions/V3.0.0.5/include/mysql++/qparms.h:35,
                 from /home/rmadsen/sea/local/install/sparc-sunos-solaris-9/versions/V3.0.0.5/include/mysql++/query.h:34,
                 from ../dbs-config.cc:12:
/home/rmadsen/sea/local/install/sparc-sunos-solaris-9/versions/V3.0.0.5/include/mysql++/sql_types.h:40:21: warning: stdint.h: No such file or directory

The worst part of this is that are required to build all of our applications  using "-Werror", so this warning becomes a fatal compiler error.

The particulars of our environment are:

unaarcade:rmadsen> uname -a
SunOS arcade 5.9 Generic_122300-13 sun4u sparc SUNW,Sun-Fire-V490 Solaris

arcade:rmadsen> g++ --version
g++ (GCC) 3.4.6

I've never delved too deeply into the configure stuff, so I'm not sure what to fix...

How to repeat:
Install on Solaris 9.

Suggested fix:
stdint.h should not be included on Solaris.
[30 Jul 2009 7:33] Sveta Smirnova
Thank you for the report.

Verified as described.