link error

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Tue Aug 19 01:25:19 WST 2008


I think I just hit a build corner case :(

What I'm trying to do is to build _without_ editing options.h.
I use awrapper Makefile instead, which does this:

# Attempt to fix config options here, instead of editing $(NAME)/options.h
CFLAGS          += -UENABLE_X11FWD      # both needed, else irritating warning
CFLAGS          += -DDISABLE_X11FWD     # about not finding XAUTH_COMMAND
CFLAGS          += -UDROPBEAR_TWOFISH256_CBC -UDROPBEAR_TWOFISH128_CBC
CFLAGS          += -UDO_HOST_LOOKUP -UDO_MOTD

                CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
                ./configure $(HOST) \
                --prefix=$(prefix)/$(PREF_X) \
                --disable-zlib \
                --disable-shadow \
                --disable-lastlog \
                --disable-pututline --disable-pututxline \
                --disable-utmpx --disable-wtmpx

Now, this seems to work out ok with some oldish glibc version, but linking
fails with uclibc 0.9.29.

,----
| loginrec.o: In function `utmp_write_direct':
| itimerspec/loginrec.c:707: undefined reference to `ttyslot'
| collect2: ld returned 1 exit status
| make[1]: *** [multibinary] Error 1
`----

To workaround this problem I'd use:

		--disable-utmp

Still, it would be nice if I could avoid that.

Thoughts?


Cheers,

-- 
Cristian



More information about the Dropbear mailing list