Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 650044 - games-strategy/xbattleai-1.2.2-r2 : /.../ld: cannot find -lnsl
Summary: games-strategy/xbattleai-1.2.2-r2 : /.../ld: cannot find -lnsl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-09 18:07 UTC by Toralf Förster
Modified: 2021-04-12 15:50 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.04 KB, text/plain)
2018-03-09 18:07 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,88.26 KB, text/plain)
2018-03-09 18:07 UTC, Toralf Förster
Details
environment (environment,75.01 KB, text/plain)
2018-03-09 18:08 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.29 KB, application/x-bzip)
2018-03-09 18:08 UTC, Toralf Förster
Details
games-strategy:xbattleai-1.2.2-r2:20180309-162005.log (games-strategy:xbattleai-1.2.2-r2:20180309-162005.log,15.19 KB, text/plain)
2018-03-09 18:08 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,1.07 KB, application/x-bzip)
2018-03-09 18:08 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,20.53 KB, application/x-bzip)
2018-03-09 18:08 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-03-09 18:07:53 UTC
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O2 -pipe -march=native  -I/usr/X11R6/include -Wl,-O1 -Wl,--as-needed ./command.o ./draw.o ./edit.o ./error.o ./init.o ./load.o ./main.o ./parse.o ./replay.o ./shape.o ./shape_diamond.o ./shape_hex.o ./shape_octagon.o ./shape_square.o ./shape_triangle.o ./update.o ./utils.o ./window.o ./ai.o ./ai1.o ./ai2.o ./file.o ./victory.o ./int.o ./sound.o -lX11 -lpthread -lresolv -lnsl -lm  -L/usr/X11R6/lib  -o xbattle
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnsl
collect2: error: ld returned 1 exit status
make: *** [Makefile:194: xbattle] Error 1
 * ERROR: games-strategy/xbattleai-1.2.2-r2::gentoo failed (compile phase):

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-hardened_20180307-163504

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems)
  [2]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv games-strategy/xbattleai
[ebuild  N    ] games-strategy/xbattleai-1.2.2-r2
Comment 1 Toralf Förster gentoo-dev 2018-03-09 18:07:56 UTC
Created attachment 523158 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-03-09 18:07:59 UTC
Created attachment 523160 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-03-09 18:08:02 UTC
Created attachment 523162 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-03-09 18:08:05 UTC
Created attachment 523164 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-03-09 18:08:09 UTC
Created attachment 523166 [details]
games-strategy:xbattleai-1.2.2-r2:20180309-162005.log
Comment 6 Toralf Förster gentoo-dev 2018-03-09 18:08:12 UTC
Created attachment 523168 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-03-09 18:08:15 UTC
Created attachment 523170 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2021-04-12 15:50:09 UTC
The bug has been closed via the following commit(s):

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

commit 683c7dcfb4c3cb41e756bed668b5c41baab85522
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-04-12 15:36:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-04-12 15:48:34 +0000

    games-strategy/xbattleai: update EAPI 6 -> 7, fix build, respect CC
    
    Previous configure results were cached, causing misdetection of nsl. This
    also added to problems with respecting CC.
    
    Closes: https://bugs.gentoo.org/730850
    Closes: https://bugs.gentoo.org/650044
    Signed-off-by: Sam James <sam@gentoo.org>

 games-strategy/xbattleai/xbattleai-1.2.2-r2.ebuild | 25 ++++++++++++++++------
 1 file changed, 18 insertions(+), 7 deletions(-)