[mercury-users] my problems with parsing.mkEncoding

Julien Fischer juliensf at cs.mu.OZ.AU
Thu Nov 3 18:46:53 AEDT 2005


On Thu, 3 Nov 2005, Tudor Holton wrote:

> I did workaround #1, added -static and my test case compiles! :-)
>
> However, when I do it to my real code and do a realclean, depends, and
> mmake, I get the following error on compiling:
> %%%%%%%%%
> ml --make-shared-lib --grade asm_fast.gc             -static
> -R/home/pgrad/taholt/mercury/extras/lib/mercury/lib/asm_fast.gc
> -R/home/pgrad/taholt/mercury/extras/lib/mercury/lib
> -L/home/pgrad/taholt/mercury/extras/lib/mercury/lib/asm_fast.gc
> -L/home/pgrad/taholt/mercury/extras/lib/mercury/lib
> --init-file-directory
> /home/pgrad/taholt/mercury/extras/lib/mercury/modules --     -o
> libxml_easy.so \        xml_easy.pic_o \
>             -lxml
> ld: warning: option -d appears more than once, first setting taken
> ld: fatal: option -dn and -G are incompatible
> ld: fatal: Flags processing errors
> collect2: ld returned 1 exit status
> gmake: *** [libxml_easy.so] Error 1
> %%%%%%%%%%
>
Ah, I meant use MLFLAGS=-static for your program, not the XML library
(which should have both the shared and static versions built).

It occurred to me that another reason for the original problem, assuming
that you are still using lister, is that it uses Solaris 9 and the
Mercury you've been using was configured for Solaris 8.

Cheers,
Julien.
--------------------------------------------------------------------------
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