Hello,
I have come up against a weird problem with NETWORK_STREAM_SOCKET. It fails on
c_bind with a segmentation fault during the creation procedure
"make_server_by_port". I built the ES reference example to see if it was a
firewall problem or illegal port number or some such, but the reference example
works fine.
To try and locate the problem I gradually built up the reference project to
match my program under development. Turning on multi-threading, adding different
libraries etc. Eventually I found that the socket library doesn't like being
linked in with the same exe as the VTD-XML library. If I have an unattached
reference to a VTD-XML wrapper class (without any instantiation or calls being
made), the example fails. If I comment out the reference and refreeze the
project, it all works fine.
I thought perhaps it might be an incompatible compiler flag so I rebuilt the
VTD-XML library using the same compiler defines and flags as the estudio
makefile.
-O0 -pipe -fPIC -DEIF_THREADS -DEIF_LINUXTHREADS -DISE_GC
Still the same problem.
The VTD-XML C source can be downloaded here:
http://sourceforge.net/projects/vtd-xml/files/vtd-xml/ximpleware_2.7/ximpleware_\
2.7_c.zip/download
Development environment:
EiffelStudio 6 (6.3.0.0 GPL Edition - linux-x86-64)
gcc 4.3.2
Ubuntu 8.10
It would be a pity if I can't use this library as the performance is so fast and
I put a lot of effort into making the wrapper. Any ideas please?
Regards
Finnian