Bug 145271 - ports/games/vegastrike doesn't compile on x86_64
Summary: ports/games/vegastrike doesn't compile on x86_64
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-01 22:50 UTC by rnejdl
Modified: 2010-04-05 15:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rnejdl 2010-04-01 22:50:07 UTC
Looks like there's an int conversion issue:

       c++ -DHAVE_CONFIG_H -I.   -I./boost/1_33 -I/usr/local/include   -DHAVE_SDL=1 -DSDL_WINDOWING=1      -DHAVE_AL=1 -I/usr/local/include  -DHAVE_OGG  -DDATA_DIR=\"/usr/local/share/vegastrike\"  -I/usr/local/include/python2.5 -DHAVE_PYTHON=1    -I./src   -pipe  -O2 -pipe -march=nocona -fno-strict-aliasing -I/usr/local/include/SDL -I/usr/local/include -D_GNU_SOURCE=1 -D_REENTRANT -pthread -MT src/cmd/script/pythonmission.o -MD -MP -MF $depbase.Tpo -c -o src/cmd/script/pythonmission.o src/cmd/script/pythonmission.cpp &&\                                 
        mv -f $depbase.Tpo $depbase.Po                                          
src/vsfilesystem.cpp: In function 'void VSFileSystem::InitMods()':              
src/vsfilesystem.cpp:711: error: invalid conversion from 'int (*)(dirent*)' to 'int (*)(const dirent*)'                                                         
src/vsfilesystem.cpp:711: error:   initializing argument 3 of 'int scandir(const char*, dirent***, int (*)(const dirent*), int (*)(const dirent**, const dirent**))'                                                                            
src/vsfilesystem.cpp:730: error: invalid conversion from 'int (*)(dirent*)' to 'int (*)(const dirent*)'                                                         
src/vsfilesystem.cpp:730: error:   initializing argument 3 of 'int scandir(const char*, dirent***, int (*)(const dirent*), int (*)(const dirent**, const dirent**))'                                                                            
src/vsfilesystem.cpp: In function 'void VSFileSystem::CreateDirectoryAbs(const char*)':                                                                         
src/vsfilesystem.cpp:958: warning: large integer implicitly truncated to unsigned type                                                                          
src/vsfilesystem.cpp:962: warning: deprecated conversion from string constant to 'char*'                                                                        
src/vsfilesystem.cpp: In member function 'std::string VSFileSystem::VSFile::ReadFull()':                                                                        
src/vsfilesystem.cpp:1770: warning: deprecated conversion from string constant to 'char*'                                                                       
src/vsfilesystem.cpp: In member function 'void VSFileSystem::VSFile::Clear()':  
src/vsfilesystem.cpp:1972: warning: deprecated conversion from string constant to 'char*'                                                                       
gmake[1]: *** [src/vsfilesystem.o] Error 1                                      
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: Leaving directory `/usr/ports/games/vegastrike/work/vegastrike-0.5.0'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/games/vegastrike.
*** Error code 1

How-To-Repeat: Compile vegastrike on AMD64 system with latest ports tree.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-04-01 22:50:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->amdmi3

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Dmitry Marakasov freebsd_committer freebsd_triage 2010-04-05 15:45:02 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2010-04-05 15:45:16 UTC
amdmi3      2010-04-05 14:44:54 UTC

  FreeBSD ports repository

  Modified files:
    games/vegastrike     Makefile 
  Added files:
    games/vegastrike/files extra-patch-src-cmd-basecomputer.cpp 
                           extra-patch-src-vsfilesystem.cpp 
  Log:
  - Fix build on STABLE & CURRENT
  
  PR:             145271
  Submitted by:   Rusty Nejdl <rnejdl@ringofsaturn.com>
  
  Revision  Changes    Path
  1.17      +5 -0      ports/games/vegastrike/Makefile
  1.1       +38 -0     ports/games/vegastrike/files/extra-patch-src-cmd-basecomputer.cpp (new)
  1.1       +29 -0     ports/games/vegastrike/files/extra-patch-src-vsfilesystem.cpp (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"