gplc is outputting a lot of errors



Hello!

I was writing this short program:

hej(a,b).
hej(b,a).


now I wanted to try out the gprolog compiler called gplc.

It produced a lot of text:

/home/anli> gplc test.pl
/usr/lib/gprolog-1.2.16/lib/libbips_pl.a(atom_c.o)(.text+0x1136): In function `Lower_Upper_2':
: undefined reference to `__ctype_toupper'
/usr/lib/gprolog-1.2.16/lib/libbips_pl.a(atom_c.o)(.text+0x1177): In function `Lower_Upper_2':
: undefined reference to `__ctype_tolower'
/usr/lib/gprolog-1.2.16/lib/libbips_pl.a(le_interf_c.o)(.text+0x7b): In function `Add_Linedit_Completion_1':
: undefined reference to `__ctype_b'
/usr/lib/gprolog-1.2.16/lib/libbips_pl.a(pred_supp.o)(.text+0xc4): In function `Father_Pred_Of_Aux':
: undefined reference to `__ctype_b'
/usr/lib/gprolog-1.2.16/lib/libbips_pl.a(pred_supp.o)(.text+0x170): In function `Detect_If_Aux_Name':
: undefined reference to `__ctype_b'
/usr/lib/gprolog-1.2.16/lib/libbips_pl.a(parse_supp.o)(.text+0x4c6): In function `Parse_Term':
: undefined reference to `__ctype_b'
/usr/lib/gprolog-1.2.16/lib/libbips_pl.a(write_supp.o)(.text+0x50f): In function `Show_Atom':
: undefined reference to `__ctype_b'
/usr/lib/gprolog-1.2.16/lib/libbips_pl.a(scan_supp.o)(.text+0xa86): more undefined references to `__ctype_b' follow
/usr/lib/gprolog-1.2.16/lib/liblinedit.a(linedit.o)(.text+0x10f6): In function `LE_FGets':
: undefined reference to `__ctype_tolower'
/usr/lib/gprolog-1.2.16/lib/liblinedit.a(linedit.o)(.text+0x1225): In function `LE_FGets':
: undefined reference to `__ctype_toupper'
/usr/lib/gprolog-1.2.16/lib/liblinedit.a(linedit.o)(.text+0x1cee): In function `LE_Get_Key':
: undefined reference to `__ctype_b'
/usr/lib/gprolog-1.2.16/lib/liblinedit.a(terminal.o)(.text+0x250): In function `Parse_Env_Var':
: undefined reference to `__ctype_b'
/usr/lib/gprolog-1.2.16/lib/liblinedit.a(terminal.o)(.text+0x602): In function `LE_Get_Char':
: undefined reference to `__ctype_b'
collect2: ld returned 1 exit status
compilation failed
/home/anli>

....but no executable file.
Is the version of libc mismatching or did I miss to do something in my program/compilation?

/Anders


.