[mercury-users] Cannot compile hello world (glibc, suse 9.1)

Maurizio Colucci seguso.forever at tin.it
Wed Jul 14 16:29:25 AEST 2004


Hello,

I am on suse 9.1 with mercury 0.11, installed from source the usual way.

I am trying to compile a trivial program :

> 
> :- module main.
> 
> 
> :- interface.
> 
> :- import_module io.
> 
> 
> :- pred main(io__state, io__state).
> :- mode main(di, uo) is det.
> 
> :- implementation.
> 
> 
> main -->
> 	io__print("ciao"). 

and I am getting these errors:

> cd /dat/pub/src/by-mau/tests/mercury/
> mmc main.m
> main_init.o(.text+0x133): In function `mercury_init':
> : undefined reference to `<predicate 'main'/2 mode 0>'
> /usr/local/mercury-0.11.0/lib/mercury/lib/asm_fast.gc/i686-pc-linux-gnu/libmer_std.a(lexer.o)(.text+0xcd44): In function `<predicate 'lexer:get_float_decimals'/4 mode 0>':
> : undefined reference to `__ctype_b'
> /usr/local/mercury-0.11.0/lib/mercury/lib/asm_fast.gc/i686-pc-linux-gnu/libmer_std.a(lexer.o)(.text+0xcf95): In function `<predicate 'lexer:get_float_decimals'/4 mode 0>':
> : undefined reference to `__ctype_b'
> /usr/local/mercury-0.11.0/lib/mercury/lib/asm_fast.gc/i686-pc-linux-gnu/libmer_std.a(lexer.o)(.text+0xd231): In function `<predicate 'lexer:string_get_float_decimals'/7 mode 0>':
> : undefined reference to `__ctype_b'
> /usr/local/mercury-0.11.0/lib/mercury/lib/asm_fast.gc/i686-pc-linux-gnu/libmer_std.a(lexer.o)(.text+0xd35d): In function `<predicate 'lexer:string_get_float_decimals'/7 mode 0>':
> : undefined reference to `__ctype_b'
> /usr/local/mercury-0.11.0/lib/mercury/lib/asm_fast.gc/i686-pc-linux-gnu/libmer_std.a(lexer.o)(.text+0xd644): In function `<predicate 'lexer:get_float_exponent'/4 mode 0>':
> : undefined reference to `__ctype_b'
> /usr/local/mercury-0.11.0/lib/mercury/lib/asm_fast.gc/i686-pc-linux-gnu/libmer_std.a(lexer.o)(.text+0xddbe): more undefined references to `__ctype_b' follow
> collect2: ld returned 1 exit status
> 

Is this a problem with glibc? Is it solvable?

Thanks 

Maurizio
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list