[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [23.0.60] fails to build with "--without-x " option
From: |
Eli Zaretskii |
Subject: |
Re: [23.0.60] fails to build with "--without-x " option |
Date: |
Fri, 16 May 2008 14:23:59 +0300 |
> From: Brad Walker <address@hidden>
> Date: Thu, 15 May 2008 20:51:02 -0600
> Cc: address@hidden
>
> On Thu, 2008-05-15 at 09:54 +0900, sangu wrote:
> > emacs]$ configure --without-x
>
> > gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -I.
> > -I/home/sangu/Work/cvs/emacs/src -D_BSD_SOURCE -I/usr/include/freetype2
> > -I/usr/include/alsa -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
> > -g -O2 -Wno-pointer-sign -I/usr/include/freetype2 xfaces.c
> > xfaces.c: In function `merge_face_vectors':
> > xfaces.c:2524: error: `FONT_SIZE_INDEX' undeclared (first use in this
> > function)
>
> I have this problem on Fedora 9 x86_64.
Confirmed. It looks like the latest font backend was not coded with
the --without-x build in mind, because it doesn't have the necessary
font-related substitutes for the tty-only case, like the old code did.
I fixed a few obvious problems in xfaces.c, which gets me through the
compilation stage, but fails during linking thusly:
xfaces.o: In function
`merge_face_ref':/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:2700: undefined
reference to `FONT_WEIGHT_NAME_NUMERIC'
:/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:2712: undefined reference to
`FONT_SLANT_NAME_NUMERIC'
:/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:2795: undefined reference to
`FONT_WIDTH_NAME_NUMERIC'
xfaces.o: In function
`Finternal_set_lisp_face_attribute':/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:3123:
undefined reference to `FONT_WEIGHT_NAME_NUMERIC'
:/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:3137: undefined reference to
`FONT_SLANT_NAME_NUMERIC'
:/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:3307: undefined reference to
`FONT_WIDTH_NAME_NUMERIC'
xfaces.o: In function
`Finternal_set_font_selection_order':/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:5389:
undefined reference to `font_update_sort_order'
:/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:5389: undefined reference to
`font_update_sort_order'
xfaces.o: In function
`realize_tty_face':/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:6061: undefined
reference to `FONT_WEIGHT_NAME_NUMERIC'
:/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:6062: undefined reference to
`FONT_SLANT_NAME_NUMERIC'
xfaces.o: In function
`tty_supports_face_attributes_p':/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:5119:
undefined reference to `FONT_WEIGHT_NAME_NUMERIC'
:/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:5122: undefined reference to
`FONT_WEIGHT_NAME_NUMERIC'
print.o: In function
`print_object':/home/e/eliz/emacs.cvs/emacs/src/print.c:2147: undefined
reference to `font_style_symbolic'
collect2: ld returned 1 exit status
Perhaps someone else could pick up where I left off.