On 8/8/2012 12:25 PM, Alexander Hansen wrote:
> On 8/8/12 9:20 AM, Alexander Hansen wrote:
>> On 8/8/12 9:11 AM, Hanspeter Niederstrasser wrote:
>>> On 8/8/2012 10:10 AM, Antonio Villaseñor wrote:
>>>> Hello,
>>>>
>>>> I just got a new Macbook Pro with Mountain Lion, and I have installed
>>>> fink and a few packages without any problems.
>>>>
>>>> However I have tried to install gv (the postscript viewer ghost view)
>>>> and I've got a compiling error. Of course the error might be not in gv
>>>> but in a package required by it.
>>>>
>>>> I have tried running "fink self update" and "fink configure" but I get
>>>> the same message.
>>>>
>>>> I attach the screen output that I obtain when I type "fink install gv"
>>>
>>> Please don't attach build logs.  Just copy and paste the error message
>>> (and the compiler command that led to that error).
>>>
>>>> gcc -DHAVE_CONFIG_H -I.  -DNON_BLOCKING_IO -DGV_CODE -DGV_CODE
>>>> -DGV_LIBDIR=\"/sw/lib/gv\" -I../lib -I../lib -g -I/usr/X11R6/include
>>>> -I/sw/include/gnugetopt -I/sw/include -I/usr/X11R6/include
>>>> -DUSE_SETENV_CODE -g -O2 -c Vlist.c
>>>> Vlist.c:281:49: warning: use of unary operator that may be intended as
>>>> compound assignment (-=)
>>>>      if (!nvw->vlist.entries) nvw->vlist.entries =- 1;
>>>>                                                  ^~
>>>> Vlist.c:323:18: error: no member named 'international' in 'SimplePart'
>>>>    if( vw->simple.international == True ) {
>>>>        ~~~~~~~~~~ ^
>>>> Vlist.c:324:56: error: no member named 'fontset' in 'LabelPart'
>>>>      XFontSetExtents *ext = XExtentsOfFontSet(vw->label.fontset);
>>>>                                               ~~~~~~~~~ ^
>>>> Vlist.c:343:20: error: no member named 'international' in 'SimplePart'
>>>>      if( vw->simple.international == True )
>>>>          ~~~~~~~~~~ ^
>>>> Vlist.c:344:58: error: no member named 'fontset' in 'LabelPart'
>>>>        XmbDrawString(XtDisplay(w), XtWindow(w), vw->label.fontset,
>>>>                                                 ~~~~~~~~~ ^
>>>
>>> This looks like a strictness issue brought on by newer Xcode.
>>
>> No, it builds fine on 10.7/Xcode 4.4.  I'd be more inclined to blame
>> differences in X11 coupled with the flag ordering.
>>
>> Can you
>>> try the gv files that I've attached to this message?  Save both files to
>>> /sw/fink/dists/local/main/finkinfo and then try to rebuild gv.
>>>
>>> Todai team, the attached files work on 10.6 and 10.7/Xcode 4.1.
>>> Irregardless of the results on 10.8, can your gv be updated on those
>>> systems to this new version?
>>>
>>
>> It fails on 10.8:
>>
>> Scrollbar.c:1009:64: error: too few arguments to function call, expected
>> 5, have
>>        4
>>     (*swclass->threeD_class.shadowdraw) (w, event, region, FALSE);
>>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                         ^
>> 1 error generated.
>> make[2]: *** [Scrollbar.o] Error 1
>>
>
> That comes from Xquartz's built-in xaw3d stuff.  I added
>
> SetCC: flag-sort -r gcc
>
> to gv.info and the package built on 10.8.

This is upstream's patch to fix gv when building against xaw3d-1.6 
(either from Xquartz or Fink's libxaw3dxft).
https://savannah.gnu.org/bugs/index.php?35353
via
https://bugs.gentoo.org/show_bug.cgi?id=399753

--- src/Scrollbar.c
+++ src/Scrollbar.c
@@ -1006,7 +1006,7 @@
     TOPLOC = newtop;
     SHOWNLENGTH = newbot-newtop+1;

-   (*swclass->threeD_class.shadowdraw) (w, event, region, FALSE);
+   (*swclass->threeD_class.shadowdraw) (w, event, region, 
sbw->threeD.relief, FALSE);

     ENDMESSAGE(Redisplay)
  }


It fixes the build here when I use libxaw3dxft in BuildDepends. 
However, it doesn't take care of having -I/usr/X11R6/include before 
-I/sw/include

Hanspeter


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to