all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#31634: emacs 26.1 Compilation error and fix on Solaris 10
@ 2018-05-29  5:49 Christian Jullien
  2018-05-29  6:49 ` Andreas Schwab
  0 siblings, 1 reply; 11+ messages in thread
From: Christian Jullien @ 2018-05-29  5:49 UTC (permalink / raw)
  To: 31634

[-- Attachment #1: Type: text/plain, Size: 546 bytes --]

Hello emacs maintainers,

 

Many thanks for the energy you put on emacs.

 

Trying to compile emacs 26.1 on solaris 10 sparc with gcc 7.3, I get

 

xftfont.c: In function 'xftfont_open':

xftfont.c:338:19: error: 'xftfont_driver' undeclared (first use in this
function); did you mean 'ftxfont_driver'?

   font->driver = &xftfont_driver;

                   ^~~~~~~~~~~~~~

                   ftxfont_driver

 

Which I can easily fix by adding ligne 251:

 

extern struct font_driver const xftfont_driver;

 

Hope it helps.

 

C. Jullien


[-- Attachment #2: Type: text/html, Size: 2895 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31634: emacs 26.1 Compilation error and fix on Solaris 10
  2018-05-29  5:49 bug#31634: emacs 26.1 Compilation error and fix on Solaris 10 Christian Jullien
@ 2018-05-29  6:49 ` Andreas Schwab
  2018-05-29  7:10   ` Christian Jullien
  0 siblings, 1 reply; 11+ messages in thread
From: Andreas Schwab @ 2018-05-29  6:49 UTC (permalink / raw)
  To: Christian Jullien; +Cc: 31634

On Mai 29 2018, "Christian Jullien" <eligis@orange.fr> wrote:

> Trying to compile emacs 26.1 on solaris 10 sparc with gcc 7.3, I get
>
>  
>
> xftfont.c: In function 'xftfont_open':
>
> xftfont.c:338:19: error: 'xftfont_driver' undeclared (first use in this
> function); did you mean 'ftxfont_driver'?

Why aren't you seeing the declaration in src/font.h?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31634: emacs 26.1 Compilation error and fix on Solaris 10
  2018-05-29  6:49 ` Andreas Schwab
@ 2018-05-29  7:10   ` Christian Jullien
  2018-05-29  7:23     ` Andreas Schwab
  0 siblings, 1 reply; 11+ messages in thread
From: Christian Jullien @ 2018-05-29  7:10 UTC (permalink / raw)
  To: 'Andreas Schwab'; +Cc: 31634

In font.h I see

#ifdef HAVE_XFT
extern struct font_driver const xftfont_driver;
#endif

The result of configure gives config.h with XFT feature:

/* Summary of some of the main features enabled by configure. */
#define EMACS_CONFIG_FEATURES "XPM JPEG TIFF PNG ACL FREETYPE XFT
TOOLKIT_SCROLL_BARS LUCID X11 THREADS"

But later in this file, it gives

/* Define to 1 if you have the Xft library. */
/* #undef HAVE_XFT */

So there is no chance to see external declaration in font.h

Christian


-----Original Message-----
From: Andreas Schwab [mailto:schwab@linux-m68k.org] 
Sent: mardi 29 mai 2018 08:50
To: Christian Jullien
Cc: 31634@debbugs.gnu.org
Subject: Re: bug#31634: emacs 26.1 Compilation error and fix on Solaris 10

On Mai 29 2018, "Christian Jullien" <eligis@orange.fr> wrote:

> Trying to compile emacs 26.1 on solaris 10 sparc with gcc 7.3, I get
>
>  
>
> xftfont.c: In function 'xftfont_open':
>
> xftfont.c:338:19: error: 'xftfont_driver' undeclared (first use in this
> function); did you mean 'ftxfont_driver'?

Why aren't you seeing the declaration in src/font.h?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."






