AUR lib32-gd-2.3.3 fails to build

Unstable branch

$ pamac build libgd-gd
...
libtool: link: gcc -m32 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fvisibility=hidden -Wall -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/webpng webpng.o  ./.libs/libgd.so -L/usr/lib32 -lm -lpng16 -lz -lraqm -lfontconfig -lfreetype -ljpeg -lXpm -lX11 -ltiff -lwebp -lheif
/usr/bin/ld: warning: /usr/bin/ldlibdav1d.so.5, needed by /usr/lib32/libheif.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libdav1d.so.5, needed by /usr/lib32/libheif.so, not found (try using -rpath or -rpath-link)
: warning: libdav1d.so.5, needed by /usr/lib32/libheif.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libdav1d.so.5, needed by /usr/lib32/libheif.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libdav1d.so.5, needed by /usr/lib32/libheif.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libdav1d.so.5, needed by /usr/lib32/libheif.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libdav1d.so.5, needed by /usr/lib32/libheif.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libdav1d.so.5, needed by /usr/lib32/libheif.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libdav1d.so.5, needed by /usr/lib32/libheif.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_default_settings'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_unref'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_create'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_open'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_get_picture'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_default_settings'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_default_settings/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_default_settings'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_send_data'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_picture_unref'
/usr/bin/ld: '
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_close'
/usr/lib32/libheif.so: undefined reference to `/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_default_settings'
dav1d_default_settings'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_unref'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_create'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_unref'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_open'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_create'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_get_picture'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_open'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_unref'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_send_data'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_create'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_get_picture'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_picture_unref'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_open'
collect2: error: ld returned 1 exit status
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_get_picture'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_default_settings'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_close'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_send_data'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_picture_unref'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_send_data'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_picture_unref'
make[2]: *** [Makefile:844: gdtopng] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_close'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_close'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_unref'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_create'
/usr/bin/ld: /usr/lib32/libheif.so/usr/bin/ld: undefined reference to `: /usr/lib32/libheif.sodav1d_data_unref: undefined reference to `'
dav1d_open'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_unref'
/usr/bin/ld/usr/bin/ld: : /usr/lib32/libheif.so/usr/lib32/libheif.so: undefined reference to `: undefined reference to `dav1d_get_picturedav1d_data_create'
'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_create'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_open'
collect2: error: ld returned 1 exit status
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_send_data'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_open'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_get_picture'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_get_picture'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_picture_unref'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_send_data'
/usr/bin/ld/usr/bin/ld: : /usr/lib32/libheif.so: undefined reference to `dav1d_close'
/usr/lib32/libheif.so: undefined reference to `dav1d_send_data'
collect2: error: ld returned 1 exit status
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_picture_unref'
make[2]: *** [Makefile:788: annotate] Error 1
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_picture_unref'
collect2: error: ld returned 1 exit status
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_close'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_close'
make[2]: *** [Makefile:824: gdcmpgif] Error 1
make[2]: *** [Makefile:872: webpng] Error 1
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:832: gdparttopng] Error 1
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:820: gd2topng] Error 1
make[2]: *** [Makefile:860: pngtogd2] Error 1
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_default_settings'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_unref'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_create'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_default_settings'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_open'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_get_picture'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_send_data'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_picture_unref'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_unref'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_data_create'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_open'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_close'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_get_picture'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_send_data'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_picture_unref'
/usr/bin/ld: /usr/lib32/libheif.so: undefined reference to `dav1d_close'
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:856: pngtogd] Error 1
make[2]: *** [Makefile:808: gd2copypal] Error 1
make[2]: Leaving directory '/var/tmp/pamac-build-user/lib32-gd/src/libgd-gd-2.3.3/src'
make[1]: *** [Makefile:641: all] Error 2
make[1]: Leaving directory '/var/tmp/pamac-build-user/lib32-gd/src/libgd-gd-2.3.3/src'
make: *** [Makefile:428: all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

Your software seems to not be updated to find the new libdav1d version provided by dav1d 1.0.0.

Also, libgd-gd does not seem to exist in the AUR.

Thanks, sudo pacman -Suyy fixed the issue.

pamac still finds it

$ pamac update
Preparing...
Synchronizing package databases...
Cloning lib32-gd build files...
Generating lib32-gd information...
Checking lib32-gd dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  lib32-gd  2.3.3-2  (2.3.3-1)  AUR

Edit build files : [e] 
Apply transaction ? [e/y/N] y

Building lib32-gd...
==> Making package: lib32-gd 2.3.3-2
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found gd-2.3.3.tar.gz
  -> Found bdc281eadb1d58d5c0c7bbc1125ee4674256df08.patch
==> Validating source files with sha256sums...
    gd-2.3.3.tar.gz ... Passed
    bdc281eadb1d58d5c0c7bbc1125ee4674256df08.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting gd-2.3.3.tar.gz with bsdtar
==> Starting prepare()...
patching file src/gd.h
==> Removing existing $pkgdir/ directory...
==> Starting build()...
docs/naturaldocs/run_docs.sh --nonfatal
skipping doc generation -- please install naturaldoc!
autoreconf -f -i
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
...

It finds lib32-gd, because that one still exists in AUR.
The one you looked for in the first post was libgd-gd, which do not exist in the AUR.

So I still don’t know where you are getting libgd-gd from. :slight_smile:

Right it was a typo, the issue is with lib32-gd which doesn’t build.

It’s mandatory to rebuild lib32-libdav1d and lib32-libheif then lib32-gd will build successfully.

Automatic rebulding of packages should be done by default to prevent this issues.

No. AUR packages are the users responsibility. Manjaro/Arch makes sure the applications in the repository is rebuilt when needed. We can’t make any promises for 3rd party packages.

So it’s a good practice to rebuld all packages from AUR once in a while, so newer ones don’t use old dependencies?

The recommendation is after each update you should rebuild them.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.

How can I rebuild and reinstall all AUR packages in Manjaro?

XY Problem detected. Please tell us what you’re actually trying to accomplish, not what you think is the solution.

I was adviced to rebuld AUR after each update.

You should learn to recognize when something needs a rebuild - usually when it stops working. :stuck_out_tongue:

@Strit did not mean you should have to (blindly) rebuild every single AUR package you have installed. It was only a general recommendation.

If you don’t want to spend the effort to learn about the AUR and the packages you install from it, you should not use the AUR at all.

See:

1 Like