[erlang-questions] Fwd: sl module from jungerl/CEAN

raison raison@REDACTED
Fri Mar 20 23:33:10 CET 2009


I am facing the same issue.  I took a look at the C code (sl_drv.c), and it
appears that there are some minor issues that a win32 expert could probably
fix with ease.  Unfortunately, I am not that guy.  It looks like the struct
"sl_t" relies on a "stat" field (only under Windows), while the definition
of that struct does not contain a "stat" line with a type definition.  Are
there any win32 experts out there who might know what this mysterious stat
field is all about?  There are a couple of other compile errors, which I
have included below.  Thanks in advance for any assistance.

$ mingw32-make -f Makefile.win32 
gcc -c -o sl_drv.obj sl_drv.c -I"c:/Program Files/erl5.6.5"/usr/include
-mno-cygwin -D__WIN32__
sl_drv.c: In function `do_open':
sl_drv.c:1044: error: structure has no member named `stat'
sl_drv.c:1048: error: structure has no member named `stat'
sl_drv.c: In function `sl_ready_input':
sl_drv.c:1239: error: structure has no member named `stat'
sl_drv.c:1242: error: `mask' undeclared (first use in this function)
sl_drv.c:1242: error: (Each undeclared identifier is reported only once
sl_drv.c:1242: error: for each function it appears in.)
sl_drv.c:1242: error: structure has no member named `stat'
sl_drv.c: In function `sl_ready_output':
sl_drv.c:1273: error: `n' undeclared (first use in this function)
sl_drv.c: In function `sl_ctl':
sl_drv.c:1544: error: structure has no member named `stat'
mingw32-make: *** [sl_drv.obj] Error 1

Cheers.
Kevin Raison



Kirill Zaborski wrote:
> 
>  >  > Recently I've sumbled on task of getting connection to serial port
>  >  > from Erlang. I have found sl module from jungerl (and in CEAN) which
>  >  > should do the task. But I could not compile it using  MSYS+MinGW. It
>  >  > looks like there are some bugs in source code (e.g. undeclared field
>  >  > in struct).
>  >  > Has anyone get it compiled on Windows? Or maybe author (Tony
> Rogvall)
>  >  > is on the list?
> 
> 

-- 
View this message in context: http://www.nabble.com/sl-module-from-jungerl-CEAN-tp15707101p22629655.html
Sent from the Erlang Questions mailing list archive at Nabble.com.




More information about the erlang-questions mailing list