compiling errors

markd at macports.org markd at macports.org
Fri Apr 27 22:42:46 PDT 2007


Shawn,

Allegro failed to build on my MacBook.  So I updated it to the latest and
it installs forme now.  Then I was able to update atanks to 2.3 and it
installs to.  But I don't understand atanks and it is crashing.  The old
tarball apparently included definitions and other directories that don't
seem tio exist in the new tarball.  So after a few hours uninstall, clean,
selfupdate, and reinstall and give it a try.  atanks probably needs some
more work but it needs someone who knows it.

Mark

"Shawn Johnson" <sjohnso at gmail.com> on Friday, April 27, 2007 at 1:51 PM
-0800 wrote:
>Hello!
>
>I'm very new to OSX, but familiar with gentoo and other linux distros.  I
>seem to have issues compiling various programs on my iMac using
>macports.  I get the following errors:
>
>OSPDY:~ sjohnso$ sudo port install atanks
> --->  Building atanks with target all
>Error: Target com.apple.build returned: shell command "cd
>"/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_games_atanks/work/atanks-
>1.5a" && CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib make all
>PREFIX=/opt/local" returned error 2
> Command output: make -C src
>g++ -c player.cc -o player.o -DLINUX -DVERSION=\"1.5.0a\"
>-DDATA_DIR=\"/opt/local/share/atanks\"   -I/opt/local/include -Wall
>-Iinclude  -g     
>player.cc: In member function 'int PLAYER::addTankDamageToMatrix(TANK*,
>TANK*, int)': 
>player.cc:1041: error: call of overloaded 'abs(double)' is ambiguous
>/usr/include/stdlib.h:145: note: candidates are: int abs(int)
> /usr/include/c++/4.0.0/cstdlib:169: note:                 long long int
>__gnu_cxx::abs(long long int)
> /usr/include/c++/4.0.0/cstdlib:130: note:                 long int
>std::abs(long int)
>player.cc :1046: error: call of overloaded 'abs(double)' is ambiguous
>/usr/include/stdlib.h:145: note: candidates are: int abs(int) 
>/usr/include/c++/4.0.0/cstdlib:169: note:                 long long int
>__gnu_cxx::abs(long long int) 
>/usr/include/c++/4.0.0/cstdlib:130: note:                 long int
>std::abs(long int)
>player.cc: In member function 'void PLAYER::calcDamageMatrix(TANK*, int)':
> player.cc:1140: error: call of overloaded 'abs(double)' is ambiguous
> /usr/include/stdlib.h:145: note: candidates are: int abs(int)
>/usr/include/c++/4.0.0/cstdlib:169: note:                 long long int
>__gnu_cxx::abs(long long int) 
>/usr/include/c++/4.0.0/cstdlib:130: note:                 long int
>std::abs(long int)
>make[1]: *** [player.o] Error 1
> make: *** [all] Error 2
>
>Error: Status 1 encountered during processing. 
>
>
>Can anyone give me any advice on what's going on here and perhaps point
>me to a solution?
>
>Thanks for your help!
>
>Shawn




More information about the macports-users mailing list