I can reproduce it on my Linux machine. It seems to me that the symbol Zlist
is clashing with another symbol of the same name. If I change the name of
the function to zlist (small z) or anything else, then it works fine. Also,
if I declare Zlist as a static function, ie,
static int Zlist(int x);
then that also works fine.
But I can't work out what the function Zlist really is or where else it may be
defined....
On Tuesday 02 July 2002 7:11 pm, Kostas Oikonomou wrote:
> Can anyone help with this? Executing the following program "lt" causes a
> bus error.
>
> This is with gcc 3.1, Icon/Unicon 9.4.1, on Solaris 8 Sparc.
> Thanks.
>
>
> Kostas
>
> _______________________________________
> Icon
> _______________________________________
> procedure main()
> local L
> ctoil := loadfunc("./ctoil.so", "CtoIlist")
> L := ctoil()
> end
>
> _______________________________________
> C
> _______________________________________
>
> typedef long word;
> typedef struct {word dword, vword;} descriptor;
>
> int CtoIlist(int argc, descriptor argv[])
> {
> printf("Calling Zlist...\n");
> Zlist(5);
> printf("Back from Zlist!\n");
> return 0;
> }
>
> int Zlist(int x)
> {
> printf("In Zlist!\n");
> return;
> }
>
> _______________________________________
> Makefile:
> _______________________________________
> %.o : %.c
> gcc -c -fpic $<
>
> ctoil.so : CtoIlist.o
> gcc -shared -fpic -o $@ $^
>
> lt : lt.icn ctoil.so
> /opt/icon/bin/icont $@
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Unicon-group mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/unicon-group
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group