all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Failed to build emacs 24.4 source: /bin/ld error
@ 2015-02-05 17:28 Tory S. Anderson
  2015-02-05 17:37 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Tory S. Anderson @ 2015-02-05 17:28 UTC (permalink / raw)
  To: emacs list

I finally got the point where ./configure runs successfully for the 24.4 source (I'm still not there for the 25 source); but it fails when I attempt to "make". What is the meaning of this ld error? What can I do? 

Here's the ending of the make: 
==============================
$ make
# ... # many lines...
make[1]: Entering directory `/home/torys/workspace/emacs-24.4/src'
gcc -std=gnu99 -Demacs  -I. -I. -I../lib -I./../lib   -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/freetype2   -I/usr/include/alsa        -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/freetype2  -I/usr/include/freetype2    -MMD -MF deps/.d -MP  -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -g3 -O2  -Wl,-znocombreloc   \
  -o temacs  vm-limit.o dispnew.o frame.o scroll.o xdisp.o menu.o xmenu.o window.o charset.o coding.o category.o ccl.o character.o chartab.o bidi.o cm.o term.o terminal.o xfaces.o xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o gtkutil.o emacsgtkfixed.o  emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o doc.o editfns.o callint.o eval.o floatfns.o fns.o font.o print.o lread.o syntax.o unexelf.o bytecode.o process.o gnutls.o callproc.o region-cache.o sound.o atimer.o doprnt.o intervals.o textprop.o composite.o xml.o gfilenotify.o profiler.o decompress.o     xfont.o ftfont.o xftfont.o ftxfont.o  fontset.o fringe.o image.o xgselect.o  terminfo.o lastfile.o      ../lib/libgnu.a       -ltiff -ljpeg -lpng15 -lz -lm -lgif -lXpm -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0   -lX11 -lXrender -lXft  -lasound        -lrt    -lXrandr  -lXinerama      -ltinfo  -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lgobject-2.0 -lglib-2.0   -lfreetype  -lfontconfig -lfreetype     -lpthread  -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lm -lz
/bin/ld: cannot find -lpng15
collect2: error: ld returned 1 exit status
make[1]: *** [temacs] Error 1
make[1]: Leaving directory `/home/torys/workspace/emacs-24.4/src'
make: *** [src] Error 2
$



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

* Re: Failed to build emacs 24.4 source: /bin/ld error
  2015-02-05 17:28 Tory S. Anderson
@ 2015-02-05 17:37 ` Eli Zaretskii
  0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2015-02-05 17:37 UTC (permalink / raw)
  To: help-gnu-emacs

> From: torys.anderson@gmail.com (Tory S. Anderson)
> Date: Thu, 05 Feb 2015 12:28:18 -0500
> 
> What is the meaning of this ld error?

You don't have a required library, libpng15.so, installed.

> What can I do? 

Install it.



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

* Re: Failed to build emacs 24.4 source: /bin/ld error
       [not found] <mailman.19333.1423157313.1147.help-gnu-emacs@gnu.org>
@ 2015-02-05 17:38 ` Sven Joachim
  2015-02-05 17:48   ` Tory S. Anderson
                     ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Sven Joachim @ 2015-02-05 17:38 UTC (permalink / raw)
  To: help-gnu-emacs

On 2015-02-05 18:28 +0100, Tory S. Anderson wrote:

> I finally got the point where ./configure runs successfully for the
> 24.4 source (I'm still not there for the 25 source); but it fails when
> I attempt to "make". What is the meaning of this ld error? What can I
> do?
>
> Here's the ending of the make: 
> ==============================
> $ make
> # ... # many lines...
> make[1]: Entering directory `/home/torys/workspace/emacs-24.4/src'
> gcc -std=gnu99 -Demacs -I. -I. -I../lib -I./../lib -pthread
> -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0
> -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/
> -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
> -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm
> -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0
> -I/usr/include/libpng16 -I/usr/include/glib-2.0
> -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2
> -I/usr/include/alsa -pthread -I/usr/include/glib-2.0
> -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0
> -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2
> -I/usr/include/freetype2 -MMD -MF deps/.d -MP -pthread
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g3 -O2
> -Wl,-znocombreloc \
>   -o temacs vm-limit.o dispnew.o frame.o scroll.o xdisp.o menu.o
> xmenu.o window.o charset.o coding.o category.o ccl.o character.o
> chartab.o bidi.o cm.o term.o terminal.o xfaces.o xterm.o xfns.o
> xselect.o xrdb.o xsmfns.o xsettings.o gtkutil.o emacsgtkfixed.o
> emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o
> insdel.o marker.o minibuf.o fileio.o dired.o cmds.o casetab.o
> casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o doc.o
> editfns.o callint.o eval.o floatfns.o fns.o font.o print.o lread.o
> syntax.o unexelf.o bytecode.o process.o gnutls.o callproc.o
> region-cache.o sound.o atimer.o doprnt.o intervals.o textprop.o
> composite.o xml.o gfilenotify.o profiler.o decompress.o xfont.o
> ftfont.o xftfont.o ftxfont.o fontset.o fringe.o image.o xgselect.o
> terminfo.o lastfile.o ../lib/libgnu.a -ltiff -ljpeg -lpng15 -lz -lm
> -lgif -lXpm -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0
> -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0
> -lglib-2.0 -lX11 -lXrender -lXft -lasound -lrt -lXrandr -lXinerama
> -ltinfo -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0
> -lfreetype -lfontconfig -lfreetype -lpthread -lgio-2.0 -lgobject-2.0
> -lglib-2.0 -lm -lz
> /bin/ld: cannot find -lpng15

Looks like your libpng installation is messed up.  The include
directories indicate you have libpng 1.6 but the linker tries to link
with libpng15.so which would come from libpng 1.5.

Which distribution is that, and what versions of libpng do you have
installed?

Cheers,
       Sven


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

* Re: Failed to build emacs 24.4 source: /bin/ld error
  2015-02-05 17:38 ` Failed to build emacs 24.4 source: /bin/ld error Sven Joachim
@ 2015-02-05 17:48   ` Tory S. Anderson
  2015-02-05 18:06   ` Eli Zaretskii
       [not found]   ` <mailman.19341.1423159605.1147.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 7+ messages in thread
From: Tory S. Anderson @ 2015-02-05 17:48 UTC (permalink / raw)
  To: Emacs Help List, Sven Joachim

I installed an updated libpng today: libpng-1.6.6-3.fc20.x86_64.rpm

The emacs distribution is 24.4 from http://mirror.thecodefactory.org/gnu/emacs/

I'm on Fedora 20 64-bit. 

Sven Joachim <svenjoac@gmx.de> writes:

> On 2015-02-05 18:28 +0100, Tory S. Anderson wrote:
>
>> I finally got the point where ./configure runs successfully for the
>> 24.4 source (I'm still not there for the 25 source); but it fails when
>> I attempt to "make". What is the meaning of this ld error? What can I
>> do?
>>
>> Here's the ending of the make: 
>> ==============================
>> $ make
>> # ... # many lines...
>> make[1]: Entering directory `/home/torys/workspace/emacs-24.4/src'
>> gcc -std=gnu99 -Demacs -I. -I. -I../lib -I./../lib -pthread
>> -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0
>> -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/
>> -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
>> -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
>> -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm
>> -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0
>> -I/usr/include/libpng16 -I/usr/include/glib-2.0
>> -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2
>> -I/usr/include/alsa -pthread -I/usr/include/glib-2.0
>> -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0
>> -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2
>> -I/usr/include/freetype2 -MMD -MF deps/.d -MP -pthread
>> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g3 -O2
>> -Wl,-znocombreloc \
>>   -o temacs vm-limit.o dispnew.o frame.o scroll.o xdisp.o menu.o
>> xmenu.o window.o charset.o coding.o category.o ccl.o character.o
>> chartab.o bidi.o cm.o term.o terminal.o xfaces.o xterm.o xfns.o
>> xselect.o xrdb.o xsmfns.o xsettings.o gtkutil.o emacsgtkfixed.o
>> emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o
>> insdel.o marker.o minibuf.o fileio.o dired.o cmds.o casetab.o
>> casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o doc.o
>> editfns.o callint.o eval.o floatfns.o fns.o font.o print.o lread.o
>> syntax.o unexelf.o bytecode.o process.o gnutls.o callproc.o
>> region-cache.o sound.o atimer.o doprnt.o intervals.o textprop.o
>> composite.o xml.o gfilenotify.o profiler.o decompress.o xfont.o
>> ftfont.o xftfont.o ftxfont.o fontset.o fringe.o image.o xgselect.o
>> terminfo.o lastfile.o ../lib/libgnu.a -ltiff -ljpeg -lpng15 -lz -lm
>> -lgif -lXpm -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0
>> -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0
>> -lglib-2.0 -lX11 -lXrender -lXft -lasound -lrt -lXrandr -lXinerama
>> -ltinfo -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0
>> -lfreetype -lfontconfig -lfreetype -lpthread -lgio-2.0 -lgobject-2.0
>> -lglib-2.0 -lm -lz
>> /bin/ld: cannot find -lpng15
>
> Looks like your libpng installation is messed up.  The include
> directories indicate you have libpng 1.6 but the linker tries to link
> with libpng15.so which would come from libpng 1.5.
>
> Which distribution is that, and what versions of libpng do you have
> installed?
>
> Cheers,
>        Sven



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

* Re: Failed to build emacs 24.4 source: /bin/ld error
  2015-02-05 17:38 ` Failed to build emacs 24.4 source: /bin/ld error Sven Joachim
  2015-02-05 17:48   ` Tory S. Anderson
@ 2015-02-05 18:06   ` Eli Zaretskii
  2015-02-05 18:10     ` Tory S. Anderson
       [not found]   ` <mailman.19341.1423159605.1147.help-gnu-emacs@gnu.org>
  2 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2015-02-05 18:06 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Sven Joachim <svenjoac@gmx.de>
> Date: Thu, 05 Feb 2015 18:38:45 +0100
> 
> > terminfo.o lastfile.o ../lib/libgnu.a -ltiff -ljpeg -lpng15 -lz -lm
> > -lgif -lXpm -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0
> > -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0
> > -lglib-2.0 -lX11 -lXrender -lXft -lasound -lrt -lXrandr -lXinerama
> > -ltinfo -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0
> > -lfreetype -lfontconfig -lfreetype -lpthread -lgio-2.0 -lgobject-2.0
> > -lglib-2.0 -lm -lz
> > /bin/ld: cannot find -lpng15
> 
> Looks like your libpng installation is messed up.  The include
> directories indicate you have libpng 1.6 but the linker tries to link
> with libpng15.so which would come from libpng 1.5.

It could be that one of the other libraries the OP is linking against
requires 1.5.



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

* Re: Failed to build emacs 24.4 source: /bin/ld error
  2015-02-05 18:06   ` Eli Zaretskii
@ 2015-02-05 18:10     ` Tory S. Anderson
  0 siblings, 0 replies; 7+ messages in thread
From: Tory S. Anderson @ 2015-02-05 18:10 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

However, I do have a libpng15 library installed on the machine (it's been there all along). Do I need to add another link to it somewhere? 

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Sven Joachim <svenjoac@gmx.de>
>> Date: Thu, 05 Feb 2015 18:38:45 +0100
>> 
>> > terminfo.o lastfile.o ../lib/libgnu.a -ltiff -ljpeg -lpng15 -lz -lm
>> > -lgif -lXpm -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0
>> > -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0
>> > -lglib-2.0 -lX11 -lXrender -lXft -lasound -lrt -lXrandr -lXinerama
>> > -ltinfo -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0
>> > -lfreetype -lfontconfig -lfreetype -lpthread -lgio-2.0 -lgobject-2.0
>> > -lglib-2.0 -lm -lz
>> > /bin/ld: cannot find -lpng15
>> 
>> Looks like your libpng installation is messed up.  The include
>> directories indicate you have libpng 1.6 but the linker tries to link
>> with libpng15.so which would come from libpng 1.5.
>
> It could be that one of the other libraries the OP is linking against
> requires 1.5.



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

* Re: Failed to build emacs 24.4 source: /bin/ld error
       [not found]   ` <mailman.19341.1423159605.1147.help-gnu-emacs@gnu.org>
@ 2015-02-05 18:43     ` Sven Joachim
  0 siblings, 0 replies; 7+ messages in thread
From: Sven Joachim @ 2015-02-05 18:43 UTC (permalink / raw)
  To: help-gnu-emacs

On 2015-02-05 19:06 +0100, Eli Zaretskii wrote:

>> From: Sven Joachim <svenjoac@gmx.de>
>> Date: Thu, 05 Feb 2015 18:38:45 +0100
>> 
>> > terminfo.o lastfile.o ../lib/libgnu.a -ltiff -ljpeg -lpng15 -lz -lm
>> > -lgif -lXpm -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0
>> > -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0
>> > -lglib-2.0 -lX11 -lXrender -lXft -lasound -lrt -lXrandr -lXinerama
>> > -ltinfo -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0
>> > -lfreetype -lfontconfig -lfreetype -lpthread -lgio-2.0 -lgobject-2.0
>> > -lglib-2.0 -lm -lz
>> > /bin/ld: cannot find -lpng15
>> 
>> Looks like your libpng installation is messed up.  The include
>> directories indicate you have libpng 1.6 but the linker tries to link
>> with libpng15.so which would come from libpng 1.5.
>
> It could be that one of the other libraries the OP is linking against
> requires 1.5.

That's certainly possible, but then again there is no -lpng16 at all in
his command line.  I guess we need to see the whole config.log.

Cheers,
       Sven


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

end of thread, other threads:[~2015-02-05 18:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.19333.1423157313.1147.help-gnu-emacs@gnu.org>
2015-02-05 17:38 ` Failed to build emacs 24.4 source: /bin/ld error Sven Joachim
2015-02-05 17:48   ` Tory S. Anderson
2015-02-05 18:06   ` Eli Zaretskii
2015-02-05 18:10     ` Tory S. Anderson
     [not found]   ` <mailman.19341.1423159605.1147.help-gnu-emacs@gnu.org>
2015-02-05 18:43     ` Sven Joachim
2015-02-05 17:28 Tory S. Anderson
2015-02-05 17:37 ` Eli Zaretskii

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.