Bug 239041

Summary: games/7kaa: fails to build with converters/libiconv installed after update on 2.15.2
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Only Me CC: amdmi3, gnome
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Piotr Kubaj freebsd_committer 2019-07-08 07:54:58 UTC
On 12.0-RELEASE/amd64 with converters/libiconv installed:
c++ -include "../include/config.h" -fsigned-char -I/usr/local/include/SDL2 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE  -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -fPIC -isystem /usr/local/include -fstack-protector-strong  -o 7kaa AM.o ConfigAdv.o CmdLine.o LocaleRes.o OAI_ACT.o OAI_ACT2.o OAI_ATTK.o OAI_BUIL.o OAI_CAP2.o OAI_CAPT.o OAI_DEFE.o OAI_DIPL.o OAI_ECO.o OAI_GRAN.o OAI_INFO.o OAI_MAIN.o OAI_MAR2.o OAI_MAR3.o OAI_MARI.o OAI_MILI.o OAI_MONS.o OAI_QUER.o OAI_SEEK.o OAI_SPY.o OAI_TALK.o OAI_TOWN.o OAI_TRAD.o OAI_UNIT.o OANLINE.o OBATTLE.o OBLOB.o OBOX.o OBULLET.o OBULLETA.o OBUTT3D.o OBUTTCUS.o OBUTTON.o OB_FLAME.o OB_HOMIN.o OB_PROJ.o OCOLTBL.o OCONFIG.o OCRC_STO.o ODATE.o ODB.o ODIR.o ODYNARR.o ODYNARRB.o OEFFECT.o OERRCTRL.o OERROR.o OEXPMASK.o OFILE.o OFILETXT.o OFIRM.o OFIRM2.o OFIRMA.o OFIRMAI.o OFIRMDIE.o OFIRMDRW.o OFIRMIF.o OFIRMIF2.o OFIRMIF3.o OFIRMRES.o OFLAME.o OFONT.o OF_BASE.o OF_BASE2.o OF_CAMP.o OF_CAMP2.oOF_FACT.o OF_FACT2.o OF_HARB.o OF_HARB2.o OF_INN.o OF_INN2.o OF_MARK.o OF_MARK2.o OF_MINE.o OF_MINE2.o OF_MONS.o OF_RESE.o OF_RESE2.o OF_WAR.o OF_WAR2.o OGAMCRED.o OGAME.o OGAMEMP.o OGAMENCY.o OGAMEND.o OGAMESET.o OGAMHALL.o OGAMMAIN.o OGAMMENU.o OGAMSCE2.o OGAMSCEN.o OGAMSING.o OGENHILL.o OGENMAP.o OGETA.o OGFILE.o OGFILE2.o OGFILE3.o OGF_V1.o OGODRES.o OGRPSEL.o OHELP.o OHILLRES.o OIMGRES.o OINFO.o OINGMENU.o OLIGHTN.o OLIGHTN2.o OLOG.o OLONGLOG.o OLZW.o OMATRIX.o OMEM.o OMISC.o OMONSRES.o OMOUSE.o OMOUSECR.o OMP_CRC.o OMUSIC.o ONATIONA.o ONATIONB.o ONEWS.o ONEWS2.o ONEWSENG.o OOPTMENU.o OPLANT.o OPLASMA.o OPOWER.o ORACERES.o ORAIN1.o ORAIN2.o ORAIN3.o ORAWRES.o OREBEL.o OREGION.o OREGIONS.o OREMOTE.o OREMOTE2.o OREMOTEM.o OREMOTEQ.o ORES.o ORESDB.o ORESX.o OROCK.o OROCKRES.o OR_AI.o OR_ECO.o OR_MIL.o OR_NAT.o OR_NEWS.o OR_RANK.o OR_SPY.o OR_TECH.o OR_TOWN.o OR_TRADE.o OSaveGameArray.o OSaveGameInfo.o OSaveGameProvider.o OSCROLL.o OSE.o OSERES.o OSFRMRES.o OSITE.o OSITEDRW.o OSKILL.o OSLIDCUS.o OSNOW1.o OSNOW2.o OSNOWG.o OSNOWRES.o OSPATH.o OSPATHBT.o OSPREDBG.o OSPREOFF.o OSPRESMO.o OSPREUSE.o OSPRITE.o OSPRITE2.o OSPRITEA.o OSPRTRES.o OSPY.o OSPY2.o OSPYA.o OSTR.o OSYS.o OSYS2.o OSYS3.o OTALKENG.o OTALKFRE.o OTALKGER.o OTALKMSG.o OTALKRES.o OTALKSPA.o OTECHRES.o OTERRAIN.o OTORNADO.o OTOWN.o OTOWNA.o OTOWNAI.o OTOWNBLD.o OTOWNDRW.o OTOWNIF.o OTOWNIND.o OTOWNRES.o OTUTOR.o OTUTOR2.o OTownNetwork.o OUNIT.o OUNIT2.o OUNITA.o OUNITAAC.o OUNITAAT.o OUNITAC.o OUNITAI.o OUNITAM.o OUNITAT.o OUNITAT2.o OUNITAT3.o OUNITATB.o OUNITD.o OUNITDRW.o OUNITHB.o OUNITI.o OUNITIF.o OUNITIND.o OUNITM.o OUNITRES.o OUNITS.o OU_CARA.o OU_CARA2.o OU_CARAS.o OU_CARAT.o OU_CART.o OU_GOD.o OU_GOD2.o OU_MARI.o OU_MARI2.o OU_MARIF.o OU_MARIS.o OU_MARIT.o OU_MONS.o OU_VEHI.o OVBROWIF.o OVBROWSE.o OVGA.o OVGABUF.o OVGABUF2.o OVGALOCK.o OVIDEO.o OVOLUME.o OVQUEUE.o OWALLRES.o OWARPT.o OWEATHER.o OWORLD.o OWORLD_M.o OWORLD_Z.o OW_FIRE.o OW_PLANT.o OW_ROCK.o OW_SOUND.o OW_WALL.o PlayerStats.o ReplayFile.o dbglog.o file_input_stream.o file_output_stream.o file_reader.o file_util.o file_writer.o input_stream.o mem_input_stream.o misc_uuid.o output_stream.o session_desc.o player_desc.o vgautil.o vgautil2.o  ./openal/libaudio_openal.a ./enet/libmultiplayer.a  ./imgfun/generic/libimgfun_generic.a ./curl/libWebService.a -L/usr/local/lib -lSDL2  -L/usr/local/lib -lopenal  -L/usr/local/lib -L/usr/local/lib -lenet  -L/usr/local/lib -lcurl  -lintl
/usr/bin/ld: error: undefined symbol: libiconv_close
>>> referenced by LocaleRes.cpp
>>>               LocaleRes.o:(LocaleRes::~LocaleRes())

