SOLVED: atftpd doesn't build from source

Cedric cedric.dewijs at tiscali.nl
Wed Jun 6 18:37:32 UTC 2007


Hi All,

I have been busy booting my PC over network in order to install windows 2000 
on it. The guide i found here was very usefull:
http://oss.netfarm.it/guides/ris-linux.php
http://oss.netfarm.it/guides/ris-linux.pdf

In order to let atftpd cope with case insensivity and backslahses, there's a 
patch available. This meant recompiling atftpd from source. This doesn't work 
out of the box, the symbol CLK_TCK in the file stats.c must be replaced by 
CLOCKS_PER_SEC

Could you please report this upstream?
Best regards,
Cedric

root at athlon:~# apt-get update
... lots of not interresting lines
root at athlon:~# apt-get source atftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Need to get 215kB of source archives.
Get:1 http://nl.archive.ubuntu.com feisty/universe atftp 0.7.dfsg-1 (dsc) 
[631B]
Get:2 http://nl.archive.ubuntu.com feisty/universe atftp 0.7.dfsg-1 (tar) 
[187kB]
Get:3 http://nl.archive.ubuntu.com feisty/universe atftp 0.7.dfsg-1 (diff) 
[27.8kB]
Fetched 215kB in 0s (268kB/s)
gpg: Signature made Mon 02 Oct 2006 12:46:55 AM CEST using DSA key ID FD46A698
gpg: Can't check signature: public key not found
dpkg-source: extracting atftp in atftp-0.7.dfsg
dpkg-source: unpacking atftp_0.7.dfsg.orig.tar.gz
dpkg-source: applying ./atftp_0.7.dfsg-1.diff.gz
root at athlon:~# apt-get build-dep atftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root at athlon:~# cd atftp-0.7.dfsg/
root at athlon:~/atftp-0.7.dfsg# patch -p1 < atftpd-filecase.diff
patching file tftpd.c
Hunk #1 succeeded at 659 (offset 4 lines).
patching file tftpd.h
patching file tftpd_file.c
root at athlon:~/atftp-0.7.dfsg# dpkg-buildpackage -b
... lots of not interresting lines
gcc  -g -Wall -D_REENTRANT -O2   -o atftp  tftp.o tftp_io.o logger.o options.o 
tftp_def.o tftp_f
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -Wall -D_REENTRANT -O2 -MT 
tftpd.o -MD -MP -MF ".deps/
        then mv -f ".deps/tftpd.Tpo" ".deps/tftpd.Po"; else 
rm -f ".deps/tftpd.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -Wall -D_REENTRANT -O2 -MT 
stats.o -MD -MP -MF ".deps/
        then mv -f ".deps/stats.Tpo" ".deps/stats.Po"; else 
rm -f ".deps/stats.Tpo"; exit 1; fi
stats.c: In function ‘stats_print’:
stats.c:160: error: ‘CLK_TCK’ undeclared (first use in this function)
stats.c:160: error: (Each undeclared identifier is reported only once
stats.c:160: error: for each function it appears in.)
make[3]: *** [stats.o] Error 1
make[3]: Leaving directory `/root/atftp-0.7.dfsg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/atftp-0.7.dfsg'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/atftp-0.7.dfsg'
make: *** [build-stamp] Error 2
root at athlon:~/atftp-0.7.dfsg#
-- 
The only stupid question is the one you don't ask




More information about the ubuntu-users mailing list