Google Grupper har inte längre stöd för nya Usenet-inlägg eller -prenumerationer. Historiskt innehåll förblir synligt.
Dismiss

Xemacs compiling modern distro

37 visningar
Hoppa till det första olästa meddelandet

leur...@gmail.com

oläst,
19 sep. 2017 10:12:472017-09-19
till
Hi.
Just tried to install stable Xemacs-21.4.24 on Slackware 14.2 32 bit.
Got error while ./configure --with-x :
...
checking for X defines extracted by xmkmf
checking for X11/Intrinsic.h... no
configure: error: Unable to find X11 header files.

Alrdy have that Intrinsic.h at /usr/include/X11.
Using libXt-1.1.5 (where Intrinsic.h from).
Can you guys pls help?

Julian Bradfield

oläst,
20 sep. 2017 03:50:022017-09-20
till
Can you post the config.log file?

Дмитрий Петров

oläst,
20 sep. 2017 16:57:552017-09-20
till


Yes sure (final part)

configure:6387: checking for Xm/Xm.h
configure:6395: gcc -E -I/usr/X11/include conftest.c >/dev/null 2>conftest.out
configure:6412: checking for XmStringFree in -lXm
configure:6428: gcc -o conftest -O2 -I/usr/X11/include conftest.c -lXm -lSM -lICE -lm 1>&5
configure:6580: checking for X defines extracted by xmkmf
configure:6629: checking for X11/Intrinsic.h
configure:6637: gcc -E -I/usr/X11/include conftest.c >/dev/null 2>conftest.out
In file included from /usr/include/sys/types.h:25:0,
from /usr/include/X11/Xlib.h:38,
from /usr/include/X11/Intrinsic.h:56,
from configure:6633:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^
configure: failed program was:
#line 6632 "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>

Julian Bradfield

oläst,
21 sep. 2017 03:15:012017-09-21
till
On 2017-09-20, Дмитрий Петров <leur...@gmail.com> wrote:
> configure:6637: gcc -E -I/usr/X11/include conftest.c >/dev/null 2>conftest.out
> In file included from /usr/include/sys/types.h:25:0,
> from /usr/include/X11/Xlib.h:38,
> from /usr/include/X11/Intrinsic.h:56,
> from configure:6633:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
> # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
> ^
> configure: failed program was:
> #line 6632 "configure"
> #include "confdefs.h"
> #include <X11/Intrinsic.h>

This appears to be a recent glibc change.

Fixing it properly would require fixing the configure script, which I
don't know how to do without research.
For a quick hack, try editing src/config.h and defining
_DEFAULT_SOURCE where it defined either _BSD_SOURCE or _SVID_SOURCE

Дмитрий Петров

oläst,
18 mars 2018 07:37:452018-03-18
till
Tried. No luck with Xemacs. Thank you Julian.

Julian Bradfield

oläst,
18 mars 2018 12:25:022018-03-18
till
On 2018-03-18, Дмитрий Петров <leur...@gmail.com> wrote:
> Tried. No luck with Xemacs. Thank you Julian.

I think I should have said, try defining _DEFAULT_SOURCE
as well as whichever of _BSD_SOURCE or _SVID_SOURCE
is defined.
Alternatively, update your distro - in mine, the relevant warning has
been commented out because it breaks too much:)

0 nya meddelanden