[Ecls-list] re: problem with shared libraries

franco smith 1919 at keromail.com
Sun Jul 14 03:38:02 UTC 2002


yo
i send this message again, as it seems it hasn't arrived to the mailing list (sorry if you'll get it twice)

i downloaded the last cvs version, and tried again to compile the different test programs.

when trying to compile sadmain.c (the one using libdl) i get 2 different outputs:
if i compile it with
       gcc sadmain.c -ldl
i get:
       ./a.out
       hello, i start booting
       end boot
if i compile it with
       gcc -rdynamic sadmain.c -ldl
i get:
       ./a.out
       hello, i start booting
       Segmentation fault (core dumped)

when trying to compile sadmain2.c  (the one with compile time linking):
       gcc -L. sadmain2.c -lsad
       ./a.out
       hello, i start booting
       Segmentation fault (core dumped)

sadone.c still compile fine.

i don't really care to get sadmain2.c working,
but i have to get sadmain.c compiled with the -rdynamic flag to work, as perl has to be compiled with that flag. 
however, i can't find any explanation to this segfault. if you have any suggestions about how i could find out the solution to that, or if you have the solution :), i'd appreciate it
thanks
-- 

Powered by Outblaze




More information about the ecl-devel mailing list