Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779160 - sci-visualization/opendx-4.4.4-r7 - user.c:(.text+<snip>): undefined reference to m_AmbientLight
Summary: sci-visualization/opendx-4.4.4-r7 - user.c:(.text+<snip>): undefined referenc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PATCH
: 794976 (view as bug list)
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-03-29 21:02 UTC by Toralf Förster
Modified: 2021-09-08 04:41 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.67 KB, text/plain)
2021-03-29 21:02 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,477.24 KB, text/plain)
2021-03-29 21:02 UTC, Toralf Förster
Details
environment (environment,110.25 KB, text/plain)
2021-03-29 21:02 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,30.51 KB, application/x-bzip)
2021-03-29 21:02 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,24.81 KB, application/x-bzip)
2021-03-29 21:02 UTC, Toralf Förster
Details
sci-visualization:opendx-4.4.4-r7:20210329-205519.log (sci-visualization:opendx-4.4.4-r7:20210329-205519.log,947.65 KB, text/plain)
2021-03-29 21:02 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,54.88 KB, application/x-bzip)
2021-03-29 21:02 UTC, Toralf Förster
Details
Patch to fix the undefined references. (opendx-link.patch,1.70 KB, patch)
2021-04-07 19:02 UTC, orbea
Details | Diff
Patch to fix the undefined references. (opendx-link.patch,1.74 KB, patch)
2021-04-07 19:04 UTC, orbea
Details | Diff
Patch to fix the undefined references. (opendx-link.patch,1.74 KB, patch)
2021-04-07 19:07 UTC, orbea
Details | Diff
Patch to fix the undefined references. (opendx-link.patch,1.74 KB, patch)
2021-04-07 19:07 UTC, orbea
Details | Diff
Patch to fix the undefined references. (opendx-link.patch,1.74 KB, patch)
2021-04-07 19:09 UTC, orbea
Details | Diff
Patch to fix the undefined references. (opendx-link.patch,1.45 KB, patch)
2021-04-07 19:30 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-29 21:02:15 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../dxmods/user.o: in function `_dxf_user_modules':
user.c:(.text+0x5d): undefined reference to `m_AmbientLight'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: user.c:(.text+0x19f): undefined reference to `m_Append'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: user.c:(.text+0x20c): undefined reference to `m_Arrange'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: user.c:(.text+0x252): undefined reference to `m_Attribute'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-20210315-143628

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] 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-1.50.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.17.1 [icedtea-8]
2)	IcedTea JDK 3.16.0 [icedtea-bin-8]
3)	JamVM JDK 2.0.0 [jamvm]
4)	OpenJDK 8.282_p08 [openjdk-8]
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8 
  [3]   jamvm 
  [4]   openjdk-8 
  [5]   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	Mon Mar 29 20:20:33 UTC 2021

emerge -qpvO sci-visualization/opendx
[ebuild  N    ] sci-visualization/opendx-4.4.4-r7  USE="tiff -cdf -hdf -imagemagick -netcdf -smp -szip"
Comment 1 Toralf Förster gentoo-dev 2021-03-29 21:02:16 UTC
Created attachment 696102 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-03-29 21:02:18 UTC
Created attachment 696105 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-03-29 21:02:19 UTC
Created attachment 696108 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-03-29 21:02:21 UTC
Created attachment 696111 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-03-29 21:02:22 UTC
Created attachment 696114 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-03-29 21:02:24 UTC
Created attachment 696117 [details]
sci-visualization:opendx-4.4.4-r7:20210329-205519.log
Comment 7 Toralf Förster gentoo-dev 2021-03-29 21:02:25 UTC
Created attachment 696120 [details]
temp.tar.bz2
Comment 8 orbea 2021-04-07 19:02:34 UTC
Created attachment 698295 [details, diff]
Patch to fix the undefined references.

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

Several of the internal dependencies are being linked in the wrong place and with the wrong files which leads to fragile linking order issues. I cleaned it up a little and made it more robust in the attached patch. I also added -no-undefined for some extra assurance.
Comment 9 orbea 2021-04-07 19:04:40 UTC
Created attachment 698298 [details, diff]
Patch to fix the undefined references.

Fixed commit message.
Comment 10 orbea 2021-04-07 19:07:06 UTC
Created attachment 698301 [details, diff]
Patch to fix the undefined references.

Add fixed typo...
Comment 11 orbea 2021-04-07 19:07:46 UTC
Created attachment 698304 [details, diff]
Patch to fix the undefined references.
Comment 12 orbea 2021-04-07 19:09:28 UTC
Created attachment 698307 [details, diff]
Patch to fix the undefined references.
Comment 13 orbea 2021-04-07 19:30:15 UTC
Created attachment 698310 [details, diff]
Patch to fix the undefined references.
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-06-10 03:21:51 UTC
*** Bug 794976 has been marked as a duplicate of this bug. ***
Comment 15 Larry the Git Cow gentoo-dev 2021-09-08 04:41:27 UTC
The bug has been closed via the following commit(s):

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

commit 60c4e1235300e9bba9f1d86512a09257f60fe640
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-09-08 04:39:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-09-08 04:41:10 +0000

    sci-visualization/opendx: fix build with slibtool, gcc 11
    
    Closes: https://bugs.gentoo.org/786627
    Closes: https://bugs.gentoo.org/779160
    Thanks-to: orbea <orbea@riseup.net>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../opendx/files/opendx-4.4.4-slibtool.patch       | 40 ++++++++++++++++++++++
 sci-visualization/opendx/opendx-4.4.4-r7.ebuild    |  6 +++-
 2 files changed, 45 insertions(+), 1 deletion(-)