You are not logged in.

#1 2014-04-05 13:17:28

mouseman
Member
From: Outta nowhere
Registered: 2014-04-04
Posts: 291

[solved] build failing: /usr/bin/ld: cannot find -lgd

I'm trying to satisfy crossover dependencies and recommendations. Found lib32-libgphoto2 on AUR with a few dependencies of its own, all of which I installed succesfully.

When doing a makepkg for lib32-libgphoto2 I get the following error:

libtool: link:  gcc -m32 -shared  -fPIC -DPIC  ax203/.libs/ax203_la-library.o ax203/.libs/ax203_la-ax203.o ax203/.libs/ax203_la-ax203_decode_yuv.o ax203/.libs/ax203_la-ax203_decode_yuv_delta.o ax203/.libs/ax203_la-ax203_compress_jpeg.o ax203/.libs/ax203_la-jpeg_memsrcdest.o ax203/.libs/ax203_la-tinyjpeg.o ax203/.libs/ax203_la-jidctflt.o   -Wl,-rpath -Wl,/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2/.libs -Wl,-rpath -Wl,/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2_port/libgphoto2_port/.libs -L/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2_port/libgphoto2_port/.libs ../libgphoto2/.libs/libgphoto2.so -L/usr/lib32 /home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lexif ../libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lltdl -lpthread -lgd -lz -lm -lpng16 -lfreetype -lfontconfig -ljpeg  -m32 -march=x86-64 -mtune=generic -O2 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro   -Wl,-soname -Wl,ax203.so -Wl,-version-script -Wl,.libs/ax203.ver -o .libs/ax203.so
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../libgd.so when searching for -lgd
/usr/bin/ld: skipping incompatible /usr/lib/libgd.so when searching for -lgd
/usr/bin/ld: cannot find -lgd
collect2: error: ld returned 1 exit status
Makefile:1659: recipe for target 'ax203.la' failed
make[3]: *** [ax203.la] Error 1
make[3]: Leaving directory '/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/camlibs'
Makefile:3347: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/camlibs'
Makefile:622: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/someuser/Downloads/aur/lib32-libgphoto2/src/build'
Makefile:444: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

In that blob of text it says 'skipping incompatible' so it found something but I don't know to fix that or find out what it needs. A search on the internet I found that the message (in title) means I'm missing 32-bit library for gd, so I pulled that from AUR and installed it, but its still giving me this message.

Any ideas what I need to do to get this to build?

Thanks in advance.

Last edited by mouseman (2014-05-05 05:24:27)

Offline

#2 2014-04-06 08:21:35

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [solved] build failing: /usr/bin/ld: cannot find -lgd

The linker tries to find libgd. so. If you build lib32-libgphoto2, I guess from the name that you are building a 32 bit package on a 64 bits installation. You should have the 32 bit version of libgd. so and you only have the 64 bit version (hence skipping incompatible /usr/lib/libgd.so). Note that I have not found this version in the multilib repository (nor on AUR), I think you will have to build it yourself.

Offline

#3 2014-04-07 05:18:00

mouseman
Member
From: Outta nowhere
Registered: 2014-04-04
Posts: 291

Re: [solved] build failing: /usr/bin/ld: cannot find -lgd

Thanks.

So does this mean that a 32-bit libgd should be listed as a dependency on lib32-libgphoto2?

Offline

#4 2014-04-07 06:04:27

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [solved] build failing: /usr/bin/ld: cannot find -lgd

mouseman wrote:

Thanks.

So does this mean that a 32-bit libgd should be listed as a dependency on lib32-libgphoto2?

It seems so, but I have not explicitly tested it.

Offline

#5 2014-05-04 19:17:48

mouseman
Member
From: Outta nowhere
Registered: 2014-04-04
Posts: 291

Re: [solved] build failing: /usr/bin/ld: cannot find -lgd

I reinstalled my system and I don't remember whether I fixed this before, but I'm now running into the same thing. I can't find a 32-bit libgd.so anywhere.

Is there a package that provides that?

Thanks for the help.

Offline

#6 2014-05-04 22:12:26

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: [solved] build failing: /usr/bin/ld: cannot find -lgd

I can't find a 32-bit libgd.so anywhere.

Try https://aur.archlinux.org/packages/lib32-gd/


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#7 2014-05-05 05:24:12

mouseman
Member
From: Outta nowhere
Registered: 2014-04-04
Posts: 291

Re: [solved] build failing: /usr/bin/ld: cannot find -lgd

Ah there it is.

Weird I didn't find it, I searched both on aur and with yaourt.

Anyway, working fine, thanks!

Offline

Board footer

Powered by FluxBB