Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 778575 - mail-filter/libsrs_alt-1.0-r1 - srs.c:(.text+<snip>): undefined reference to srs_forward
Summary: mail-filter/libsrs_alt-1.0-r1 - srs.c:(.text+<snip>): undefined reference to ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-03-27 08:47 UTC by Toralf Förster
Modified: 2021-05-04 19:39 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.84 KB, text/plain)
2021-03-27 08:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,405.75 KB, text/plain)
2021-03-27 08:47 UTC, Toralf Förster
Details
environment (environment,67.15 KB, text/plain)
2021-03-27 08:47 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,27.21 KB, application/x-bzip)
2021-03-27 08:47 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,9.89 KB, application/x-bzip)
2021-03-27 08:47 UTC, Toralf Förster
Details
mail-filter:libsrs_alt-1.0-r1:20210327-062734.log (mail-filter:libsrs_alt-1.0-r1:20210327-062734.log,31.80 KB, text/plain)
2021-03-27 08:47 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,23.58 KB, application/x-bzip)
2021-03-27 08:47 UTC, Toralf Förster
Details
Patch to fix the undefined references. (0001-build-Correctly-use-.la-files-and-LDADD.patch,748 bytes, patch)
2021-03-27 15:34 UTC, orbea
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 2021-03-27 08:47:05 UTC
rdlibtool: link: x86_64-pc-linux-gnu-gcc src/.libs/libsrs_alt.a srs.o lib/libcompat.a -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o .libs/srs
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: srs.o: in function `do_forward':
srs.c:(.text+0x1c9): undefined reference to `srs_forward'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: srs.c:(.text+0x1d5): undefined reference to `srs_geterrormsg'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: srs.o: in function `do_reverse':
srs.c:(.text+0x2a0): undefined reference to `srs_reverse'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-20210316-095736

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.3.1
 [3] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.1.0
Python 3.8.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.50.0
  [2]   rust-1.50.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Mar 27 06:05:48 UTC 2021

emerge -qpvO mail-filter/libsrs_alt
[ebuild  N    ] mail-filter/libsrs_alt-1.0-r1  USE="-static-libs"
Comment 1 Toralf Förster gentoo-dev 2021-03-27 08:47:06 UTC
Created attachment 694749 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-03-27 08:47:08 UTC
Created attachment 694752 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-03-27 08:47:09 UTC
Created attachment 694755 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-03-27 08:47:10 UTC
Created attachment 694758 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-03-27 08:47:12 UTC
Created attachment 694761 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-03-27 08:47:13 UTC
Created attachment 694764 [details]
mail-filter:libsrs_alt-1.0-r1:20210327-062734.log
Comment 7 Toralf Förster gentoo-dev 2021-03-27 08:47:14 UTC
Created attachment 694767 [details]
temp.tar.bz2
Comment 8 orbea 2021-03-27 15:34:56 UTC
Created attachment 695055 [details, diff]
Patch to fix the undefined references.

Upstream seems gone, but this patch fixes the undefined references.

The issues are the project is not linking with the .la files, they have .libs in the paths and they are incorrectly using LDFLAGS and LDADD.
Comment 9 Larry the Git Cow gentoo-dev 2021-05-04 19:34:54 UTC
The bug has been closed via the following commit(s):

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

commit 5cf61691ddfac7700856869d533f507748aaf7b7
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2021-05-04 19:34:16 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2021-05-04 19:34:52 +0000

    mail-filter/libsrs_alt-1.0-r1: fix link, thanks orbea, bug #778575
    
    Closes: https://bugs.gentoo.org/778575
    Package-Manager: Portage-3.0.18, Repoman-3.0.2
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 .../libsrs_alt/files/libsrs_alt-1.0-link-fix.patch | 32 ++++++++++++++++++++++
 mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild    |  9 ++++--
 2 files changed, 38 insertions(+), 3 deletions(-)
Comment 10 Larry the Git Cow gentoo-dev 2021-05-04 19:39:30 UTC
The bug has been referenced in the following commit(s):

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

commit efe4921e864ce0dfee0d60c5bec9a18aae7475cb
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2021-05-04 19:39:09 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2021-05-04 19:39:26 +0000

    mail-filter/libsrs_alt-1.0-r1: really do apply patches
    
    Bug: https://bugs.gentoo.org/778575
    Package-Manager: Portage-3.0.18, Repoman-3.0.2
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 mail-filter/libsrs_alt/libsrs_alt-1.0-r1.ebuild | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)