2008-08-24 05:13:04     error: dlfcn.h: No such file or directory (BF537Stamp, uClinux-dist-2008R1.5-RC3.)

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

2008-08-24 05:13:04     error: dlfcn.h: No such file or directory (BF537Stamp, uClinux-dist-2008R1.5-RC3.)

dee lock (SINGAPORE)

Message: 60947   

 

Hi

 

I am trying to compile a program that requires dlfcn.h (BF537Stamp, uClinux-dist-2008R1.5-RC3.)

 

However, Make reports an Error:

 

bfin-uclinux-gcc  -DPD -DUNIX -DSTATIC -DINSTALL_PREFIX=\"/usr/\" -DFIXEDPOINT -DUSEAPI_OSS -DUSEAPI_ESD -DDL_OPEN  -c -o ../obj/s_loader.o  s_loader.c

s_loader.c:6:19: error: dlfcn.h: No such file or directory

make[2]: *** [s_loader.o] Error 1

make[2]: Leaving directory `/home/dee/Desktop/PDa/src'

make[1]: *** [static] Error 2

make[1]: Leaving directory `/home/dee/Desktop/PDa/src'

make: *** [blackfin] Error 2

[dee@localhost src]$ which bfin-linux-uclibc-gcc

/opt/uClinux/bfin-linux-uclibc/bin/bfin-linux-uclibc-gcc

 

 

My makefile specifies bfin-linux-uclibc-gcc which i understand is required to produce FDPIC ELF type executable:

 

-----(FROM MAKEFILE)

 

extra_DEFINES = $(DEFINES) -DFIXEDPOINT

extra_INCLUDES = -I../src

extra_LDFLAGS = -shared

 

# BLACKFIN toolchain

 

ifeq ($(CC), bfin-linux-uclibc-gcc)

pd_LIBS = -lm -lpthread

pd_DEFINES += -D__linux__

extra_DEFINES += -D__linux__

endif

---

 

any ideas on why dlfcn.h cant be located?

 

cheers,

 

-damien.

QuoteReplyEditDelete

 

 

2008-08-24 21:27:15     Re: error: dlfcn.h: No such file or directory (BF537Stamp, uClinux-dist-2008R1.5-RC3.)

Robin Getz (UNITED STATES)

Message: 60958   

 

Damien:

 

The bfin-uclinux-xxx toolchain does not support dynamic loading of shared libraries - so the header that is needed to do this is not included in the toolchain. Since the bfin-linux-uclibc-xxx toolchain does support run-time dynamic loading - it is included.

 

Make sense?

 

-Robin

QuoteReplyEditDelete

 

 

2008-09-15 03:23:13     Re: error: dlfcn.h: No such file or directory (BF537Stamp, uClinux-dist-2008R1.5-RC3.)

Alexander Yustus (RUSSIAN FEDERATION)

Message: 62149    Robin: does it mean that bfin-uclinux-xxx toolchain has dropped dynamic linking support since 06r1-4 release which contains dlfcn.h header? Alexander.

QuoteReplyEditDelete

 

 

2008-09-15 06:09:06     Re: error: dlfcn.h: No such file or directory (BF537Stamp, uClinux-dist-2008R1.5-RC3.)

Bernd Schmidt (GERMANY)

Message: 62165   

 

Use the bfin-linux-uclibc toolchain.  Only the FD-PIC binary format can support dynamic linking.  I don't remember whether the two had already been separated into different toolchains in 06r1, but I'm guessing not.

Attachments

    Outcomes