GNU bug report logs -
#16930
[ac02f3a7] fails to build without HAVE_WINDOW_SYSTEM
Previous Next
Reported by: Ivan Shmakov <ivan <at> siamics.net>
Date: Mon, 3 Mar 2014 19:30:02 UTC
Severity: normal
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16930 in the body.
You can then email your comments to 16930 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16930
; Package
emacs
.
(Mon, 03 Mar 2014 19:30:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ivan Shmakov <ivan <at> siamics.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 03 Mar 2014 19:30:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Package: emacs
As of ac02f3a7, Emacs fails to build with the following error.
gcc -std=gnu99 -c -Demacs -I. -I../../src -I../lib -I../../src/../lib -isystem /usr/include/libxml2 -MMD -MF deps/font.d -MP -isystem /usr/include/p11-kit-1 -pthread -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -W -Wabi -Waddress -Waggressive-loop-optimizations -Wall -Warray-bounds -Wattributes -Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch -Wcpp -Wdeprecated -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wdouble-promotion -Wempty-body -Wendif-labels -Wenum-compare -Wextra -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-y2k -Wformat-zero-length -Wfree-nonheap-object -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch -Wmain -Wmaybe-uninitialized -Wmissing-braces -Wmissing-declarations -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-prototypes -Wmultichar -Wnarrowing -Wnonnull -Wnormalized=nfc -Wold-style-declaration -Wold-style-definition -Woverflow -Woverride-init -Wpacked -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wreturn-local-addr -Wreturn-type -Wsequence-point -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstrict-prototypes -Wsuggest-attribute=format -Wtrampolines -Wtrigraphs -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-macros -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros -Wvector-operation-performance -Wvolatile-register-var -Wwrite-strings -fdiagnostics-show-option -funit-at-a-time -Wno-missing-field-initializers -Wno-sign-compare -Wno-type-limits -Wno-switch -Wno-unused-parameter -Wno-format-nonliteral -Wno-logical-op -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -Werror -g3 -O2 ../../src/font.c
../../src/font.c: In function 'Fframe_font_cache':
../../src/font.c:4853:3: error: implicit declaration of function 'FRAME_DISPLAY_INFO' [-Werror=implicit-function-declaration]
return FRAME_DISPLAY_INFO (decode_live_frame (frame))->name_list_element;
^
../../src/font.c:4853:56: error: invalid type argument of '->' (have 'int')
return FRAME_DISPLAY_INFO (decode_live_frame (frame))->name_list_element;
^
../../src/font.c:4854:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: all warnings being treated as errors
make[1]: *** [font.o] Error 1
As all the other invocations of FRAME_DISPLAY_INFO () seem to be
guarded with #ifdef HAVE_WINDOW_SYSTEM, I’d rather assume that
the whole DEFUN ("frame-font-cache", …) should also be within
such guards, along with the reference to Sframe_font_cache
within syms_of_font ().
--
FSF associate member #7257
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16930
; Package
emacs
.
(Mon, 03 Mar 2014 19:41:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 16930 <at> debbugs.gnu.org (full text, mbox):
Thanks, we know, thanks to the automated builds.
http://lists.gnu.org/archive/html/emacs-buildstatus/2014-03/msg00000.html
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Mon, 03 Mar 2014 20:03:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Ivan Shmakov <ivan <at> siamics.net>
:
bug acknowledged by developer.
(Mon, 03 Mar 2014 20:03:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 16930-done <at> debbugs.gnu.org (full text, mbox):
> From: Ivan Shmakov <ivan <at> siamics.net>
> Date: Mon, 03 Mar 2014 19:29:39 +0000
>
> ../../src/font.c: In function 'Fframe_font_cache':
> ../../src/font.c:4853:3: error: implicit declaration of function 'FRAME_DISPLAY_INFO' [-Werror=implicit-function-declaration]
> return FRAME_DISPLAY_INFO (decode_live_frame (frame))->name_list_element;
> ^
> ../../src/font.c:4853:56: error: invalid type argument of '->' (have 'int')
> return FRAME_DISPLAY_INFO (decode_live_frame (frame))->name_list_element;
> ^
> ../../src/font.c:4854:1: error: control reaches end of non-void function [-Werror=return-type]
> }
> ^
> cc1: all warnings being treated as errors
> make[1]: *** [font.o] Error 1
Should be fixed now (trunk revision 116646).
> As all the other invocations of FRAME_DISPLAY_INFO () seem to be
> guarded with #ifdef HAVE_WINDOW_SYSTEM, I’d rather assume that
> the whole DEFUN ("frame-font-cache", …) should also be within
> such guards, along with the reference to Sframe_font_cache
> within syms_of_font ().
No, it's not enough to #ifdef away that function when
HAVE_WINDOW_SYSTEM is not defined, because if HAVE_WINDOW_SYSTEM _is_
defined, you can still call the function for a TTY frame.
In general, one has always think about multi-tty when handling such
issues: a build that supports window-system can have frames that
don't. It's no longer a compile-time issue.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 01 Apr 2014 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 36 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.