Opened 11 years ago

Closed 11 years ago

#37190 closed defect (fixed)

install issue in py27-webkitgtk

Reported by: guillaume.bonfante@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: nodamage@…, Russell-Jones-OxPhys (Russell Jones), elelay (Eric Le Lay)
Port: webkit-gtk

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I'm working with OS X 10.6, When installing py27-webkitgtk +universal, I got the message:

:info:build In file included from /opt/local/include/webkitgtk-1.0/webkit/webkitdom.h:135,
:info:build                  from /opt/local/include/webkitgtk-1.0/webkit/webkit.h:27,
:info:build                  from ./webkit/webkit.override:29:
:info:build /opt/local/include/webkitgtk-1.0/webkit/WebKitDOMNavigator.h:81: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token

After I removed the two comments at lines 81 and 133 in /opt/local/include/webkitgtk-1.0/webkit/WebKitDOMNavigator.h the installation ended smoothly. All right.


After the complete installation, I tried

#!/usr/bin/env python  
import gtk  
import webkit  

which does not work:

emma:$ python
Python 2.7.3 (default, Nov 30 2012, 14:00:47) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
Xlib:  extension "RANDR" missing on display "/tmp/launch-IVuuun/org.x:0".
>>> import webkit
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/webkit/__init__.py", line 21, in <module>
    import webkit
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/webkit/webkit.so, 2): Symbol not found: _aglGetCurrentContext
  Referenced from: /opt/local/lib/libwebkitgtk-1.0.0.dylib
  Expected in: flat namespace
 in /opt/local/lib/libwebkitgtk-1.0.0.dylib

Any idea?

Attachments (4)

py27-webkitgtk-10.8-main.log (189.4 KB) - added by Russell-Jones-OxPhys (Russell Jones) 11 years ago.
Build log from 10.8 for py27-webkitgtk
x11-fix-missing-aglGetCurrentContext.diff (704 bytes) - added by elelay (Eric Le Lay) 11 years ago.
fix for _aglGetCurrentContext not found
x11-dont-use-native-opengl.patch (1.4 KB) - added by elelay (Eric Le Lay) 11 years ago.
X11.bin_2013-03-22-130134_minimac.crash (29.4 KB) - added by elelay (Eric Le Lay) 11 years ago.
run midori, type a few keys in google search field, click on a result

Download all attachments as: .zip

Change History (23)

comment:1 Changed 11 years ago by jmroot (Joshua Root)

Cc: nodamage@… added
Owner: changed from macports-tickets@… to elelay@…
Port: py27-webkitgtk added

Please remember to fill in the Port field and Cc the maintainers.

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:3 Changed 11 years ago by elelay (Eric Le Lay)

I can reproduce the problem but I have no idea.

I'd like to build from source both packages to see if it may be related to a mix of binary packages.

Help is welcome :-)

comment:4 Changed 11 years ago by Russell-Jones-OxPhys (Russell Jones)

Cc: russell.jones@… added

Cc Me!

Changed 11 years ago by Russell-Jones-OxPhys (Russell Jones)

Build log from 10.8 for py27-webkitgtk

comment:5 Changed 11 years ago by Russell-Jones-OxPhys (Russell Jones)

I'm getting a build failure on 10.8 with +universal and -universal (see attached log). I also tried setting configure.compiler=llvm-gcc-4.2 and a few others using the list at wiki:UsingTheRightCompiler , but none worked. Using some, e.g. macports-gcc-4.6 , the build stopped during the configure script with a message that no working compiler was available.

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 11 years ago by Russell-Jones-OxPhys (Russell Jones)

... even though the binary mentioned in the line before existed and ran from the terminal.

comment:7 in reply to:  6 Changed 11 years ago by guillaume.bonfante@…

Replying to russell.jones@…:

... even though the binary mentioned in the line before existed and ran from the terminal.

You may try to remove the two comments /* ! __LP64__ */ at line 80 and 132. I managed to complete the installation that way.

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 11 years ago by elelay (Eric Le Lay)

fix for _aglGetCurrentContext not found

comment:8 Changed 11 years ago by elelay (Eric Le Lay)

Owner: changed from elelay@… to jeremyhu@…

The _aglGetCurrentContext error is due to wrong includes in webkit-gtk itself.

To convince oneself, one can try to run midori and will get the same error.

Attached is a patch to fix that: use the X11 OpenGL backend instead of the native one. This adds the side effect that Macports *xorg-server* must be used, not Apple's bundled one.

Reassigning to Jeremy.

comment:9 Changed 11 years ago by elelay (Eric Le Lay)

Port: webkit-gtk added; py27-webkitgtk removed

comment:10 in reply to:  8 ; Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Replying to elelay@…:

This adds the side effect that Macports *xorg-server* must be used, not Apple's bundled one.

Why would you say that?

comment:11 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

And can you attach x11-dont-use-native-opengl.patch as well please?

comment:12 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Cc: elelay@… added

comment:13 Changed 11 years ago by elelay (Eric Le Lay)

yes, sorry !

Changed 11 years ago by elelay (Eric Le Lay)

comment:14 in reply to:  10 Changed 11 years ago by elelay (Eric Le Lay)

Replying to jeremyhu@…:

Replying to elelay@…:

This adds the side effect that Macports *xorg-server* must be used, not Apple's bundled one.

Why would you say that?

I got crashes at startup when running GtkLauncher after building webkit-gtk with the patch (it was opening the Apple's X11). When I run the macport's xorg-server and opened an xterm and run GtkLauncher from there, I didn't get the crash (and I could browse to a few sites with no issue). I can get you the crash logs if you want ?

comment:15 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Yes, please send me the crash logs. That probably indicates a bug in the other X11.app. I don't know if there will be a delivery vehicle for a fix, but I would like to satisfy my curiosity.

comment:16 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Changed 11 years ago by elelay (Eric Le Lay)

run midori, type a few keys in google search field, click on a result

comment:17 Changed 11 years ago by elelay (Eric Le Lay)

I hope you can make sense of it. I've done the same thing in midori run from terminal in macport's x11, getting no crash

comment:18 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Sorry for not responding sooner. The hunk in question isn't present in 2.0.4. Is this still an issue with webkit-gtk-2.0.4?

comment:19 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

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