LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2007, 10:18 PM   #1
jafmarty
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
c std libs/header files


Hi,
I've been learning gui programming using fltk. I recently upgraded my scientific linux 4.5 (enterprise 4) using 'yum update'. After the update, I couldn't compile my program anymore. When I tried to recompile the fltk package, I couldn't. I get error messages about the c header files. Apparently, when I upgraded my system, a package containing the c/c++ header files was deleted. I then tried upgrading to Scientific linux 5, but the configure/compile error persists.

I'm using the same procedure now that I did before to configure and compile the fltk package.
./configure
make

Which headers are used when compiling, the kernel headers, or the gcc headers?

In the configure output, the configure script can't find the ansi c header files. What package would they be in, glibc? I checked to make sure that glibc and libgcc were installed.

Is there an environment variable that can be set to list directories to search for the headers ( similar to PATH)?

what's the best way to recover from this sort of thing, a fresh installation, instead of an update?

Thanks,
Marty


I have included the ./configure output and the make errors:

system:
Dell precision 390 (core 2)
Scientific linus 5.0 ( enterprise 5) 2.6.18-8
emacs 21.4-18
glibc 2.5-12
libgcc 4.1.1-52

here's the output from configure:

arty@fltk-2.0.x-r5990$./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... unsupported
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for nroff... /usr/bin/nroff
checking for htmldoc... no
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking whether byte ordering is bigendian... no
checking for short... no
checking size of short... 0
checking for int... no
checking size of int... 0
checking for long... no
checking size of long... 0
checking whether the compiler recognizes bool as a built-in type... yes
checking for dirent.h that defines DIR... no
checking for sys/ndir.h that defines DIR... no
checking for sys/dir.h that defines DIR... no
checking for ndir.h that defines DIR... no
checking for library containing opendir... none required
checking sys/select.h usability... no
checking sys/select.h presence... yes
configure: WARNING: sys/select.h: present but cannot be compiled
configure: WARNING: sys/select.h: check for missing prerequisite headers?
configure: WARNING: sys/select.h: see the Autoconf documentation
configure: WARNING: sys/select.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/select.h: proceeding with the preprocessor's result
configure: WARNING: sys/select.h: in the future, the compiler will take precedence
checking for sys/select.h... yes
checking sys/stdtypes.h usability... no
checking sys/stdtypes.h presence... no
checking for sys/stdtypes.h... no
checking for scandir... yes
checking for string.h... (cached) no
checking for strings.h... (cached) no
checking for snprintf... yes
checking for vsnprintf... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strlcat... no
checking for strlcpy... no
checking for library containing pow... -lm
checking jpeglib.h usability... no
checking jpeglib.h presence... yes
configure: WARNING: jpeglib.h: present but cannot be compiled
configure: WARNING: jpeglib.h: check for missing prerequisite headers?
configure: WARNING: jpeglib.h: see the Autoconf documentation
configure: WARNING: jpeglib.h: section "Present But Cannot Be Compiled"
configure: WARNING: jpeglib.h: proceeding with the preprocessor's result
configure: WARNING: jpeglib.h: in the future, the compiler will take precedence
checking for jpeglib.h... yes
checking for jpeg_destroy_decompress in -ljpeg... yes
checking zlib.h usability... no
checking zlib.h presence... yes
configure: WARNING: zlib.h: present but cannot be compiled
configure: WARNING: zlib.h: check for missing prerequisite headers?
configure: WARNING: zlib.h: see the Autoconf documentation
configure: WARNING: zlib.h: section "Present But Cannot Be Compiled"
configure: WARNING: zlib.h: proceeding with the preprocessor's result
configure: WARNING: zlib.h: in the future, the compiler will take precedence
checking for zlib.h... yes
checking for gzopen in -lz... yes
checking png.h usability... no
checking png.h presence... yes
configure: WARNING: png.h: present but cannot be compiled
configure: WARNING: png.h: check for missing prerequisite headers?
configure: WARNING: png.h: see the Autoconf documentation
configure: WARNING: png.h: section "Present But Cannot Be Compiled"
configure: WARNING: png.h: proceeding with the preprocessor's result
configure: WARNING: png.h: in the future, the compiler will take precedence
checking for png.h... yes
checking libpng/png.h usability... no
checking libpng/png.h presence... no
checking for libpng/png.h... no
checking for png_read_rows in -lpng... yes
checking for png_get_valid... yes
checking for png_set_tRNS_to_alpha... yes
checking pthread.h usability... no
checking pthread.h presence... yes
configure: WARNING: pthread.h: present but cannot be compiled
configure: WARNING: pthread.h: check for missing prerequisite headers?
configure: WARNING: pthread.h: see the Autoconf documentation
configure: WARNING: pthread.h: section "Present But Cannot Be Compiled"
configure: WARNING: pthread.h: proceeding with the preprocessor's result
configure: WARNING: pthread.h: in the future, the compiler will take precedence
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking for X... libraries /usr/lib, headers
checking whether -R must be followed by a space... neither works
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
configure: WARNING: Ignoring libraries " -lSM -lICE" requested by configure.
checking for library containing dlopen... none required
checking GL/gl.h usability... no
checking GL/gl.h presence... yes
configure: WARNING: GL/gl.h: present but cannot be compiled
configure: WARNING: GL/gl.h: check for missing prerequisite headers?
configure: WARNING: GL/gl.h: see the Autoconf documentation
configure: WARNING: GL/gl.h: section "Present But Cannot Be Compiled"
configure: WARNING: GL/gl.h: proceeding with the preprocessor's result
configure: WARNING: GL/gl.h: in the future, the compiler will take precedence
checking for GL/gl.h... yes
checking for glXMakeCurrent in -lGL... yes
checking GL/glu.h usability... no
checking GL/glu.h presence... yes
configure: WARNING: GL/glu.h: present but cannot be compiled
configure: WARNING: GL/glu.h: check for missing prerequisite headers?
configure: WARNING: GL/glu.h: see the Autoconf documentation
configure: WARNING: GL/glu.h: section "Present But Cannot Be Compiled"
configure: WARNING: GL/glu.h: proceeding with the preprocessor's result
configure: WARNING: GL/glu.h: in the future, the compiler will take precedence
checking for GL/glu.h... yes
checking for freetype-config... /usr/bin/freetype-config
checking X11/Xft/Xft.h usability... no
checking X11/Xft/Xft.h presence... yes
configure: WARNING: X11/Xft/Xft.h: present but cannot be compiled
configure: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?
configure: WARNING: X11/Xft/Xft.h: see the Autoconf documentation
configure: WARNING: X11/Xft/Xft.h: section "Present But Cannot Be Compiled"
configure: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result
configure: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence
checking for X11/Xft/Xft.h... yes
checking for XftDrawCreate in -lXft... yes
checking for X11/extensions/Xdbe.h... no
checking for X11/extensions/Xinerama.h... no
checking for X overlay visuals... no
checking for Xutf8LookupString in -lX11... yes
checking if libsupc++ is required... yes
configure: creating ./config.status
config.status: creating makeinclude
config.status: WARNING: makeinclude.in seems to ignore the --datarootdir setting
config.status: creating fltk.list
config.status: WARNING: fltk.list.in seems to ignore the --datarootdir setting
config.status: creating fltk2-config
config.status: creating config.h
config.status: config.h is unchanged