^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31634: emacs 26.1 Compilation error and fix on Solaris 10
  2018-05-29  7:10   ` Christian Jullien
@ 2018-05-29  7:23     ` Andreas Schwab
  2018-05-29  9:46       ` Robert Pluim
  0 siblings, 1 reply; 11+ messages in thread
From: Andreas Schwab @ 2018-05-29  7:23 UTC (permalink / raw)
  To: Christian Jullien; +Cc: 31634

On Mai 29 2018, "Christian Jullien" <eligis@orange.fr> wrote:

> The result of configure gives config.h with XFT feature:
>
> /* Summary of some of the main features enabled by configure. */
> #define EMACS_CONFIG_FEATURES "XPM JPEG TIFF PNG ACL FREETYPE XFT
> TOOLKIT_SCROLL_BARS LUCID X11 THREADS"
>
> But later in this file, it gives
>
> /* Define to 1 if you have the Xft library. */
> /* #undef HAVE_XFT */

Looks like there is a logic error in configure, failing to reset
HAVE_XFT to no if Xrender is missing.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31634: emacs 26.1 Compilation error and fix on Solaris 10
  2018-05-29  7:23     ` Andreas Schwab
@ 2018-05-29  9:46       ` Robert Pluim
  2018-05-29 11:09         ` Christian Jullien
  0 siblings, 1 reply; 11+ messages in thread
From: Robert Pluim @ 2018-05-29  9:46 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 31634, Christian Jullien

Andreas Schwab <schwab@linux-m68k.org> writes:

> On Mai 29 2018, "Christian Jullien" <eligis@orange.fr> wrote:
>
>> The result of configure gives config.h with XFT feature:
>>
>> /* Summary of some of the main features enabled by configure. */
>> #define EMACS_CONFIG_FEATURES "XPM JPEG TIFF PNG ACL FREETYPE XFT
>> TOOLKIT_SCROLL_BARS LUCID X11 THREADS"
>>
>> But later in this file, it gives
>>
>> /* Define to 1 if you have the Xft library. */
>> /* #undef HAVE_XFT */
>
> Looks like there is a logic error in configure, failing to reset
> HAVE_XFT to no if Xrender is missing.

Indeed. Christian, could you try the following patch? (you'll need to
regenerate configure and re-run it).

diff --git i/configure.ac w/configure.ac
index c66c80adbb..c6101d6353 100644
--- i/configure.ac
+++ w/configure.ac
@@ -3210,8 +3210,8 @@ AC_DEFUN
     if test "x${with_xft}" != "xno"; then
 
       EMACS_CHECK_MODULES([XFT], [xft >= 0.13.0], [], [HAVE_XFT=no])
-      ## Because xftfont.c uses XRenderQueryExtension, we also
-      ## need to link to -lXrender.
+      ## Because xterm.c uses XRenderQueryExtension when XFT is
+      ## enabled, we also need to link to -lXrender.
       HAVE_XRENDER=no
       AC_CHECK_LIB(Xrender, XRenderQueryExtension, HAVE_XRENDER=yes)
       if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
@@ -3234,6 +3234,9 @@ AC_DEFUN
 	CPPFLAGS=$OLD_CPPFLAGS
 	CFLAGS=$OLD_CFLAGS
 	LIBS=$OLD_LIBS
+      else
+      # Make sure XFT is disabled if we found XFT but not XRender
+	HAVE_XFT=no
       fi                          # "$HAVE_XFT" != no
     fi                            # "x${with_xft}" != "xno"
 





^ permalink raw reply related	[flat|nested] 11+ messages in thread

