Bug 145570 - Compile error on Solaris 8 - runtime/kioslave/nfs/mount_xdr.c includes <stdint.h> which does not exist
Summary: Compile error on Solaris 8 - runtime/kioslave/nfs/mount_xdr.c includes <stdin...
Status: RESOLVED INTENTIONAL
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: nfs (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Alexander Neundorf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-17 18:29 UTC by Steve Evans
Modified: 2009-01-03 01:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Check for the existence of stdint.h before including it (1.28 KB, patch)
2007-05-17 18:30 UTC, Steve Evans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Evans 2007-05-17 18:29:17 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.4.6 
OS:                Solaris

I get this compile error on Solaris:

[  7%] Building C object runtime/kioslave/nfs/CMakeFiles/kio_nfs.dir/mount_xdr.o
/cad4/stevee/kde-svn/kdebase/runtime/kioslave/nfs/mount_xdr.c:11:20: stdint.h: No such file or directory
distcc[7475] ERROR: compile /cad4/stevee/kde-svn/kdebase/runtime/kioslave/nfs/mount_xdr.c on rooster/3 failed

Adding a check for the existence of stdint.h to ConfigureChecks.cmake and then guarding the use of stdint.h in mount_xdr.c fixes it.
Comment 1 Steve Evans 2007-05-17 18:30:03 UTC
Created attachment 20613 [details]
Check for the existence of stdint.h before including it
Comment 2 groot 2009-01-03 01:43:58 UTC
Wasn't applied, but I think we should file Solaris 8 under "unsupported". Solaris 10 and later have stdint.h.