[#4244] tinytcl build problems
Submitted By: David Gravereaux
Open Date
2008-07-15 20:09:12 Close Date
2008-07-17 04:21:53
Priority:
Medium Assignee:
Mike Frysinger
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
svn
Category:
uClinux-dist applications Board:
N/A
Processor:
N/A Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
svn
App binary format:
N/A
Summary: tinytcl build problems
Details:
1) When not selecting tinytcl static libs from menuconfig, tclLoadDl.c fails to compile with:
bfin-uclinux-gcc -pipe -Wall -g -O2 -mcpu=bf537-0.2 -Wall -g -fPIC -DHAVE_TCL_LOAD -DEMBED -D__uClinux__ -I/home/davygrvy/blackfin-sources/uclinux-dist -mcpu=bf537-0.2 -c -o tclLoadDl.o tclLoadDl.c
tclLoadDl.c:16:19: error: dlfcn.h: No such file or directory
tclLoadDl.c: In function ‘TclpDlopen’:
tclLoadDl.c:75: warning: implicit declaration of function ‘dlopen’
tclLoadDl.c:75: warning: assignment makes pointer from integer without a cast
tclLoadDl.c:83: warning: assignment makes pointer from integer without a cast
tclLoadDl.c:91: warning: assignment makes pointer from integer without a cast
tclLoadDl.c:98: warning: implicit declaration of function ‘dlerror’
tclLoadDl.c: In function ‘TclpFindSymbol’:
tclLoadDl.c:130: warning: implicit declaration of function ‘dlsym’
tclLoadDl.c: In function ‘TclpUnloadFile’:
tclLoadDl.c:161: warning: implicit declaration of function ‘dlclose’
make[3]: *** [tclLoadDl.o] Error 1
2) Include path doesn't include the source root for tinytcl itself, therefore any '#include <tcl.h>' fails. Attached is a patch from: svn diff > patch.txt
Or fix the makefile.. whatever is best.
Follow-ups
--- Mike Frysinger 2008-07-15 22:02:22
if you want dynamic libraries, you need to use a file format that supports them.
that means you cant expect to build dynamic libraries in the FLAT format.
i've fixed the Makefile to always add -I. to CFLAGS since it already does so
for some configurations
--- David Gravereaux 2008-07-16 10:52:45
Thanks Mike. I'm just getting started with uClinux. If I wanted to use
loadable modules as tcl extensions to test some SPI hardware I'm working on,
what would be the right approach? Using Tcl has worked well for me in the past
on desktops.
--- David Gravereaux 2008-07-16 11:02:50
n/m found it in the dox:
docs.blackfin.uclinux.org/doku.php?id=toolchain:executable_file_formats
--- Mike Frysinger 2008-07-17 04:21:50
yeah, as that page shows (or it should), you need to use FDPIC format if you
want to use loadable modules (dlopen and such)
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
patch.txt text/plain 1153 David Gravereaux