Opened 14 years ago

Closed 13 years ago

#23977 closed defect (fixed)

xdiskusage-1.48 64-bit compilation error

Reported by: f.vincent@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: LP64 Cc:
Port: xdiskusage

Description (last modified by jmroot (Joshua Root))

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)

Change History (5)

comment:1 Changed 14 years ago by f.vincent@…

Cc: f.vincent@… added

Cc Me!

comment:2 Changed 14 years ago by f.vincent@…

I would add that my Leopard binary seems to work just fine in Snow Leopard. Only compilation fails.

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

Cc: f.vincent@… removed
Description: modified (diff)
Keywords: LP64 added
Summary: xdiskusage-1.48 compilation error in Snow Leopard 10.6.2 (use to build fine on 10.5.8)xdiskusage-1.48 64-bit compilation error

Looks like it assumes a 32-bit processor. You don't need to be in cc when you are the reporter BTW.

comment:4 Changed 14 years ago by f.vincent@…

This little utility has a very low cpu usage. IMHO we could happily live with a 32-bit compilation if that's easier...

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

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.