* bug#31634: emacs 26.1 Compilation error and fix on Solaris 10
  2018-05-29  9:46       ` Robert Pluim
@ 2018-05-29 11:09         ` Christian Jullien
  2018-05-29 12:55           ` Robert Pluim
  0 siblings, 1 reply; 11+ messages in thread
From: Christian Jullien @ 2018-05-29 11:09 UTC (permalink / raw)
  To: 'Robert Pluim', 'Andreas Schwab'; +Cc: 31634

Thanks, this patch works and you can close the bug report.

I'm facing other issues like:
ld.so.1: temacs: fatal: libxml2.so.2: version 'SUNW_1.1' not found (required
by file temacs)

But it's another story I'm investigating (LD_NOVERSION=yes ./temacs let it
work)

-----Original Message-----
From: Robert Pluim [mailto:rpluim@gmail.com] 
Sent: mardi 29 mai 2018 11:47
To: Andreas Schwab
Cc: Christian Jullien; 31634@debbugs.gnu.org
Subject: Re: bug#31634: emacs 26.1 Compilation error and fix on Solaris 10

Andreas Schwab <schwab@linux-m68k.org> writes:

> On Mai 29 2018, "Christian Jullien" <eligis@orange.fr> wrote:
>
>> The result of configure gives config.h with XFT feature:
>>
>> /* Summary of some of the main features enabled by configure. */
>> #define EMACS_CONFIG_FEATURES "XPM JPEG TIFF PNG ACL FREETYPE XFT
>> TOOLKIT_SCROLL_BARS LUCID X11 THREADS"
>>
>> But later in this file, it gives
>>
>> /* Define to 1 if you have the Xft library. */
>> /* #undef HAVE_XFT */
>
> Looks like there is a logic error in configure, failing to reset
> HAVE_XFT to no if Xrender is missing.

Indeed. Christian, could you try the following patch? (you'll need to
regenerate configure and re-run it).

diff --git i/configure.ac w/configure.ac
index c66c80adbb..c6101d6353 100644
--- i/configure.ac
+++ w/configure.ac
@@ -3210,8 +3210,8 @@ AC_DEFUN
     if test "x${with_xft}" != "xno"; then
 
       EMACS_CHECK_MODULES([XFT], [xft >= 0.13.0], [], [HAVE_XFT=no])
-      ## Because xftfont.c uses XRenderQueryExtension, we also
-      ## need to link to -lXrender.
+      ## Because xterm.c uses XRenderQueryExtension when XFT is
+      ## enabled, we also need to link to -lXrender.
       HAVE_XRENDER=no
       AC_CHECK_LIB(Xrender, XRenderQueryExtension, HAVE_XRENDER=yes)
       if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
@@ -3234,6 +3234,9 @@ AC_DEFUN
 	CPPFLAGS=$OLD_CPPFLAGS
 	CFLAGS=$OLD_CFLAGS
 	LIBS=$OLD_LIBS
+      else
+      # Make sure XFT is disabled if we found XFT but not XRender
+	HAVE_XFT=no
       fi                          # "$HAVE_XFT" != no
     fi                            # "x${with_xft}" != "xno"
 






^ permalink raw reply related	[flat|nested] 11+ messages in thread

* bug#31634: emacs 26.1 Compilation error and fix on Solaris 10
  2018-05-29 11:09         ` Christian Jullien
@ 2018-05-29 12:55           ` Robert Pluim
  2018-05-29 13:16             ` Christian Jullien
  2018-05-29 16:34             ` Eli Zaretskii
  0 siblings, 2 replies; 11+ messages in thread
From: Robert Pluim @ 2018-05-29 12:55 UTC (permalink / raw)
  To: Christian Jullien; +Cc: 31634, 'Andreas Schwab'

"Christian Jullien" <eligis@orange.fr> writes:

> Thanks, this patch works and you can close the bug report.
>

OK. Eli, for master I presume?

> I'm facing other issues like:
> ld.so.1: temacs: fatal: libxml2.so.2: version 'SUNW_1.1' not found (required
> by file temacs)
>

That sounds like ld is finding a different library version from the
headers used to compile emacs. That shouldn't happen, so it might be
another configure bug.

Regards

Robert





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31634: emacs 26.1 Compilation error and fix on Solaris 10
  2018-05-29 12:55           ` Robert Pluim
