[En-Nut-Discussion] 4.0.2 compile problem with application

Peter Sodermanns peter.sodermanns at aixcon.de
Thu Feb 9 15:06:24 CET 2006


Hi Harald,

my test programm is running, but with my real application I still got a 
problem. I'm using the pnut file system for my ftp server, but the 
linker does not like it:

in my Makefile:
SRCS =  $(PROJ).c $(WEBFILE) wr_comm.c cgis.c config.c lcd.c phone.c 
rtc.c analog.c D:\Work\ethernut-4.0.2\nut\c\string\strtok.c 
D:\Work\ethernut-4.0.2\nut\fs\pnutfs.c
OBJS =  $(SRCS:.c=.o)
LIBS =  $(LIBDIR)/nutinit.o -lnutos -lnutarch -lnutdev -lnutfs -lnutcrt 
-lnutc -lnutpro -lnutnet
TARG =  $(PROJ).hex

I took the files strtok.c/h and pnutfs.h from V 3.9.1, because I didn't 
find them in 4.0.2

make result:
WebMon.o(.text+0x82c): In function `saveIntoFile':
: undefined reference to `PnutFileOpen'
WebMon.o(.text+0x850): In function `saveIntoFile':
: undefined reference to `PnutFileOpen'
WebMon.o(.text+0x892): In function `saveIntoFile':
: undefined reference to `PnutFileClose'
WebMon.o(.text+0x8c0): In function `saveIntoFile':
: undefined reference to `PnutDelete'
WebMon.o(.text+0x8ec): In function `saveIntoFile':
: undefined reference to `PnutFileOpen'
WebMon.o(.text+0x8f8): In function `saveIntoFile':
: undefined reference to `PnutFileWrite'
WebMon.o(.text+0x928): In function `saveIntoFile':
: undefined reference to `PnutFileClose'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutpro.a(ftpd.o)(.text+0x4da): In 
function `NutFtpProcessCwd':
: undefined reference to `stat'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutpro.a(ftpd.o)(.text+0x57e): In 
function `NutFtpProcessDelete':
: undefined reference to `unlink'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutpro.a(ftpd.o)(.text+0x6c2): In 
function `NutFtpTransferFile':
: undefined reference to `unlink'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutpro.a(ftpd.o)(.text+0x748): In 
function `NutFtpTransferDirectory':
: undefined reference to `opendir'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutpro.a(ftpd.o)(.text+0x7ea): In 
function `NutFtpTransferDirectory':
: undefined reference to `stat'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutpro.a(ftpd.o)(.text+0x8d8): In 
function `NutFtpTransferDirectory':
: undefined reference to `readdir'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutpro.a(ftpd.o)(.text+0x8f2): In 
function `NutFtpTransferDirectory':
: undefined reference to `closedir'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutpro.a(ftpd.o)(.text+0x952): In 
function `NutFtpProcessMkd':
: undefined reference to `mkdir'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutpro.a(ftpd.o)(.text+0xbd6): In 
function `NutFtpProcessRmd':
: undefined reference to `rmdir'
D:/Work/ethernut-4.0.2/nutbld/lib\libnutpro.a(httpd.o)(.text+0x1076): In 
function `NutHttpProcessRequest':
: undefined reference to `_filelength'
make: *** [WebMon.elf] Error 1

I did not find any library that provides pnut functions.
Where am I to look?


Thanks for your patience,
                                Peter




More information about the En-Nut-Discussion mailing list