Bug #46439 MySQL erroneously attempts to include stdint.h on Solaris 9
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.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
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.