Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557286 - media-libs/freeglut-3.0.0 require of libSM.so
Summary: media-libs/freeglut-3.0.0 require of libSM.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-11 10:15 UTC by Nikita Kozlov
Modified: 2019-03-27 19:54 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Kozlov 2015-08-11 10:15:30 UTC
Hello,
There is a missing deps in freeglut ebuild. freeglut-3.0.0 require libSM.so.

/usr/bin/x86_64-pc-linux-gnu-gcc -m32 -fPIC -O2 -march=native -mtune=native -fomit-frame-pointer -frecord-gcc-switches -fdiagnostics-color=always  -Wall -pedantic  -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,libglut.so.3 -o lib/libglut.so.3.10.0 CMakeFiles/freeglut.dir/src/fg_callbacks.c.o CMakeFiles/freeglut.dir/src/fg_cursor.c.o CMakeFiles/freeglut.dir/src/fg_display.c.o CMakeFiles/freeglut.dir/src/fg_ext.c.o CMakeFiles/freeglut.dir/src/fg_font_data.c.o CMakeFiles/freeglut.dir/src/fg_gamemode.c.o CMakeFiles/freeglut.dir/src/fg_geometry.c.o CMakeFiles/freeglut.dir/src/fg_gl2.c.o CMakeFiles/freeglut.dir/src/fg_init.c.o CMakeFiles/freeglut.dir/src/fg_input_devices.c.o CMakeFiles/freeglut.dir/src/fg_joystick.c.o CMakeFiles/freeglut.dir/src/fg_main.c.o CMakeFiles/freeglut.dir/src/fg_misc.c.o CMakeFiles/freeglut.dir/src/fg_overlay.c.o CMakeFiles/freeglut.dir/src/fg_spaceball.c.o CMakeFiles/freeglut.dir/src/fg_state.c.o CMakeFiles/freeglut.dir/src/fg_stroke_mono_roman.c.o CMakeFiles/freeglut.dir/src/fg_stroke_roman.c.o CMakeFiles/freeglut.dir/src/fg_structure.c.o CMakeFiles/freeglut.dir/src/fg_teapot.c.o CMakeFiles/freeglut.dir/src/fg_videoresize.c.o CMakeFiles/freeglut.dir/src/fg_window.c.o CMakeFiles/freeglut.dir/src/fg_font.c.o CMakeFiles/freeglut.dir/src/fg_menu.c.o CMakeFiles/freeglut.dir/src/x11/fg_cursor_x11.c.o CMakeFiles/freeglut.dir/src/x11/fg_ext_x11.c.o CMakeFiles/freeglut.dir/src/x11/fg_gamemode_x11.c.o CMakeFiles/freeglut.dir/src/x11/fg_glutfont_definitions_x11.c.o CMakeFiles/freeglut.dir/src/x11/fg_init_x11.c.o CMakeFiles/freeglut.dir/src/x11/fg_input_devices_x11.c.o CMakeFiles/freeglut.dir/src/x11/fg_joystick_x11.c.o CMakeFiles/freeglut.dir/src/x11/fg_main_x11.c.o CMakeFiles/freeglut.dir/src/x11/fg_menu_x11.c.o CMakeFiles/freeglut.dir/src/x11/fg_spaceball_x11.c.o CMakeFiles/freeglut.dir/src/x11/fg_state_x11.c.o CMakeFiles/freeglut.dir/src/x11/fg_structure_x11.c.o CMakeFiles/freeglut.dir/src/x11/fg_window_x11.c.o CMakeFiles/freeglut.dir/src/x11/fg_xinput_x11.c.o CMakeFiles/freeglut.dir/src/x11/fg_display_x11_glx.c.o CMakeFiles/freeglut.dir/src/x11/fg_state_x11_glx.c.o CMakeFiles/freeglut.dir/src/x11/fg_window_x11_glx.c.o CMakeFiles/freeglut.dir/src/util/xparsegeometry_repl.c.o -lGL -lm -lSM -lICE -lX11 -lXext -lXrandr -lXxf86vm -lXi 
[ 44%] Building C object CMakeFiles/freeglut_static.dir/src/fg_stroke_roman.c.o
/usr/bin/x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H  -DNDEBUG -O2 -march=native -mtune=native -fomit-frame-pointer -frecord-gcc-switches -fdiagnostics-color=always  -Wall -pedantic -I/var/tmp/portage/media-libs/freeglut-3.0.0/work/freeglut-3.0.0/src -I/var/tmp/portage/media-libs/freeglut-3.0.0/work/freeglut-3.0.0/include -I/var/tmp/portage/media-libs/freeglut-3.0.0/work/freeglut-3.0.0-abi_x86_32.x86    -o CMakeFiles/freeglut_static.dir/src/fg_stroke_roman.c.o -c /var/tmp/portage/media-libs/freeglut-3.0.0/work/freeglut-3.0.0/src/fg_stroke_roman.c
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../libSM.so when searching for -lSM
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libSM.so when searching for -lSM
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lSM
collect2: error: ld returned 1 exit status


