unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23641: emacs-25.0.94 build feedback
@ 2016-05-28 18:41 Nelson H. F. Beebe
  2016-05-28 19:32 ` Eli Zaretskii
  2016-05-29 20:23 ` Richard Stallman
  0 siblings, 2 replies; 8+ messages in thread
From: Nelson H. F. Beebe @ 2016-05-28 18:41 UTC (permalink / raw)
  To: 23641; +Cc: beebe

I'm pleased to report that I've successfully built and installed the
latest emacs-25.0.94 test release on at least 65 flavors of Unix in my
test lab of more than 80 such systems.

However, on FreeBSD 11 x86-64, I ran into an issue.  Configuring
selects -lgio in src/Makefile, but that library has a problem on that
system: it refers to a symbol sendmmsg@FBSD_1.4 that is not defined in
any of the 3492 libraries installed on my system.  Even a forced
reinstallation of the -lgio library did not resolve the missing
symbol.

I made numerous unsuccessful attempts with various --without-XXX
options at configure time to try to eliminate the reference to -lgio,
but all failed.

I then examined configure.ac, where it appears that -lgio has to do
with glib, but could still not see what library options are forcing
the inclusion of -lgio.

I finally succeeded in building the new emacs with

	./configure --without-all --with-x && gmake all

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe@math.utah.edu  -
- 155 S 1400 E RM 233                       beebe@acm.org  beebe@computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------





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

* bug#23641: emacs-25.0.94 build feedback
  2016-05-28 18:41 bug#23641: emacs-25.0.94 build feedback Nelson H. F. Beebe
@ 2016-05-28 19:32 ` Eli Zaretskii
  2016-05-28 19:37   ` Eli Zaretskii
  2016-05-29 20:23 ` Richard Stallman
  1 sibling, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2016-05-28 19:32 UTC (permalink / raw)
  To: Nelson H. F. Beebe; +Cc: 23641

> Date: Sat, 28 May 2016 12:41:14 -0600
> From: "Nelson H. F. Beebe" <beebe@math.utah.edu>
> Cc: beebe@math.utah.edu
> 
> I'm pleased to report that I've successfully built and installed the
> latest emacs-25.0.94 test release on at least 65 flavors of Unix in my
> test lab of more than 80 such systems.

Thanks, that is good to know.

> I then examined configure.ac, where it appears that -lgio has to do
> with glib, but could still not see what library options are forcing
> the inclusion of -lgio.

It could be gfilenotify.  Try "--without-file-notification" or
"--with-file-notification='kqueue'" configure options.





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

* bug#23641: emacs-25.0.94 build feedback
  2016-05-28 19:32 ` Eli Zaretskii
@ 2016-05-28 19:37   ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2016-05-28 19:37 UTC (permalink / raw)
  To: beebe; +Cc: 23641

> Date: Sat, 28 May 2016 22:32:18 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 23641@debbugs.gnu.org
> 
> > I then examined configure.ac, where it appears that -lgio has to do
> > with glib, but could still not see what library options are forcing
> > the inclusion of -lgio.
> 
> It could be gfilenotify.  Try "--without-file-notification" or
> "--with-file-notification='kqueue'" configure options.

Other suspects might be GTK and librsvg.

It could be more efficient if you post the summary of configured
options displayed by 'configure' at the end of its run.

Thanks.





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

* bug#23641: emacs-25.0.94 build feedback
       [not found] <CMM.0.96.0.1464476699.beebe@gamma.math.utah.edu>
@ 2016-05-29  2:35 ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2016-05-29  2:35 UTC (permalink / raw)
  To: Nelson H. F. Beebe; +Cc: 23641

