cvs commit: hints errors.txt

tushar at linuxfromscratch.org tushar at linuxfromscratch.org
Wed Oct 8 18:14:47 PDT 2003


tushar      03/10/08 19:14:47

  Modified:    .        errors.txt
  Log:
  Updated Hint: errors
  
  Revision  Changes    Path
  1.2       +17 -1     hints/errors.txt
  
  Index: errors.txt
  ===================================================================
  RCS file: /home/cvsroot/hints/errors.txt,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -u -r1.1 -r1.2
  --- errors.txt	9 Oct 2003 01:10:57 -0000	1.1
  +++ errors.txt	9 Oct 2003 01:14:47 -0000	1.2
  @@ -84,6 +84,12 @@
   come from? Is there a prerequisite you forgot? Are all tools available in the 
   required versions?
   
  +If the file is anywhere else than in the common include path (/usr/include,
  +/usr/local/include), you may add -I<uncommon include path> to the CFLAGS,
  +e.g. "export CFLAGS=-I/usr/X11R6/include". If the #include statement
  +contains a subdirectory, while the file to be included is in the common
  +directory, you'll have to edit the #include statement.
  +
   In most cases the file will be in another directory than the developer thinks 
   it is. The easiest way around that would be a symlink, but that is not a clean
   way. So we search the sources for occurrences of the "missing" file first:
  @@ -157,6 +163,13 @@
   directory is needed, use LDFLAGS: "export LDFLAGS=-L/usr/X11R6/lib" to include
   XFree86's libraries for sure.
   
  +Another (rather seldom) error can occur if libs are not linked right. I only
  +saw it happen once when some program linked to libpng, but forgot about libz,
  +which is used by libpng, but needs to be linked to, too. So in the Makefile,
  +where I found "LIBS=-lpng", I completed it to "LIBS=-lpng -lz". Mostly the
  +function that is missing is given; you can try to grep it in the library
  +(binary matches).
  +
   1.2 Segmentation Fault
   
   This is most annoying. It means an application had an error that is so bad it
  @@ -214,4 +227,7 @@
       * Started to write this hint.
   
     [2003-10-07]
  -    * Initial Version.
  +    * Initial Version, small additions.
  +
  +CREDITS
  +Thanks to teemu for reminding me on "-I" and "-l" :-)
  
  
  



More information about the hints mailing list