[MacPorts] #23977: xdiskusage-1.48 compilation error in Snow Leopard 10.6.2 (use to build fine on 10.5.8)

MacPorts noreply at macports.org
Mon Mar 8 05:07:43 PST 2010


#23977: xdiskusage-1.48 compilation error in Snow Leopard 10.6.2 (use to build fine
on 10.5.8)
---------------------------------------------+------------------------------
 Reporter:  f.vincent@…                      |       Owner:  macports-tickets@…                   
     Type:  defect                           |      Status:  new                                  
 Priority:  Normal                           |   Milestone:                                       
Component:  ports                            |     Version:  1.8.2                                
 Keywords:                                   |        Port:  xdiskusage                           
---------------------------------------------+------------------------------
 typing "sudo port -d install xdiskusage" ends with the following error:

 {{{
 --->  Building xdiskusage
 DEBUG: Executing org.macports.build (xdiskusage)
 DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
 DEBUG: Assembled command: 'cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xdiskusage/work/xdiskusage-1.48"
 && /usr/bin/make -j2 all CXXFLAGS="-I/opt/local/include"
 LDFLAGS="-L/opt/local/lib"'
 /usr/bin/g++-4.2 -I/opt/local/include -c xdiskusage.C
 xdiskusage.C: In static member function 'static OutputWindow*
 OutputWindow::make(const char*, Disk*)':
 xdiskusage.C:399: warning: format not a string literal and no format
 arguments
 xdiskusage.C:495: warning: format '%d' expects type 'int', but argument 4
 has type 'size_t'
 xdiskusage.C:513: warning: format '%d' expects type 'int', but argument 3
 has type 'size_t'
 xdiskusage.C: In static member function 'static void
 OutputWindow::sort_cb(Fl_Widget*, void*)':
 xdiskusage.C:991: error: cast from 'void*' to 'int' loses precision
 xdiskusage.C: In static member function 'static void
 OutputWindow::columns_cb(Fl_Widget*, void*)':
 xdiskusage.C:1004: error: cast from 'void*' to 'int' loses precision
 make: *** [xdiskusage.o] Error 1
 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xdiskusage/work/xdiskusage-1.48"
 && /usr/bin/make -j2 all CXXFLAGS="-I/opt/local/include"
 LDFLAGS="-L/opt/local/lib" " returned error 2
 }}}

 I use to successfully build and install the very same version of this port
 on Leopard...

 Context: MacBook Pro running OSX 10.6.2, using Xcode 3.2.1 and MacPort
 1.8.2 (selfupdate ran just before trying the port install)

-- 
Ticket URL: <http://trac.macports.org/ticket/23977>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list