Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927076 - app-admin/testdisk-7.2 - ewf.c:(.text+<snip>): undefined reference to libewf_handle_read_random
Summary: app-admin/testdisk-7.2 - ewf.c:(.text+<snip>): undefined reference to libewf_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard: removed
Keywords: PMASKED
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-03-15 16:05 UTC by Toralf Förster
Modified: 2024-11-01 14:41 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.79 KB, text/plain)
2024-03-15 16:05 UTC, Toralf Förster
Details
app-admin:testdisk-7.2:20240315-053539.log.xz (app-admin:testdisk-7.2:20240315-053539.log.xz,30.55 KB, application/x-xz)
2024-03-15 16:05 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,116.64 KB, text/plain)
2024-03-15 16:05 UTC, Toralf Förster
Details
environment (environment,85.03 KB, text/plain)
2024-03-15 16:05 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.09 KB, application/x-xz)
2024-03-15 16:05 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,24.81 KB, application/x-xz)
2024-03-15 16:05 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,16.07 KB, application/x-xz)
2024-03-15 16:05 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,193.58 KB, text/plain)
2024-03-15 16:05 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,49.60 KB, application/x-xz)
2024-03-15 16:05 UTC, Toralf Förster
Details
Patch (testdisk-7.2-libewf.patch,903 bytes, patch)
2024-04-06 12:07 UTC, Chris
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(+)
Comment 19 Larry the Git Cow gentoo-dev 2024-05-31 19:18:34 UTC
The bug has been closed via the following commit(s):

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

commit 2ef3b135c8bf4713763db3e357c5c29f4667ff4d
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2024-05-31 19:16:54 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-05-31 19:16:54 +0000

    app-forensics/libewf: treeclean
    
    Closes: https://bugs.gentoo.org/927076
    Bug: https://bugs.gentoo.org/854546
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 app-forensics/libewf/Manifest                      |  1 -
 .../libewf/files/libewf-20171104-openssl-3.patch   | 27 ---------
 app-forensics/libewf/libewf-20171104-r2.ebuild     | 66 ----------------------
 app-forensics/libewf/metadata.xml                  | 13 -----
 profiles/package.mask                              |  7 ---
 5 files changed, 114 deletions(-)