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

Bug 927076

Summary: app-admin/testdisk-7.2 - ewf.c:(.text+<snip>): undefined reference to libewf_handle_read_random
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: CONFIRMED ---    
Severity: normal CC: andreas.thalhammer, bug, Christopher.Lundgren, jteix, kripton, mgorny, michele.testa, o.freyermuth, slawern, treecleaner, tsjk
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
app-admin:testdisk-7.2:20240315-053539.log.xz
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt
temp.tar.xz
Patch

Description Toralf Förster gentoo-dev 2024-03-15 16:05:12 UTC
too long lines were shrinked:

QT_SELECT=qt5 lrelease -silent lang/qphotorec.zh_CN.ts -qm lang/qphotorec.zh_CN.qm
/bin/mkdir -p lang
QT_SELECT=qt5 lrelease -silent lang/qphotorec.zh_TW.ts -qm lang/qphotorec.zh_TW.qm
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-diagnostics-color -Wdeclaration-after-statement -Wall -Wextra -MD -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wwrite-strings -W -Wcast-align -Waggregate-return -Wbad-function-cast -Wcast-qual -Wundef 
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-diagnostics-color -Wdeclaration-after-statement -Wall -Wextra -MD -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wwrite-strings -W -Wcast-align -Waggregate-return -Wbad-function-cast -Wcast-qual -Wundef 
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: ewf.o: in function `fewf_pread':
ewf.c:(.text+0x15a): undefined reference to `libewf_handle_read_random'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: ewf.o: in function `fewf_pwrite':
ewf.c:(.text+0x3e4): undefined reference to `libewf_handle_write_random'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_hardened-20240313-084513

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 18.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.0
Python 3.11.8
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.76.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.10_p7 [openjdk-bin-17]
2)	Eclipse Temurin JDK 21.0.2_p13 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.402_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21 

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
  [1]   php8.1
  [2]   php8.3 *
go version go1.22.1 linux/amd64

  HEAD of ::gentoo
commit f4aa688dff452d52f5d9b22891deacb4485bc2b9
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Mar 14 23:20:53 2024 +0000

    2024-03-14 23:20:53 UTC

emerge -qpvO app-admin/testdisk
[ebuild  N    ] app-admin/testdisk-7.2  USE="ewf gui reiserfs sudo zlib -jpeg -ntfs -static"
Comment 1 Toralf Förster gentoo-dev 2024-03-15 16:05:13 UTC
Created attachment 887685 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-03-15 16:05:16 UTC
Created attachment 887686 [details]
app-admin:testdisk-7.2:20240315-053539.log.xz
Comment 3 Toralf Förster gentoo-dev 2024-03-15 16:05:17 UTC
Created attachment 887687 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-03-15 16:05:18 UTC
Created attachment 887688 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-03-15 16:05:19 UTC
Created attachment 887689 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-03-15 16:05:21 UTC
Created attachment 887690 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-03-15 16:05:21 UTC
Created attachment 887691 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-03-15 16:05:24 UTC
Created attachment 887692 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2024-03-15 16:05:25 UTC
Created attachment 887693 [details]
temp.tar.xz
Comment 10 Tamas Jantvik 2024-04-02 13:27:30 UTC
I guess app-forensics/libewf needs to be bumped if one wants to compile with ewf support.
Comment 11 João P. Teixeira 2024-04-02 16:51:32 UTC
I have hit this bug today (on stable).
Comment 12 Chris 2024-04-06 12:07:43 UTC
Created attachment 889576 [details, diff]
Patch

This patch makes the program compile.
Comment 13 Andreas Thalhammer 2024-04-07 14:31:31 UTC
Confirmed, same bug. Compiles fine with USE="-ewf".
Comment 14 João P. Teixeira 2024-04-08 09:26:11 UTC
(In reply to Chris from comment #12)
> Created attachment 889576 [details, diff] [details, diff]
> Patch
> 
> This patch makes the program compile.

It also compiles here with your patch.
Comment 15 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-04-08 16:10:16 UTC
My guess would be that because nobody bumped libewf for 7 years now.  Given testdisk is its only revdep, I suppose either somebody needs to take and bump libewf or we last rite it.  That said, it looks like a proper autotools horror story.
Comment 16 Michele Testa 2024-04-09 09:36:50 UTC
(In reply to Chris from comment #12)
> Created attachment 889576 [details, diff] [details, diff]
> Patch
> 
> This patch makes the program compile.

Thx Chris!
Comment 17 jannis 2024-04-14 15:07:55 UTC
There are some newer ebuilds in the pentoo-overlay: https://github.com/pentoo/pentoo-overlay/tree/master/app-forensics/libewf

However, I didn't yet test if they work or fix the testdisk compilation failure.
Comment 18 Larry the Git Cow gentoo-dev 2024-04-23 14:53:07 UTC
The bug has been referenced in the following commit(s):

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

commit ad6374850e9b965dd948b49e992cb8e960a641af
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-04-23 14:36:43 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-04-23 14:52:55 +0000

    package.mask: Last rite app-forensics/libewf
    
    Bug: https://bugs.gentoo.org/927076
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 profiles/base/package.use.mask | 5 +++++
 profiles/package.mask          | 7 +++++++
 2 files changed, 12 insertions(+)