Libs: -lX11 -lXi -lXft -lpthread -lm -lXext -lsupc++
System image libs: -lpng -lfltk2_images -ljpeg -lz
Local image libs:
OpenGL libs: -lGLU -lGL

Build targets: static

marty@fltk-2.0.x-r5990$


here's the error output from the compiler:
marty@fltk-2.0.x-r5990$make
=== making src ===
Compiling add_idle.cxx...
Compiling addarc.cxx...
/usr/include/string.h:39: error: ‘size_t’ has not been declared
/usr/include/string.h:43: error: ‘size_t’ has not been declared
/usr/include/string.h:52: error: ‘size_t’ has not been declared
/usr/include/string.h:59: error: ‘size_t’ has not been declared
/usr/include/string.h:62: error: ‘size_t’ has not been declared
/usr/include/string.h:66: error: ‘size_t’ has not been declared
/usr/include/string.h:77: error: ‘size_t’ has not been declared
/usr/include/string.h:88: error: ‘size_t’ has not been declared
/usr/include/string.h:96: error: ‘size_t’ has not been declared
/usr/include/string.h:102: error: ‘size_t’ has not been declared
/usr/include/string.h:109: error: ‘size_t’ does not name a type
/usr/include/string.h:124: error: ‘size_t’ does not name a type
/usr/include/string.h:138: error: ‘size_t’ has not been declared
/usr/include/string.h:184: error: ‘size_t’ does not name a type
/usr/include/string.h:188: error: ‘size_t’ does not name a type
/usr/include/string.h:225: error: ‘size_t’ has not been declared
/usr/include/string.h:226: error: ‘size_t’ has not been declared
/usr/include/string.h:232: error: ‘size_t’ has not been declared
/usr/include/string.h:235: error: ‘size_t’ has not been declared
/usr/include/string.h:242: error: ‘size_t’ does not name a type
/usr/include/string.h:249: error: ‘size_t’ does not name a type
/usr/include/string.h:281: error: ‘size_t’ has not been declared
/usr/include/string.h:288: error: ‘size_t’ has not been declared
/usr/include/string.h:292: error: ‘size_t’ has not been declared
/usr/include/string.h:296: error: ‘size_t’ has not been declared
/usr/include/string.h:299: error: ‘size_t’ has not been declared
/usr/include/string.h:329: error: ‘size_t’ has not been declared
/usr/include/string.h:341: error: ‘size_t’ has not been declared
/usr/include/string.h:370: error: ‘size_t’ has not been declared
/usr/include/string.h:373: error: ‘size_t’ has not been declared
/usr/include/string.h:380: error: ‘size_t’ has not been declared
/usr/include/gconv.h:72: error: ‘size_t’ has not been declared
/usr/include/gconv.h:88: error: ‘size_t’ has not been declared
/usr/include/gconv.h:97: error: ‘size_t’ has not been declared
/usr/include/gconv.h:174: error: ‘size_t’ does not name a type
/usr/include/libio.h:329: error: ‘size_t’ does not name a type
/usr/include/libio.h:333: error: ‘size_t’ was not declared in this scope
/usr/include/libio.h:361: error: ‘size_t’ has not been declared
/usr/include/libio.h:370: error: ‘size_t’ has not been declared
/usr/include/libio.h:486: error: ‘size_t’ does not name a type
/usr/include/stdio.h:291: error: ‘size_t’ has not been declared
/usr/include/stdio.h:296: error: ‘size_t’ has not been declared
/usr/include/stdio.h:308: error: ‘size_t’ has not been declared
/usr/include/stdio.h:315: error: ‘size_t’ has not been declared
/usr/include/stdio.h:357: error: ‘size_t’ has not been declared
/usr/include/stdio.h:361: error: ‘size_t’ has not been declared
/usr/include/stdio.h:567: error: ‘size_t’ has not been declared
/usr/include/stdio.h:570: error: ‘size_t’ has not been declared
/usr/include/stdio.h:580: error: ‘size_t’ has not been declared
/usr/include/stdio.h:610: error: ‘size_t’ does not name a type
/usr/include/stdio.h:616: error: ‘size_t’ does not name a type
/usr/include/stdio.h:638: error: ‘size_t’ does not name a type
/usr/include/stdio.h:640: error: ‘size_t’ does not name a type
/usr/include/bits/stdio.h:102: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:140: error: ‘size_t’ does not name a type
/usr/include/stdlib.h:455: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:485: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:589: error: ‘size_t’ was not declared in this scope
/usr/include/stdlib.h:589: error: expected ‘,’ or ‘;’ before ‘throw’
/usr/include/stdlib.h:591: error: ‘size_t’ was not declared in this scope
/usr/include/stdlib.h:591: error: ‘size_t’ was not declared in this scope
/usr/include/stdlib.h:591: error: initializer expression list treated as compound expression
/usr/include/stdlib.h:592: error: expected ‘,’ or ‘;’ before ‘throw’
/usr/include/stdlib.h:600: error: ‘size_t’ has not been declared
/usr/include/alloca.h:33: error: ‘size_t’ was not declared in this scope
/usr/include/alloca.h:33: error: expected ‘,’ or ‘;’ before ‘throw’
/usr/include/stdlib.h:617: error: ‘size_t’ was not declared in this scope
/usr/include/stdlib.h:617: error: expected ‘,’ or ‘;’ before ‘throw’
/usr/include/stdlib.h:622: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:622: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:776: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:776: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:781: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:781: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:854: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:857: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:861: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:865: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:874: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:878: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:885: error: ‘size_t’ does not name a type
/usr/include/stdlib.h:888: error: ‘size_t’ does not name a type
/usr/include/stdlib.h:951: error: ‘size_t’ has not been declared
/usr/include/freetype2/freetype/fttypes.h:315: error: ‘size_t’ does not name a type
/usr/include/freetype2/freetype/fttypes.h:328: error: ‘ptrdiff_t’ does not name a type
/usr/include/unistd.h:325: error: ‘size_t’ has not been declared
/usr/include/unistd.h:331: error: ‘size_t’ has not been declared
/usr/include/unistd.h:341: error: ‘size_t’ has not been declared
/usr/include/unistd.h:349: error: ‘size_t’ has not been declared
/usr/include/unistd.h:369: error: ‘size_t’ has not been declared
/usr/include/unistd.h:373: error: ‘size_t’ has not been declared
/usr/include/unistd.h:469: error: ‘size_t’ has not been declared
/usr/include/unistd.h:566: error: ‘size_t’ does not name a type
/usr/include/unistd.h:738: error: ‘size_t’ has not been declared
/usr/include/unistd.h:774: error: ‘size_t’ has not been declared
/usr/include/unistd.h:785: error: ‘size_t’ has not been declared
/usr/include/unistd.h:821: error: ‘size_t’ has not been declared
/usr/include/unistd.h:843: error: ‘size_t’ has not been declared
/usr/include/unistd.h:850: error: ‘size_t’ has not been declared
/usr/include/unistd.h:861: error: ‘size_t’ has not been declared
/usr/include/unistd.h:863: error: ‘size_t’ has not been declared
/usr/include/unistd.h:881: error: ‘size_t’ has not been declared
/usr/include/unistd.h:882: error: ‘size_t’ has not been declared
make[1]: *** [addarc.o] Error 1
make: *** [all] Error 2
marty@fltk-2.0.x-r5990$
 
Old 12-04-2007, 12:08 AM   #2
mat2ag
LQ Newbie
 
Registered: Aug 2002
Distribution: Slackware,Redhat
Posts: 17

Rep: Reputation: 0
For compiling programs both stdlibc and sometimes kernel headers are necssary. You can check them in "/usr/include". Be careful standard headers for stdlibc++ is separately disterbuted. The best way is check them with simple sample programs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
link-time libs need to be run0time libs says curl's make install UniquelyAm Linux - Software 0 06-09-2007 01:40 AM
finding uneeded libs and files Michael_aust Mandriva 1 03-10-2006 08:43 AM
Including header files and source files for classes Feenix Programming 8 09-28-2005 10:53 AM
gcc header files and cpp files? EchO Linux - Software 3 03-01-2005 01:14 AM
c header files in linux in place of header files in windows? harun_acs Programming 1 03-17-2004 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration