[Ecls-list] re: problems with shared libraries
franco smith
1919 at keromail.com
Fri Jul 12 09:03:08 UTC 2002
yo
i downloaded the lastest cvs source code.
refering to the sadmain.c (the one using dlopen())
i get 2 different behaviour with those 2 different compile lines:
1. gcc sadmain.c -ldl
--> ./a.out
hello, i start booting
end boot
2. gcc -rdynamic sadmain.c -ldl
--> ./a.out
hello, i start booting
Segmentation fault (core dumped)
refering to sadmain2.c (compile time linking):
gcc -L. sadmain2c -lsad
--> ./a.out
hello, i start booting
Segmentation fault (core dumped)
also, i tried to compile them on 3 different linux box, and they all had the same behaviour
i don't really care to get the sadmain2.c working,
but i need the sadmain.c compiled with the -rdynamic flag to work, because perl has to be compiled with this flag in order to use dynamically linked modules, and i think that's why i get my perl module to segfault while calling cl_boot :/
anyway, if you can help, thank you :)
--
Powered by Outblaze
More information about the ecl-devel
mailing list