Wireshark fails to complete install at gtk2

Kok-Yong Tan ktan at realityartisans.com
Sun Dec 2 11:48:35 PST 2007


Frankly,  I don't get those errors you're getting...but then, as I  
mentioned, I installed gtk2 +x11 instead of gtk2 +quartz...   Just  
for kicks, why not uninstall gtk2 +quartz, install gtk2 +x11 and  
recompile wireshark and see what you get?

Also, when you run Wireshark, you have to run it as root, i.e.,  
"sudo /opt/local/bin/wireshark", otherwise you can't access any of  
the available interfaces.   If you run it from under an X11 xterm, it  
should be set properly but if you're attempting to run from Terminal  
with X11 running already, remember to set your DISPLAY variable to ": 
0.0".

On Dec 2, 2007, at 05:36, Jesse Ohlsson wrote:

> All,
>
> I installed gtk2 +quartz without problem:
>
> g5:~] jess% sudo port install gtk2 +quartz
> Password:
> --->  Fetching gtk2
> --->  Attempting to fetch gtk+-2.12.1.tar.bz2 from http:// 
> mandril.creatis.insa-lyon.fr/linux/gnome.org/sources/gtk+/2.12/
> --->  Verifying checksum(s) for gtk2
> --->  Extracting gtk2
> --->  Configuring gtk2
> --->  Building gtk2 with target all
> --->  Staging gtk2 into destroot
> --->  Installing gtk2 2.12.1_0+quartz
> --->  Activating gtk2 2.12.1_0+quartz
> --->  Cleaning gtk2
>
> All looks good to this point.  Except, this is the error log, and  
> the GUI has no text in it!  Aaarrgh!
>
> g5:/opt/local/bin] jess% /opt/local/bin/wireshark
> Sun Dec  2 11:11:13 g5.local wireshark[61786] <Error>:  
> CGBitmapContextGetBitsPerPixel: invalid context
> Sun Dec  2 11:11:13 g5.local wireshark[61786] <Error>:  
> CGBitmapContextGetBitsPerPixel: invalid context
> Sun Dec  2 11:11:14 g5.local wireshark[61786] <Error>:  
> CGBitmapContextGetBitsPerPixel: invalid context
> 2007-12-02 11:11:14.015 wireshark[61786:807] ***  
> _NSAutoreleaseNoPool(): Object 0x337d290 of class  
> NSConcreteMutableData autoreleased with no pool in place - just  
> leaking
> Stack: (0x94a61178 0x9498f0f8 0x925bf9e8 0x925bec98 0x925bd200  
> 0x925b9700 0x8b4450 0x8b44a4 0x6b5bd4 0x2e80964 0x2e9581c 0x2e96b6c  
> 0x2e97000 0x4a7494 0x873b14 0x30f9c90 0x30fe834 0x30fed94 0x54e7a4  
> 0x14e54 0x1506c 0x48208 0x2164)
> Sun Dec  2 11:11:14 g5.local wireshark[61786] <Error>:  
> CGBitmapContextGetBitsPerPixel: invalid context
> Sun Dec  2 11:11:14 g5.local wireshark[61786] <Error>:  
> CGBitmapContextGetBitsPerPixel: invalid context
> Sun Dec  2 11:11:14 g5.local wireshark[61786] <Error>:  
> CGBitmapContextGetBitsPerPixel: invalid context
> Sun Dec  2 11:11:14 g5.local wireshark[61786] <Error>:  
> CGBitmapContextGetBitsPerPixel: invalid context
>
> and those CGBitmap errors continue ad infinitum...  The application  
> looks like this:
>
> <wireshark.tiff>
>
> and this:
>
> <wireshark2.tiff>
>
>
> I think I'm close to getting this working, but sure are running  
> into a lot of problems along the way...
>
> Does anyone have any ideas how to proceed from here?
>
> Thank you.
>
> Jesse
>
>
>
>
> On Dec 1, 2007, at 10:32 PM, Kok-Yong Tan wrote:
>
>>
>> On Dec 1, 2007, at 15:25, Jesse Ohlsson wrote:
>>
>>> Hello,
>>>
>>> Trying to get wireshark installed, and it looked good until the  
>>> install script got to the gtk2 installation.
>>>
>>> (G5 powerpc, OS X 10.5.1, MacPorts 1.520)
>>>
>>> Here's the install output:
>>
>> <snip>
>>
>>> --->  Fetching gtk2
>>> Error: Target org.macports.fetch returned:
>>> You must install gtk2 with either the +quartz or +x11 variant  
>>> specified.
>>>
>>> Error: The following dependencies failed to build: gtk2 libpcap  
>>> openssl
>>> Error: Status 1 encountered during processing.
>>>
>>>
>>> Does anyone know what to do next?
>>
>>
>> Try this in order (I bumped into this same issue and did the  
>> following):
>>
>> sudo port -Rv install gtk2 +x11
>> sudo port -Rv install libpcap
>> sudo port -Rv install openssl
>> sudo port -Rv install wireshark
>>
>> I read in a discussion thread dated in March 2007 while Googling  
>> for the search terms "gtk2 quartz" that the quartz variant was  
>> unusable at that time.  So, since Wireshark has an X11 front-end,  
>> I figured I might as well go with the x11 variant of gtk2...   
>> Seems to work for me (I now have a seemingly functional Wireshark)  
>> although I'm still on Tiger (10.4.11).  YMMV.
>> --
>> Reality Artisans, Inc.            #   Network Wrangling and System  
>> Delousing
>> P.O. Box 565, Gracie Station      #   Apple Certified Help Desk  
>> Specialist
>> New York, NY 10028-0019           #   Apple Consultants Network  
>> member
>> <http://www.realityartisans.com>  #   Apple Developer Connection  
>> member
>> (212) 369-4876 (Voice)            #   (212) 860-4325 (Fax)
>> PGP Fingerprint:  77B3 D1E9 D24B 4FA9 9606  6C8D 62E4 2E4A 6FDD 9FD5
>>
>>
>>
>>
>> _______________________________________________
>> macports-users mailing list
>> macports-users at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo/macports-users
>

--
Reality Artisans, Inc.            #   Network Wrangling and System  
Delousing
P.O. Box 565, Gracie Station      #   Apple Certified Help Desk  
Specialist
New York, NY 10028-0019           #   Apple Consultants Network member
<http://www.realityartisans.com>  #   Apple Developer Connection member
(212) 369-4876 (Voice)            #   (212) 860-4325 (Fax)
PGP Fingerprint:  77B3 D1E9 D24B 4FA9 9606  6C8D 62E4 2E4A 6FDD 9FD5




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20071202/09db36ce/attachment-0001.html


More information about the macports-users mailing list