[Klone-users] Klone 2.0.0 on Cygwin
Robert Finking
finking at ntlworld.com
Wed Oct 31 17:24:57 EDT 2007
Hi,
I just d/l klone and tried to build on Cygwin, which I know is not
currently on the (ever expanding) list of supported platforms. I ran
into a couple of problems which I've fixed, and then got stuck.
First up the addr_t type has a name clash with one of the standard types
defined by Cygwin. Generally this is a bad name for a type in global
namespace since pretty much anybody may come up with it. I fixed it by
doing a rename - would it be possible to rename to kl_addr_t or some
similar (Cygwin is unlikely to be the only environment where this clash
occurs).
Secondly the "dir.h" include file couldn't be found. On Cygwin there is
no "dir.h" include file, but there is a "dirent.h" include file, which
they clalim is POSIX compliant. Anyway I put a simlink in which fixed
this - might be useful if there was a #ifdef to identify if Cygwin is
being used and if so #include "dirent.h".
Finally, the build bombed out during linking:
g++
-I/home/raf/klone/klone-2.0.0/build/target/klone-core-2.0.0/libu/include -I/
home/raf/klone/klone-2.0.0/build/target/klone-core-2.0.0 -DHAVE_CONF_H
-I/usr/lo
cal/include -I/usr/local/include -O2 -I/usr/local/include
-I/usr/local/include -
o klone main.o pm.o -Wl,--start-group ../../libtrans/libtrans.a
../../libcodec/l
ibcodec.a ../../libutils/libutils.a ../../libio/libio.a
../../libcodec/libcodec.
a ../../../libu/srcs/libu.a -Wl,--end-group -L/usr/local/lib -lssl
-lcrypto -L/
usr/local/lib -lz -lc
fu000001.o:(.idata$2+0xc): undefined reference to `_libc_iname'
fu000003.o:(.idata$2+0xc): undefined reference to `_libc_iname'
fu000004.o:(.idata$2+0xc): undefined reference to `_libc_iname'
fu000005.o:(.idata$2+0xc): undefined reference to `_libc_iname'
fu000006.o:(.idata$2+0xc): undefined reference to `_libc_iname'
fu000007.o:(.idata$2+0xc): more undefined references to `_libc_iname' follow
Info: resolving _optind by linking to __imp__optind (auto-import)
Info: resolving _optarg by linking to __imp__optarg (auto-import)
collect2: ld returned 1 exit status
make[6]: *** [klone] Error 1
make[6]: Leaving directory
`/home/raf/klone/klone-2.0.0/build/target/klone-core-
2.0.0/src/tools/klone'
make[5]: *** [klone] Error 2
make[5]: Leaving directory
`/home/raf/klone/klone-2.0.0/build/target/klone-core-
2.0.0/src/tools'
make[4]: *** [tools] Error 2
make[4]: Leaving directory
`/home/raf/klone/klone-2.0.0/build/target/klone-core-
2.0.0/src'
make[3]: *** [src] Error 2
make[3]: Leaving directory
`/home/raf/klone/klone-2.0.0/build/target/klone-core-
2.0.0'
make[2]: *** [klone-setup] Error 2
make[2]: Leaving directory `/home/raf/klone/klone-2.0.0'
make[1]: *** [.real-klone-setup] Error 2
make[1]: Leaving directory `/home/raf/klone/klone-2.0.0'
make: *** [target-options-default] Error 1
Is this easily solvable, or will I need to d/l MinGW? If I do d/l MinGW
is the install for that straightforward or will there be similar nips
and tucks needed?
Thanks in advance!
Rob Finking
More information about the klone-users
mailing list