[erlang-bugs] R16A : 2 issues in WX driver compilation

PAILLEAU Eric <>
Tue Feb 19 22:08:08 CET 2013


Hello Patrick and Dan,

I uninstalled everything related to wx of my system with rpm,
then I removed all manually compiled wx 2.9 libraries.
Then I installed again wx 2.8.10 packages of my system with rpm.

#) configure, make and install for R15B03 is OK :

====================================================================================
checking GL/gl.h usability... yes

checking GL/gl.h presence... yes

checking for GL/gl.h... yes

checking for debug build of wxWidgets... checking for wx-config...
/usr/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=yes)... no

checking for standard build of wxWidgets... checking for wx-config...
(cached) /usr/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=no)... yes
(version 2.8.10)
checking for wxWidgets static library... no

checking if wxwidgets have opengl support... yes

checking for GLintptr... yes

checking for GLintptrARB... yes

checking for GLchar... yes

checking for GLcharARB... yes

checking for GLhalfARB... yes

checking for GLint64EXT... yes

checking GLU Callbacks uses Tiger Style... no

checking for wx/stc/stc.h... yes

checking if we can link wxwidgets programs... yes
====================================================================================


But I encountered a little issue when launching observer :
=ERROR REPORT==== 19-Feb-2013::21:43:20 ===
ERROR: Could not find 'wxe_driver.so' in:
/usr/local/lib/erlang/lib/wx-1.0/priv

certainly due to my former install of R16A (without wx) there was still
an empty wx-1.0 directory and then erl try to use the most
highest driver version.

/usr/local/lib/erlang/lib/wx-0.99.1/priv/wxe_driver.so
/usr/local/lib/erlang/lib/wx-0.99.2/priv/wxe_driver.so
/usr/local/lib/erlang/lib/wx-1.0/priv/                  <-- empty

I suppose that install *should not create wx directories when wx is not
enabled*, or erl to use the highest non empty priv directory of wx...

By removing this directory everything fine.
observer works.


#) Now R16A :
WX is OK but compilation fails on :
obj/i686-pc-linux-gnu/opt/smp/unix_efile.o: In function `efile_fallocate':
/home/eric/otp_src_R16A/erts/emulator/drivers/unix/unix_efile.c:1013:
undefined reference to `fallocate64'

As I told before my libc does not export fallocate64,
see my former mail on such subject.

===================================================================
checking GL/gl.h usability... yes

checking GL/gl.h presence... yes

checking for GL/gl.h... yes

checking GL/glu.h usability... yes

checking GL/glu.h presence... yes

checking for GL/glu.h... yes

checking for debug build of wxWidgets... checking for wx-config...
/usr/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=yes)... no

checking for standard build of wxWidgets... checking for wx-config...
(cached) /usr/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=no)... yes
(version 2.8.10)
checking for wxWidgets static library... no

checking if wxwidgets have opengl support... yes

checking for GLintptr... yes

checking for GLintptrARB... yes

checking for GLchar... yes

checking for GLcharARB... yes

checking for GLhalfARB... yes

checking for GLint64EXT... yes

checking GLU Callbacks uses Tiger Style... no                  checking
GL/gl.h usability... yes

checking GL/gl.h presence... yes

checking for GL/gl.h... yes

checking GL/glu.h usability... yes

checking GL/glu.h presence... yes

checking for GL/glu.h... yes

checking for debug build of wxWidgets... checking for wx-config...
/usr/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=yes)... no

checking for standard build of wxWidgets... checking for wx-config...
(cached) /usr/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=no)... yes
(version 2.8.10)
checking for wxWidgets static library... no

checking if wxwidgets have opengl support... yes

checking for GLintptr... yes

checking for GLintptrARB... yes

checking for GLchar... yes

checking for GLcharARB... yes

checking for GLhalfARB... yes

checking for GLint64EXT... yes

checking GLU Callbacks uses Tiger Style... no

checking for wx/stc/stc.h... yes

checking if we can link wxwidgets programs... yes

checking for wx/stc/stc.h... yes

checking if we can link wxwidgets programs... yes
===============================================================

now R16A with :
export CPPFLAGS=-D_FILE_OFFSET_BITS=32
in order to use fallocate32 ...
=================================================================
checking GL/gl.h usability... yes

checking GL/gl.h presence... yes

checking for GL/gl.h... yes

checking GL/glu.h usability... yes

checking GL/glu.h presence... yes

checking for GL/glu.h... yes

checking for debug build of wxWidgets... checking for wx-config...
/usr/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=yes)... no

checking for standard build of wxWidgets... checking for wx-config...
(cached) /usr/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=no)... yes
(version 2.8.10)
checking for wxWidgets static library... no

checking if wxwidgets have opengl support... no

checking for GLintptr... yes

checking for GLintptrARB... yes

checking for GLchar... yes

checking for GLcharARB... yes

checking for GLhalfARB... yes

checking for GLint64EXT... yes

checking GLU Callbacks uses Tiger Style... no

checking for wx/stc/stc.h... no

configure: WARNING: Can not find wx/stc/stc.h  -g -Wall -O2 -fPIC
-fomit-frame-pointer -fno-strict-aliasing -g -O2
-Wno-deprecated-declarations -D_FILE_OFFSET_BITS=32 -D_GNU_SOURCE
-D_THREAD_SAFE -D_REENTRANT -I/usr/lib/wx/include/
-I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread

checking if we can link wxwidgets programs... no

configure: WARNING: Can not link wx program are all developer packages
installed?
=================================================================
The whole R16A compile, except WX...

So the problem is my _FILE_OFFSET_BITS=32 overriding ! ...

Maybe you can understand where the problem is and do a fix
in order to let use of 32 bit offset if needed .

Best regards.




More information about the erlang-bugs mailing list