Hello,
You can find a FAQ about this problem at the following URL:
http://support.wolfram.com/MathLink/Linux/RedHat6.html
The problem occurs with functions which use stdin, stderr, and stdout
that expect an earlier version of glibc. Any time that MathLink needs
to print out something using printf or a related function it will crash
due to the changes in the shared library.
Two solutions are provided, but there are others.
3) provide all of the necessary information on the command line. This
way MathLink doesn't have to print out any dialogs to get more
inforation.
4) install the previous glibc. Probably
However, I sugguest sticking to the first two.
That Should get you using MathLink.
Thanks,
Tom Hildrich
MathLink Developer
Wolfram Research, Inc.
In article <8domf0$jng at smc.vnet.net>, raholcom at unity.ncsu.edu (Richard
Allan Holcombe) wrote:
> I would like to use mathlink. I downloaded the DeveloperKit, and the
> makefile
> successfully compiled the example programs, but when I run the programs,
> they crash. I am running mathematica 3.0 for students, on RedHat6.1
> Linux
> I have the latest mathlink.h, mathML.a files, and the
> PrebuiltExamples work fine. When run through gdb I get:
> (gdb) run
> Starting program:
> /home/raholcom/mma/AddOns/MathLink/DevelopersKits/Linux/MathLinkExamples/r
> everse
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x4008cb57 in __uflow (fp=0x80783c8) at genops.c:328
> 328 genops.c: No such file or directory.
> (gdb) where
> #0 0x4008cb57 in __uflow (fp=0x80783c8) at genops.c:328
> #1 0x40088e65 in _IO_getline_info (fp=0x80783c8, buf=0xbffff874 "",
> n=254,
> delim=10, extract_delim=1, eof=0x0) at iogetline.c:67
> #2 0x40088e16 in _IO_getline (fp=0x80783c8, buf=0xbffff874 "", n=254,
> delim=10, extract_delim=1) at iogetline.c:39
> #3 0x40088610 in _IO_fgets (buf=0xbffff874 "", n=255, fp=0x80783c8)
> at iofgets.c:48
> #4 0x8069df1 in MLRequest_unix ()
> #5 0x804d05d in default_request_argv ()
> #6 0x804ce96 in MLRequestArgv ()
> #7 0x804bd1f in mlopen_argv ()
> #8 0x804bbe2 in MLOpenArgv ()
> #9 0x804a6d7 in _MLMain ()
> #10 0x804a878 in MLMain ()
> #11 0x804a044 in main ()
> #12 0x4004f1eb in __libc_start_main (main=0x804a034 <main>, argc=1,
> argv=0xbffffa74, init=0x8049b20 <_init>, fini=0x80761bc <_fini>,
> rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffffa6c)
> at ../sysdeps/generic/libc-start.c:90
>
>
> Does anyone know how to fix this?
> Thanks.