[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

include file problem when compiling apps



Whenver I try to compile a GNOME app or lyx I get errors for include
files.  The
following is a typical example

 make[1]: Entering directory `/usr/local/src/lyx-1.0.2/intl'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory `/usr/local/src/lyx-1.0.2/intl'
 make[1]: Entering directory `/usr/local/src/lyx-1.0.2/po'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory `/usr/local/src/lyx-1.0.2/po'
 make[1]: Entering directory `/usr/local/src/lyx-1.0.2/src'
 g++ -c -g -O2 -I. -I. -I../images   -I/usr/X11R6/include
-DPACKAGE=\"lyx\" -DLOCALEDIR=\"/usr/local/share/locale\" ../src/main.C
 In file included from /usr/include/signal.h:294,
                  from ../src/lyx_main.h:18,
                  from ../src/main.C:13:
 /usr/include/bits/sigcontext.h:28: asm/sigcontext.h: No such file or
directory
 make[1]: *** [main.o] Error 1
 make[1]: Leaving directory `/usr/local/src/lyx-1.0.2/src'
 make: *** [all] Error 1

looking at line 28 of /usr/include/bits/sigcontext.h I find:

 #ifndef sigcontext_struct
 /* Kernel headers before 2.1.1 define a struct sigcontext_struct, but
    we need sigcontext.  */
 # define sigcontext_struct sigcontext

 # include <asm/sigcontext.h>
 #endif

Looking in the directory /usr/include reveals that there is no directory

called asm.  However, there is a directory asm in the following
location:

 /usr/i386-glibc20-linux/include/

and this directory does contain a file sigcontext.h.

I've encountered exactly the same type of problem when compiling the
gnotes applet and
guppi.  In those cases I eventually got both programs compiled by
hacking the
files below:

 /usr/include/bits/socket.h
 /usr/src/linux-2.2.5/include/linux/errno.h
 /usr/i386-glibc20-linux/include/asm/socket.h

(and backing up the original files as:

 /usr/include/bits/socket.h-original
 /usr/src/linux-2.2.5/include/linux/errno.h-original
 /usr/i386-glibc20-linux/include/asm/socket.h-original.
)

I know that this is almost certainly the VERY WRONG way to "fix" the
problem.
What is the correct fix?





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]