> Date: Sat, 28 May 2016 17:04:59 -0600
> From: "Nelson H. F. Beebe" <beebe@math.utah.edu>
> Cc: beebe@math.utah.edu
> 
> >> It could be gfilenotify. 
> 
> That was what I suspected too.
> 
> >> Try "--without-file-notification" or "--with-file-notification='kqueue'" configure options.
> 
> I had already tried
> 
> 	--with-file-notification=no
> and also
> 	--without-file-notification
> 
> without removing the -lgio examples
> 
> Here are examples freshly made during the writing of this reply:
> 
> 	./configure --without-file-notification && grep -e -lgio src/Makefile
> 	RSVG_LIBS= -L/usr/local/lib -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 \
> 		   -lgobject-2.0 -lglib-2.0 -lintl -lcairo -lpthread  
> 
> 	./configure --with-file-notification=kqueue && grep -e -lgio src/Makefile
> 	RSVG_LIBS= -L/usr/local/lib -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 \
> 		   -lgobject-2.0 -lglib-2.0 -lintl -lcairo -lpthread  
> 
> Here is what the configure summary looks like from the last of those:
> 
> ...
> 
> Configured for 'x86_64-unknown-freebsd11.0'.
> 
>   Where should the build process find the source code?    .
>   What compiler should emacs be built with?               gcc -std=gnu99  -I${prefix}/include
>   Should Emacs use the GNU version of malloc?             yes
>   Should Emacs use a relocating allocator for buffers?    no
>   Should Emacs use mmap(2) for buffer allocation?         yes
>   What window system should Emacs use?                    x11
>   What toolkit should Emacs use?                          LUCID
>   Where do we find X Windows header files?                Standard dirs
>   Where do we find X Windows libraries?                   Standard dirs
>   Does Emacs use -lXaw3d?                                 yes
>   Does Emacs use -lXpm?                                   yes
>   Does Emacs use -ljpeg?                                  yes
>   Does Emacs use -ltiff?                                  yes
>   Does Emacs use a gif library?                           yes -lgif
>   Does Emacs use a png library?                           yes -lpng16
>   Does Emacs use -lrsvg-2?                                yes
>   Does Emacs use cairo?                                   no
>   Does Emacs use imagemagick?                             yes
>   Does Emacs support sound?                               yes
>   Does Emacs use -lgpm?                                   no
>   Does Emacs use -ldbus?                                  yes
>   Does Emacs use -lgconf?                                 yes
>   Does Emacs use GSettings?                               no
>   Does Emacs use a file notification library?             yes (kqueue)
>   Does Emacs use access control lists?                    yes 
>   Does Emacs use -lselinux?                               no
>   Does Emacs use -lgnutls?                                yes
>   Does Emacs use -lxml2?                                  yes
>   Does Emacs use -lfreetype?                              yes
>   Does Emacs use -lm17n-flt?                              yes
>   Does Emacs use -lotf?                                   yes
>   Does Emacs use -lxft?                                   yes
>   Does Emacs directly use zlib?                           yes
>   Does Emacs have dynamic modules support?                no
>   Does Emacs use toolkit scroll bars?                     yes
>   Does Emacs support Xwidgets (requires gtk3)?            no

Looks like librsvg-2 is the one that pulls in libgio.  Did you try
using --with-rsvg=no ?






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

* bug#23641: emacs-25.0.94 build feedback
       [not found] <CMM.0.96.0.1464526263.beebe@gamma.math.utah.edu>
@ 2016-05-29 14:46 ` Eli Zaretskii
  2016-05-31  1:01   ` Nelson H. F. Beebe
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2016-05-29 14:46 UTC (permalink / raw)
  To: Nelson H. F. Beebe; +Cc: 23641

> Date: Sun, 29 May 2016 06:51:03 -0600
> From: "Nelson H. F. Beebe" <beebe@math.utah.edu>
> Cc: beebe@math.utah.edu
> 
> >> Looks like librsvg-2 is the one that pulls in libgio.  Did you try
> >> using --with-rsvg=no ?
> 
> Here is what I get:
> 
> 	make distclean
> 	./configure --with-rsvg=no && make
> 	...
> 	/usr/local/lib/libgio-2.0.so.0: undefined reference to `sendmmsg@FBSD_1.4'
> 	collect2: error: ld returned 1 exit status

Then this is the list of other suspects:

  imagemagick
  dbus
  gconf

I think you need to disable all of them (and rsvg as well) to get rid
of libgio.

> Perhaps we should bag this one: it is clearly an error for the FreeBSD
> 11 package system to supply a library without dependent libraries that
> supply missing symbols.

Fine with me.

Thanks.





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

* bug#23641: emacs-25.0.94 build feedback
  2016-05-28 18:41 bug#23641: emacs-25.0.94 build feedback Nelson H. F. Beebe
  2016-05-28 19:32 ` Eli Zaretskii
@ 2016-05-29 20:23 ` Richard Stallman
  1 sibling, 0 replies; 8+ messages in thread
From: Richard Stallman @ 2016-05-29 20:23 UTC (permalink / raw)
  To: Nelson H. F. Beebe; +Cc: 23641, beebe

[[[ 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'm pleased to report that I've successfully built and installed the
  > latest emacs-25.0.94 test release on at least 65 flavors

Thank you for testing.

							     of Unix in my
  > test lab of more than 80 such systems.

Does this include GNU/Linux variants?  If so, it is a mistake to call
them "flavors of Unix".  Remember, GNU's Not Unix !

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.






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

* bug#23641: emacs-25.0.94 build feedback
  2016-05-29 14:46 ` Eli Zaretskii