Reproducible: Always




Timestamp of repository gentoo: Mon, 10 Aug 2015 08:15:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.0) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.0::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo/gentoo-portage-rsync-mirror
    priority: -1000

dnscrypt-proxy
    location: /usr/local/portage
    masters: gentoo
    priority: 0

gentoo-gandi
    location: /usr/local/gentoo-gandi
    sync-type: git
    sync-uri: git+ssh://git@gitlab.corp.gandi.net/tortuegeniale/gentoo-gandi.git
    masters: gentoo

qt
    location: /usr/local/qt
    sync-type: git
    sync-uri: git@github.com:gentoo/qt.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA google-chrome Oracle-BCLA-JavaSE PUEL AdobeFlash-10.3"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -frecord-gcc-switches -fdiagnostics-color=always"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -frecord-gcc-switches -fdiagnostics-color=always"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy cgroup config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles installsources ipc-sandbox merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacplus acl acpi aes aes-ni aio alsa amd64 apng avahi avx avx2 bash-completion berkdb branding btrfs bzip2 cacert cairo caps clang cli consolekit cracklib cron crypt cups cxx dbus device-mapper dri emboss encode evdev exif fam firefox flac fontconfig gdbm gif gnome-keyring gpm gstreamer gtk gtk3 hardened iconv icu idn introspection iproute2 ipv6 jpeg jpeg2k justify keymap lcms libcxx libnotify lm_sensors lto mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp openssl opus pam pango pax_kernel pcre pdf pgo pie png popcnt portage ppds pulseaudio qt4 readline sasl sdl seccomp session smp spell sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssp ssse3 startup-notification svg tcpd threads tiff truetype udev udisks unicode upower urandom usb vim-syntax vorbis webp wifi x264 xattr xcb xml xpm xtpax xv xvid zlib zsh-completion" ABI_X86="64 32" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" DRACUT_MODULES="crypt lvm" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 i386 arm" QEMU_USER_TARGETS="x86_64 i386 arm" RUBY_TARGETS="ruby20 ruby19 ruby22" USERLAND="GNU" VIDEO_CARDS="intel i965 i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.4"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2015-08-11 14:15:20 UTC
Chances are it's a flaw of the build system, not a real dep.

Attach full build log and CMakeCache.txt.
Comment 2 Larry the Git Cow gentoo-dev 2019-03-27 19:54:38 UTC
The bug has been closed via the following commit(s):

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

commit 27083133bfb71b4fe269d35b4158e553859d81fe
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-03-27 19:36:24 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-03-27 19:54:01 +0000

    media-libs/freeglut: Drop linking with unnecessary X11 libs
    
    Many thanks go to Christian <christian@ch-sc.de> for tracking down and
    fixing the bug!
    
    Closes: https://bugs.gentoo.org/557286
    Closes: https://bugs.gentoo.org/647326
    Closes: https://bugs.gentoo.org/658936
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 .../freeglut-3.0.0-drop-unnecessary-x11-libs.patch | 30 ++++++++++++++++++++++
 media-libs/freeglut/freeglut-3.0.0.ebuild          |  4 +++
 2 files changed, 34 insertions(+)