2010-12-20 04:32:12     cannot find -ldl

Document created by Aaronwu Employee on Aug 25, 2013
Version 1Show Document
  • View in full screen mode

2010-12-20 04:32:12     cannot find -ldl

zhang zhihua (CHINA)

Message: 96878   

 

Hi,

 

    I want to use the openssl to do something,but when I make my program,it found that:

 

"/home/opt/uClinux/bfin-uclinux/bin/../lib/gcc/bfin-uclinux/4.1.2/../../../../bfin-uclinux/bin/ld.real: cannot find -ldl collect2: ld returned 1 exit status"

 

 

my Makefile like this:

 

# Makefile

 

CC = bfin-uclinux-gcc

 

CFLAGS = -g -Iinclude

LIBS = lib/libcrypto.a -ldl

 

%.o:%.c

$(CC) $(CFLAGS) -o $@ -c $<

all:

$(CC) $(CFLAGS) -o test101 test101.c $(LIBS)

 

clean:

rm -f *.o ecctest test101

TranslateQuoteReplyEditDelete

 

 

2010-12-20 04:35:10     Re: cannot find -ldl

Mike Frysinger (UNITED STATES)

Message: 96879   

 

FLAT cannot support dlopen.  if you want that, use FDPIC.

QuoteReplyEditDelete

 

 

2010-12-20 04:35:29     Re: cannot find -ldl

zhang zhihua (CHINA)

Message: 96880   

 

My board is BF518-EZBRD,kernel is linux-2.6.x;

TranslateQuoteReplyEditDelete

 

 

2010-12-20 19:56:52     Re: cannot find -ldl

zhang zhihua (CHINA)

Message: 96888   

 

Hi,Mike,

 

      I have to creat my libraries to a FDPIC format?  or use the bfin-linux-uclibc-gcc to make my objects?

TranslateQuoteReplyEditDelete

 

 

2010-12-20 20:10:22     Re: cannot find -ldl

Mike Frysinger (UNITED STATES)

Message: 96889   

 

yes

Attachments

    Outcomes