@ 2016-05-31  1:01   ` Nelson H. F. Beebe
  2016-06-04 15:47     ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Nelson H. F. Beebe @ 2016-05-31  1:01 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 23641, Nelson H. F. Beebe

I wrote  about a build problem of emacs-25.0.94 on FreeBSD 11

>> ...
>> > Here is what I get:
>> > 
>> >       make distclean
>> >       ./configure --with-rsvg=no && make
>> >       ...
>> >       /usr/local/lib/libgio-2.0.so.0: undefined reference to `sendmmsg@FBSD_1.4'
>> >       collect2: error: ld returned 1 exit status
>> 

and Eli Zaretskii responded

>> Then this is the list of other suspects:
>> 
>>   imagemagick
>>   dbus
>>   gconf
>> 
>> I think you need to disable all of them (and rsvg as well) to get rid
>> of libgio.
>> ...

I therefore tried this:

	./configure --with-{rsvg,dbus,gconf,imagemagick}=no && make

That led to a successful build!

Compared to my earlier reported successful build using --without-all,
the newly-built emacs has 62 shared libraries, whereas the previous
one had only 30.  I have therefore installed the new build.

It might be useful to document the dependence of -lgio on those four
packages:

	rsvg dbus gconf imagemagick

because that dependence is not obvious.  Alternatively, add a
configure-time --without-gio option that suppresses those four
packages.

I don't view this as high priority, because the FreeBSD 11 package
system is clearly in error when installation of a library (-lgio) does
not install all of its dependents.

Tomorrow, I'll try a similar build on HardenedBSD 11, a new VM that I
have just finished configuring:

	https://hardenedbsd.org/content/freebsd-and-hardenedbsd-feature-comparisons

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe@math.utah.edu  -
- 155 S 1400 E RM 233                       beebe@acm.org  beebe@computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------





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

* bug#23641: emacs-25.0.94 build feedback
  2016-05-31  1:01   ` Nelson H. F. Beebe
@ 2016-06-04 15:47     ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2016-06-04 15:47 UTC (permalink / raw)
  To: Nelson H. F. Beebe; +Cc: 23641

> Date: Mon, 30 May 2016 19:01:23 -0600
> From: "Nelson H. F. Beebe" <beebe@math.utah.edu>
> Cc: beebe@math.utah.edu, "Nelson H. F. Beebe" <beebe@math.utah.edu>,
>         23641@debbugs.gnu.org
> 
> I wrote  about a build problem of emacs-25.0.94 on FreeBSD 11
> 
> >> ...
> >> > Here is what I get:
> >> > 
> >> >       make distclean
> >> >       ./configure --with-rsvg=no && make
> >> >       ...
> >> >       /usr/local/lib/libgio-2.0.so.0: undefined reference to `sendmmsg@FBSD_1.4'
> >> >       collect2: error: ld returned 1 exit status
> >> 
> 
> and Eli Zaretskii responded
> 
> >> Then this is the list of other suspects:
> >> 
> >>   imagemagick
> >>   dbus
> >>   gconf
> >> 
> >> I think you need to disable all of them (and rsvg as well) to get rid
> >> of libgio.
> >> ...
> 
> I therefore tried this:
> 
> 	./configure --with-{rsvg,dbus,gconf,imagemagick}=no && make
> 
> That led to a successful build!
> 
> Compared to my earlier reported successful build using --without-all,
> the newly-built emacs has 62 shared libraries, whereas the previous
> one had only 30.  I have therefore installed the new build.
> 
> It might be useful to document the dependence of -lgio on those four
> packages:
> 
> 	rsvg dbus gconf imagemagick
> 
> because that dependence is not obvious.

I added this problem and its solution to etc/PROBLEMS.  Thanks.





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

end of thread, other threads:[~2016-06-04 15:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-28 18:41 bug#23641: emacs-25.0.94 build feedback Nelson H. F. Beebe
2016-05-28 19:32 ` Eli Zaretskii
2016-05-28 19:37   ` Eli Zaretskii
2016-05-29 20:23 ` Richard Stallman
     [not found] <CMM.0.96.0.1464476699.beebe@gamma.math.utah.edu>
2016-05-29  2:35 ` Eli Zaretskii
     [not found] <CMM.0.96.0.1464526263.beebe@gamma.math.utah.edu>
2016-05-29 14:46 ` Eli Zaretskii
2016-05-31  1:01   ` Nelson H. F. Beebe
2016-06-04 15:47     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).