Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 874729

Summary: app-office/dia-0.97.3-r1 - /.../ld: app_procs.o: undefined reference to symbol png_get_header_ver@@PNG16_0
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
app-office:dia-0.97.3-r1:20221003-180803.log.bz2
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-10-03 18:51:09 UTC
too long lines were shrinked:

  103 |   Diagram *diagram = ddisp->diagram;
      |            ^~~~~~~
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -I/usr/include/libxml2 -I/usr/include/freetype2  -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int  -Wall -Werror=declaration-after-statement -Werror=implicit-function-declarat
libtool: link: x86_64-pc-linux-gnu-gcc -I/usr/include/libxml2 -I/usr/include/freetype2 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wall -Werror=declaration-after-statement -Werror=implicit-function-declaration -Wmissing-prototypes -Wmiss
/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: app_procs.o: undefined reference to symbol 'png_get_header_ver@@PNG16_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libpng16.so.16: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j4-20221002-183753

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
3)	Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 
  [3]   openjdk-jre-bin-17 

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *
GNU Make 4.3

  HEAD of ::gentoo
commit 62b98318364696ce11b54ebc590790f523a072bc
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Oct 3 17:46:56 2022 +0000

    2022-10-03 17:46:56 UTC

emerge -qpvO app-office/dia
[ebuild  N    ] app-office/dia-0.97.3-r1  USE="cairo -doc"
Comment 1 Toralf Förster gentoo-dev 2022-10-03 18:51:10 UTC
Created attachment 818176 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-03 18:51:11 UTC
Created attachment 818179 [details]
app-office:dia-0.97.3-r1:20221003-180803.log.bz2
Comment 3 Toralf Förster gentoo-dev 2022-10-03 18:51:13 UTC
Created attachment 818182 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-03 18:51:14 UTC
Created attachment 818185 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-03 18:51:15 UTC
Created attachment 818188 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-03 18:51:16 UTC
Created attachment 818191 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-03 18:51:18 UTC
Created attachment 818194 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-12-03 06:06:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a761f21ace81b036dce7d80416a33a2b3e9685c5

commit a761f21ace81b036dce7d80416a33a2b3e9685c5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-03 05:30:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-03 06:06:09 +0000

    app-office/dia: fix build w/ clang 16
    
    Closes: https://bugs.gentoo.org/874729
    Signed-off-by: Sam James <sam@gentoo.org>

 app-office/dia/dia-0.97.3-r1.ebuild                |  3 ++-
 .../dia/files/dia-0.97.3-configure-clang16.patch   | 22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletion(-)