Problem for install GV

guangshan chen gchen9 at gmail.com
Tue Jan 24 10:50:50 PST 2012


Dear all,

I meet a code problem when intsll gv on my Mac. Could anybody figure out how to install gv? Thanks.

My Mac system is Mac OSX 10.7.
Macport version is 2.0.3.

Here is the information when I installed:
sudo port install gv
--->  Computing dependencies for gv
--->  Fetching archive for gv
--->  Attempting to fetch gv-3.7.2_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/gv
--->  Fetching gv
--->  Verifying checksum(s) for gv
--->  Extracting gv
--->  Applying patches to gv
--->  Configuring gv
--->  Building gv
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for gv is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_gv/gv/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
[guangshan at mac]41%: vi /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_gv/gv/main.log

I checked the problem. It was caused by the Scrollbar.c. The following are the information when complied Scrollbar.c:
:info:build Scrollbar.c:865:14: warning: incompatible pointer types passing 'ScrollbarWidget' (aka 'struct _ScrollbarRec *') to parameter of type 'Widget' (aka 'struct _WidgetRec *') [-Wincompatible-pointer-types]
:info:build     CreateGC(SBW);
:info:build              ^~~
:info:build Scrollbar.c:205:15: note: instantiated from:
:info:build #define SBW                     sbw
:info:build                                 ^~~
:info:build Scrollbar.c:942:16: warning: incompatible pointer types passing 'ScrollbarWidget' (aka 'struct _ScrollbarRec *') to parameter of type 'Widget' (aka 'struct _WidgetRec *') [-Wincompatible-pointer-types]
:info:build       CreateGC(SBW);
:info:build                ^~~:info:build Scrollbar.c:205:15: note: instantiated from:
:info:build #define SBW                     sbw
:info:build                                 ^~~
:info:build Scrollbar.c:942:16: warning: incompatible pointer types passing 'ScrollbarWidget' (aka 'struct _ScrollbarRec *') to parameter of type 'Widget' (aka 'struct _WidgetRec *') [-Wincompatible-pointer-types]
:info:build       CreateGC(SBW);
:info:build                ^~~:info:build Scrollbar.c:205:15: note: instantiated from:
:info:build #define SBW                     sbw
:info:build                                 ^~~
:info:build Scrollbar.c:1053:64: error: too few arguments to function call, expected 5, have 4
:info:build    (*swclass->threeD_class.shadowdraw) (w, event, region, FALSE);


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120124/d56656a9/attachment.html>


More information about the macports-users mailing list