[uClibc]Problems linking uClibc 0.9.16 to my apps

Steve Rodgers hwstar at cox.net
Thu Jan 2 04:05:11 UTC 2003


Hello,

I was wondering if anybody has experienced a problem linking C programs
to uClibc which linked okay in version 0.9.12, but now do not link in
version 0.9.16. Here are the error messages from the link attempt:

/usr/i386-linux-uclibc/lib/crt0.o: In function `_start':
/usr/i386-linux-uclibc/lib/crt0.o(.text+0x13): undefined reference to
`_fini'
/usr/i386-linux-uclibc/lib/crt0.o(.text+0x18): undefined reference to
`_init'

My target is a 486 based embedded controller.

If it helps, here is the Config file for uclibc 0.9.16 set up for my target:

#
# Automatically generated make config: don't edit
#

#
# Target Architecture Features and Options
#
HAVE_ELF=y
# CONFIG_386 is not set
CONFIG_486=y
# CONFIG_586 is not set
# CONFIG_586MMX is not set
# CONFIG_686 is not set
# CONFIG_PENTIUMIII is not set
# CONFIG_PENTIUM4 is not set
# CONFIG_K6 is not set
# CONFIG_K7 is not set
# CONFIG_CRUSOE is not set
# CONFIG_WINCHIPC6 is not set
# CONFIG_WINCHIP2 is not set
# CONFIG_CYRIXIII is not set
UCLIBC_HAS_MMU=y
UCLIBC_HAS_FLOATS=y
HAS_FPU=y
# DO_C99_MATH is not set
WARNINGS="-Wall"
KERNEL_SOURCE="/home/srodgers/projects/ts5300/linux-2.4.18"
C_SYMBOL_PREFIX=""

#
# General Library Settings
#
DOPIC=y
HAVE_SHARED=y
BUILD_UCLIBC_LDSO=y
LDSO_LDD_SUPPORT=y
UCLIBC_HAS_THREADS=y
UCLIBC_HAS_LFS=y
# MALLOC is not set
MALLOC_930716=y
HAS_SHADOW=y
UCLIBC_HAS_REGEX=y
UNIX98PTY_ONLY=y
ASSUME_DEVPTS=y

#
# Networking Support
#
# UCLIBC_HAS_IPV6 is not set
# UCLIBC_HAS_RPC is not set

#
# String and Stdio Support
#
# UCLIBC_HAS_WCHAR is not set
# USE_OLD_VFPRINTF is not set

#
# Library Installation Options
#
SHARED_LIB_LOADER_PATH="$(DEVEL_PREFIX)/lib"
DEVEL_PREFIX="/usr/$(TARGET_ARCH)-linux-uclibc"
SYSTEM_DEVEL_PREFIX="$(DEVEL_PREFIX)"
DEVEL_TOOL_PREFIX="$(DEVEL_PREFIX)/usr"

#
# uClibc hacking options
#
# DODEBUG is not set
# DOASSERTS is not set
# SUPPORT_LD_DEBUG is not set
# SUPPORT_LD_DEBUG_EARLY is not set

Any help would be greatly appreciated.

Thanks

Steve.












More information about the uClibc mailing list