hallo,
ich möchte gerne den tftpd compilieren und einen suse 10.3 system.
den Quellcode habe ich mal hochkopiert, weil es so lang ist.
http://www.feledi.de/opentftpd.cpp.txt
warum haut das nicht hin...
mein Ziel ist es, den Quelltext zuverstehen ( so wer ist es auch nicht ) und zuverändern.
Makefile habe ich nicht.
was muss ich statt cc opentftpd -o tftpd schreiben dass ich Zeile für Zeile compilieren kann.
mfg tom
ich möchte gerne den tftpd compilieren und einen suse 10.3 system.
den Quellcode habe ich mal hochkopiert, weil es so lang ist.
http://www.feledi.de/opentftpd.cpp.txt
warum haut das nicht hin...
Code:
linux-953k:~/opentftp # cc opentftpd -o tftpd
opentftpd:(.rodata+0x0): multiple definition of `_fp_hw' <--------welche Zeile macht Probleme ?
/usr/lib/gcc/i586-suse-linux/4.2.1/../../../crt1.o:(.rodata+0x0): first defined
here
opentftpd: In function `__data_start':
(.data+0x4): multiple definition of `__dso_handle'
/usr/lib/gcc/i586-suse-linux/4.2.1/crtbegin.o:(.data+0x0): first defined here
opentftpd: In function `_init':
/glibc-tmp-50bc3e52fdee1ae191368f2f492c285b/glibc-2.3.6/build-glibc-2.3.6/csu/cr
ti.S:34: multiple definition of `_init'
/usr/lib/gcc/i586-suse-linux/4.2.1/../../../crti.o:/usr/src/packages/BUILD/glibc
-2.6.1/cc-nptl/csu/crti.S:15: first defined here
opentftpd: In function `_start':
/glibc-tmp-50bc3e52fdee1ae191368f2f492c285b/glibc-2.3.6/csu/../sysdeps/i386/elf/
start.S:65: multiple definition of `_start'
/usr/lib/gcc/i586-suse-linux/4.2.1/../../../crt1.o:(.text+0x0): first defined he re
opentftpd: In function `_fini':
/glibc-tmp-50bc3e52fdee1ae191368f2f492c285b/glibc-2.3.6/build-glibc-2.3.6/csu/cr ti.S:50: multiple definition of `_fini'
/usr/lib/gcc/i586-suse-linux/4.2.1/../../../crti.o:/usr/src/packages/BUILD/glibc -2.6.1/cc-nptl/csu/crti.S:41: first defined here
opentftpd:(.got.plt+0x0): multiple definition of `_GLOBAL_OFFSET_TABLE_'
/usr/lib/gcc/i586-suse-linux/4.2.1/../../../crt1.o:(.got.plt+0x0): first defined here
opentftpd:(.rodata+0x4): multiple definition of `_IO_stdin_used'
/usr/lib/gcc/i586-suse-linux/4.2.1/../../../crt1.o:(.rodata.cst4+0x0): first def ined here
opentftpd: In function `__data_start':
(.data+0x0): multiple definition of `__data_start'
/usr/lib/gcc/i586-suse-linux/4.2.1/../../../crt1.o:(.data+0x0): first defined he re
/usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld: warning: Cannot create .eh_frame_hdr section, --eh-frame-hdr ignored.
/usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld: error in opentftpd(.eh_frame); no .eh_frame_hdr table will be created.
collect2: ld returned 1 exit status
linux-953k:~/opentftp #
mein Ziel ist es, den Quelltext zuverstehen ( so wer ist es auch nicht ) und zuverändern.
Makefile habe ich nicht.
was muss ich statt cc opentftpd -o tftpd schreiben dass ich Zeile für Zeile compilieren kann.
mfg tom