Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#13528 closed defect (fixed)

Lincity-ng fails to build and install on Mac OS X 10.5.1

Reported by: johnmusbach1@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: Cc: jmroot (Joshua Root), pguyot (Paul Guyot)
Port:

Description (last modified by jmpalacios (Juan Manuel Palacios))

1) When installing lincity-ng it does not properly satisfy the libxml2 dependency which must be done with macports before installing lincity-ng, this should be fixed

2) After that dependency is met lincity-ng still fails to build and install with the following error:

bash-3.2$ sudo port install lincity-ng
--->  Configuring lincity-ng
--->  Building lincity-ng with target all
Error: Target org.macports.build returned: shell command "cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_games_lincity-ng/work/lincity-ng-1.1.0
&& jam" returned error 1
Command output: C++
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/PbarInterface.o
C++ ./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/prefix.o
C++ ./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/readdir.o
C++ ./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/ReadPngInterface.o
C++ ./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/ScreenInterface.o
C++ ./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/Sound.o
C++ ./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/TimerInterface.o
C++ ./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/Util.o
LinkApplication lincity-ng
Undefined symbols:
  "_iconv_close", referenced from:
      TinyGetText::convert(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)in libtinygettext.a(TinyGetText.o)
  "_iconv", referenced from:
      TinyGetText::convert(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)in libtinygettext.a(TinyGetText.o)
  "_iconv_open", referenced from:
      TinyGetText::convert(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)in libtinygettext.a(TinyGetText.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status

    g++ -o lincity-ng
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/ButtonInterface.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/ButtonPanel.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/CheckButton.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/Config.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/Debug.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/Dialog.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/EconomyGraph.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/ErrorInterface.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/Game.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/GameView.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/HelpWindow.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/main.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/MainLincity.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/MainMenu.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/MapEdit.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/MiniMap.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/Mps.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/MpsInterface.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/PBar.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/PbarInterface.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/prefix.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/readdir.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/ReadPngInterface.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/ScreenInterface.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/Sound.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/TimerInterface.o
./build/i686-apple-darwin9.1.0/optimize/src/lincity-ng/Util.o
./build/i686-apple-darwin9.1.0/optimize/src/gui/liblincity_gui.a
./build/i686-apple-darwin9.1.0/optimize/src/lincity/liblincity_lib.a
./build/i686-apple-darwin9.1.0/optimize/src/tinygettext/libtinygettext.a
./build/i686-apple-darwin9.1.0/optimize/src/PhysfsStream/libphysfsstream.a
 -g  -L/opt/local/lib -lxml2 -lpthread -lz -liconv -lm
-L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -lSDL_image
-lSDL_mixer -lSDL_ttf -lSDL_gfx -L/opt/local/lib -lphysfs -framework
OpenGL -liconv -lz

...failed LinkApplication lincity-ng ...
MkDir1 ./build/i686-apple-darwin9.1.0/optimize/src/tools/xmlgettext
C++ ./build/i686-apple-darwin9.1.0/optimize/src/tools/xmlgettext/main.o
C++ ./build/i686-apple-darwin9.1.0/optimize/src/tools/xmlgettext/XmlReader.o
LinkApplication xmlgettext
XmlGetText data/locale/gui/messages.pot
XGetText data/locale/messages.pot
...failed updating 1 target(s)...
...updated 128 target(s)...

I have tried contacting the developer of lincity-ng about this error but he is unsure of the proper resolution: https://lists.berlios.de/pipermail/lincity-ng-devel/2007-December/000404.html . Although I also encounter the same error when building directly from the 1.1.2 tarball I would think that there is something both me and macports is overlooking and not properly satisfying when attempting to install this game... Hope you can fix this so that the game can be properly installed on Mac OS X 10.5.1, thanks!

Change History (6)

comment:1 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Description: modified (diff)
Milestone: Port Bugs

comment:2 Changed 17 years ago by johnmusbach1@…

I just found out about the following wiki page which may be of help fixing macports so that it properly installs this game: http://lincity-ng.berlios.de/wiki/index.php/How_to_build_Lincity-NG_on_a_Mac

comment:3 Changed 17 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to pguyot@…

Assigning to maintainer.

comment:4 Changed 16 years ago by pguyot (Paul Guyot)

Owner: changed from pguyot@… to macports-tickets@…

Please retry after r37605. There is not much I can do without a 10.5 box, though.

comment:5 Changed 16 years ago by jmroot (Joshua Root)

Cc: jmr@… pguyot@… added
Resolution: fixed
Status: newclosed

It failed to find physfs.h for me on 10.5, which I fixed in r37609. After that, destroot didn't work the first time but did work on the second try. (I'm using trunk, so I thought that bug was meant to be fixed?) Anyway, lincity-ng seems to work fine on Leopard now.

comment:6 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.