Bug 114821 - Compile error on Solaris 8 - indexlib (in several files) includes <stdint.h> that is not present.
Summary: Compile error on Solaris 8 - indexlib (in several files) includes <stdint.h> ...
Status: RESOLVED FIXED
Alias: None
Product: indexlib
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Luís Pedro Coelho
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-21 17:27 UTC by Steve Evans
Modified: 2005-10-31 15:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Evans 2005-10-21 17:27:42 UTC
Version:            (using KDE KDE 3.4.92)
Installed from:    Compiled From Sources
Compiler:          gcc 3.4.3 
OS:                Solaris

if /bin/bash ../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdepim -I/opt/kde/include -I/opt/qt/include   -I/gorbag/exta/cad/externals/SOLARIS/gnome2/include/glib-2.0 -I/gorbag/exta/cad/externals/SOLARIS/include  -DQT_THREAD_SUPPORT -I/opt/kde/include -I/gorbag/exta/cad/externals/SOLARIS/gnome2/include/glib-2.0 -I/gorbag/exta/cad/externals/SOLARIS/include -I/opt/qt/include  -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4 -D_FILE_OFFSET_BITS=64  -Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -I/opt/kde/include -I/gorbag/exta/cad/externals/SOLARIS/gnome2/include/glib-2.0 -I/gorbag/exta/cad/externals/SOLARIS/include -I/opt/qt/include -O2 -fomit-frame-pointer -DNeedVarargsPrototypes=1 -DNeedFunctionPrototypes=1 -pipe -fno-exceptions -mcpu=ultrasparc -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -include ./compat.h -fexceptions -MT compressed.lo -MD -MP -MF ".deps/compressed.Tpo" -c -o compressed.lo compressed.cpp; \
then mv -f ".deps/compressed.Tpo" ".deps/compressed.Plo"; else rm -f ".deps/compressed.Tpo"; exit 1; fi
In file included from memreference.h:35,
                 from memvector.h:34,
                 from compressed.h:38,
                 from compressed.cpp:32:
bitio.h:34:20: stdint.h: No such file or directory

(This is a problem in indexlib rather than kontact, but there is no entry for indexlib in the list of applications when reporting this bug, so I picked kontact.)
Comment 1 Thiago Macieira 2005-10-22 01:46:17 UTC
Replace with <sys/types.h>. Most types are available using this POSIX (I think) header.

Reassigning to the newly created indexlib product.
Comment 2 Luís Pedro Coelho 2005-10-31 15:31:02 UTC
SVN commit 476085 by luis_pedro:

Include inttypes.h instead of stdint.h for portability (inttypes is reported
to be more common although stdint is the official standard).

CCMAIL: 114821-done@bugs.kde.org


 M  +1 -1      bitio.h  
 M  +1 -1      bitstream.h  
 M  +1 -1      leafdata.h  
 M  +1 -1      pointer.h  
 M  +1 -1      thing.h  


--- branches/KDE/3.5/kdepim/indexlib/bitio.h #476084:476085
@@ -31,7 +31,7 @@
  * your version.
  */
 
-#include <stdint.h>
+#include <inttypes.h>
 #include "boost-compat/remove_cv.hpp"
 
 /**
--- branches/KDE/3.5/kdepim/indexlib/bitstream.h #476084:476085
@@ -30,7 +30,7 @@
  * your version.
  */
 #include <vector>
-#include <stdint.h>
+#include <inttypes.h>
 
 struct bitstream {
 	public:
--- branches/KDE/3.5/kdepim/indexlib/leafdata.h #476084:476085
@@ -34,7 +34,7 @@
 
 #include <iostream>
 #include <iterator>
-#include <stdint.h>
+#include <inttypes.h>
 #include "pointer.h"
 #include "memvector.h"
 #include "thing.h"
--- branches/KDE/3.5/kdepim/indexlib/pointer.h #476084:476085
@@ -32,7 +32,7 @@
  */
 
 
-#include <stdint.h>
+#include <inttypes.h>
 #include <iostream>
 #include "boost-compat/static_assert.hpp"
 #ifdef HAVE_BOOST
--- branches/KDE/3.5/kdepim/indexlib/thing.h #476084:476085
@@ -32,7 +32,7 @@
  */
 
 
-#include <stdint.h>
+#include <inttypes.h>
 #include "bitio.h"
 #include "pointer.h"