/usr/bin/ld: error: undefined symbol: libiconv_close
>>> referenced by LocaleRes.cpp
>>>               LocaleRes.o:(LocaleRes::~LocaleRes())

/usr/bin/ld: error: undefined symbol: libiconv_close
>>> referenced by LocaleRes.cpp
>>>               LocaleRes.o:(LocaleRes::deinit())

/usr/bin/ld: error: undefined symbol: libiconv_close
>>> referenced by LocaleRes.cpp
>>>               LocaleRes.o:(LocaleRes::deinit())

/usr/bin/ld: error: undefined symbol: libiconv_open
>>> referenced by LocaleRes.cpp
>>>               LocaleRes.o:(LocaleRes::init(char const*))

/usr/bin/ld: error: undefined symbol: libiconv_open
>>> referenced by LocaleRes.cpp
>>>               LocaleRes.o:(LocaleRes::init(char const*))

/usr/bin/ld: error: undefined symbol: libiconv
>>> referenced by LocaleRes.cpp
>>>               LocaleRes.o:(LocaleRes::conv_str(void*, char const*))
c++: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 Dmitry Marakasov freebsd_committer 2019-07-12 21:04:23 UTC
Cannot reproduce, full log please.

Does USES+=iconv help?
Comment 2 Piotr Kubaj freebsd_committer 2019-08-02 08:48:14 UTC
(In reply to Dmitry Marakasov from comment #1)
Yes, USES=iconv helps.
Comment 3 Dmitry Marakasov freebsd_committer 2019-08-02 16:05:17 UTC
Ok, adding it then. Still cannot reproduce the build failure though.
Comment 4 commit-hook freebsd_committer 2019-08-02 16:05:36 UTC
A commit references this bug:

Author: amdmi3
Date: Fri Aug  2 16:05:22 UTC 2019
New revision: 507881
URL: https://svnweb.freebsd.org/changeset/ports/507881

Log:
  - Add missing USES=iconv

  PR:		239041
  Reported by:	pkubaj@FreeBSD.org

Changes:
  head/games/7kaa/Makefile