I wanted to start using python bindings for Selenium web apps
testing server..., but their source includes Linux library
only.

So I'm trying to build it on OpenBSD. Anybody would like to
give a hand?

The port Makefile is here:

    
https://github.com/jirib/openbsd-mystuff/blob/master/devel/py-selenium/Makefile

jirib

cd /data/pobj/py-selenium-2.28.0/selenium-2.28.0 &&  cc -shared -fPIC -O2 -pipe 
 /data/pobj/py-selenium-2.28.0/selenium-2.28.0/x_ignore_nofocus.c  
-I/usr/local/include/libelf -L/usr/local/lib  -L/usr/X11R6/lib 
-I/usr/X11R6/include x_ignore_nofocus.c  -lelf
In file included from 
/data/pobj/py-selenium-2.28.0/selenium-2.28.0/x_ignore_nofocus.c:13:
/usr/local/include/libelf/libelf.h:31:28: error: libelf/sys_elf.h: No such file 
or directory
In file included from 
/data/pobj/py-selenium-2.28.0/selenium-2.28.0/x_ignore_nofocus.c:13:
/usr/local/include/libelf/libelf.h:197: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '*' token
/usr/local/include/libelf/libelf.h:199: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '*' token
/usr/local/include/libelf/libelf.h:201: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '*' token
/usr/local/include/libelf/libelf.h:206: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '*' token
/usr/local/include/libelf/libelf.h:207: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '*' token
/data/pobj/py-selenium-2.28.0/selenium-2.28.0/x_ignore_nofocus.c: In function 
'is_library_for_architecture':
/data/pobj/py-selenium-2.28.0/selenium-2.28.0/x_ignore_nofocus.c:521: error: 
'Elf32_Ehdr' undeclared (first use in this function)
/data/pobj/py-selenium-2.28.0/selenium-2.28.0/x_ignore_nofocus.c:521: error: 
(Each undeclared identifier is reported only once
/data/pobj/py-selenium-2.28.0/selenium-2.28.0/x_ignore_nofocus.c:521: error: 
for each function it appears in.)
/data/pobj/py-selenium-2.28.0/selenium-2.28.0/x_ignore_nofocus.c:521: error: 
expected ';' before 'elf32_header'
/data/pobj/py-selenium-2.28.0/selenium-2.28.0/x_ignore_nofocus.c:522: error: 
'elf32_header' undeclared (first use in this function)
/data/pobj/py-selenium-2.28.0/selenium-2.28.0/x_ignore_nofocus.c:533: error: 
'ELFMAG' undeclared (first use in this function)
/data/pobj/py-selenium-2.28.0/selenium-2.28.0/x_ignore_nofocus.c:534: error: 
'ET_DYN' undeclared (first use in this function)
/data/pobj/py-selenium-2.28.0/selenium-2.28.0/x_ignore_nofocus.c: In function 
'get_xlib_handle':
/data/pobj/py-selenium-2.28.0/selenium-2.28.0/x_ignore_nofocus.c:575: error: 
'EM_386' undeclared (first use in this function)
/data/pobj/py-selenium-2.28.0/selenium-2.28.0/x_ignore_nofocus.c:577: error: 
'EM_X86_64' undeclared (first use in this function)
In file included from x_ignore_nofocus.c:13:
/usr/local/include/libelf/libelf.h:31:28: error: libelf/sys_elf.h: No such file 
or directory
In file included from x_ignore_nofocus.c:13:
/usr/local/include/libelf/libelf.h:197: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '*' token
/usr/local/include/libelf/libelf.h:199: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '*' token
/usr/local/include/libelf/libelf.h:201: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '*' token
/usr/local/include/libelf/libelf.h:206: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '*' token
/usr/local/include/libelf/libelf.h:207: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '*' token
x_ignore_nofocus.c: In function 'is_library_for_architecture':
x_ignore_nofocus.c:521: error: 'Elf32_Ehdr' undeclared (first use in this 
function)
x_ignore_nofocus.c:521: error: (Each undeclared identifier is reported only once
x_ignore_nofocus.c:521: error: for each function it appears in.)
x_ignore_nofocus.c:521: error: expected ';' before 'elf32_header'
x_ignore_nofocus.c:522: error: 'elf32_header' undeclared (first use in this 
function)
x_ignore_nofocus.c:533: error: 'ELFMAG' undeclared (first use in this function)
x_ignore_nofocus.c:534: error: 'ET_DYN' undeclared (first use in this function)
x_ignore_nofocus.c: In function 'get_xlib_handle':
x_ignore_nofocus.c:575: error: 'EM_386' undeclared (first use in this function)
x_ignore_nofocus.c:577: error: 'EM_X86_64' undeclared (first use in this 
function)

Reply via email to