@ 2018-05-29 13:16             ` Christian Jullien
  2018-05-30  3:27               ` Richard Stallman
  2018-05-29 16:34             ` Eli Zaretskii
  1 sibling, 1 reply; 11+ messages in thread
From: Christian Jullien @ 2018-05-29 13:16 UTC (permalink / raw)
  To: 'Robert Pluim'; +Cc: 31634, 'Andreas Schwab'

I compile around 100 different open source packages (mostly GNU) for more
than 10 year on Solaris and this is the very first time I see version
'SUNW_1.1' not found (required)' with a shared lib.
I'm trying emacs without libxml2 to see what happens

-----Original Message-----
From: Robert Pluim [mailto:rpluim@gmail.com] 
Sent: mardi 29 mai 2018 14:55
To: Christian Jullien
Cc: 'Andreas Schwab'; 31634@debbugs.gnu.org
Subject: Re: bug#31634: emacs 26.1 Compilation error and fix on Solaris 10

"Christian Jullien" <eligis@orange.fr> writes:

> Thanks, this patch works and you can close the bug report.
>

OK. Eli, for master I presume?

> I'm facing other issues like:
> ld.so.1: temacs: fatal: libxml2.so.2: version 'SUNW_1.1' not found
(required
> by file temacs)
>

That sounds like ld is finding a different library version from the
headers used to compile emacs. That shouldn't happen, so it might be
another configure bug.

Regards

Robert






^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31634: emacs 26.1 Compilation error and fix on Solaris 10
  2018-05-29 12:55           ` Robert Pluim
  2018-05-29 13:16             ` Christian Jullien
@ 2018-05-29 16:34             ` Eli Zaretskii
  2018-05-29 18:35               ` Robert Pluim
  1 sibling, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2018-05-29 16:34 UTC (permalink / raw)
  To: Robert Pluim; +Cc: 31634, schwab, eligis

> From: Robert Pluim <rpluim@gmail.com>
> Date: Tue, 29 May 2018 14:55:27 +0200
> Cc: 31634@debbugs.gnu.org, 'Andreas Schwab' <schwab@linux-m68k.org>
> 
> "Christian Jullien" <eligis@orange.fr> writes:
> 
> > Thanks, this patch works and you can close the bug report.
> >
> 
> OK. Eli, for master I presume?

No, emacs-26.  Emacs 26.1 was released, so we can now fix more bugs on
the release branch.

Thanks.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31634: emacs 26.1 Compilation error and fix on Solaris 10
  2018-05-29 16:34             ` Eli Zaretskii
@ 2018-05-29 18:35               ` Robert Pluim
  0 siblings, 0 replies; 11+ messages in thread
From: Robert Pluim @ 2018-05-29 18:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 31634-done, schwab, eligis

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Robert Pluim <rpluim@gmail.com>
>> Date: Tue, 29 May 2018 14:55:27 +0200
>> Cc: 31634@debbugs.gnu.org, 'Andreas Schwab' <schwab@linux-m68k.org>
>> 
>> "Christian Jullien" <eligis@orange.fr> writes:
>> 
>> > Thanks, this patch works and you can close the bug report.
>> >
>> 
>> OK. Eli, for master I presume?
>
> No, emacs-26.  Emacs 26.1 was released, so we can now fix more bugs on
> the release branch.
>
> Thanks.

Closing bug, pushed as f212fe512c

Robert





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31634: emacs 26.1 Compilation error and fix on Solaris 10
  2018-05-29 13:16             ` Christian Jullien
@ 2018-05-30  3:27               ` Richard Stallman
  0 siblings, 0 replies; 11+ messages in thread
From: Richard Stallman @ 2018-05-30  3:27 UTC (permalink / raw)
  To: Christian Jullien; +Cc: 31634, rpluim, schwab

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > I compile around 100 different open source packages (mostly GNU) for more

Please don't think of the GNU system or GNU packages as "open source"
-- on the contrary, that's the slogan used for rejection of what we
stand for.  We stand for giving users freedom -- that's why it is
called "free (libre) software".

See https://gnu.org/philosophy/open-source-misses-the-point.html
for more explanation of the difference between free software and open
source.  See also https://thebaffler.com/salvos/the-meme-hustler for
Evgeny Morozov's article on the same point.

Nonetheless, thanks for reporting a problem -- that helps us do
a good job.

-- 
Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)







^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-05-30  3:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-29  5:49 bug#31634: emacs 26.1 Compilation error and fix on Solaris 10 Christian Jullien
2018-05-29  6:49 ` Andreas Schwab
2018-05-29  7:10   ` Christian Jullien
2018-05-29  7:23     ` Andreas Schwab
2018-05-29  9:46       ` Robert Pluim
2018-05-29 11:09         ` Christian Jullien
2018-05-29 12:55           ` Robert Pluim
2018-05-29 13:16             ` Christian Jullien
2018-05-30  3:27               ` Richard Stallman
2018-05-29 16:34             ` Eli Zaretskii
2018-05-29 18:35               ` Robert Pluim

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.