[uClibc]Problems linking uClibc to applications after ugrade

Steve Rodgers hwstar at cox.net
Tue Dec 24 19:01:09 UTC 2002


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. 

I'm trying to move from my development system from a RedHat 7.3 environment to 
a RedHat 8 environment, running gcc 3.2-7. And when uClibc 0.9.12 wouldn't 
compile in the redhat 8 environment, I downloaded the latest uClibc 0.9.16
and it compiled without an error, but now I'm running into this problem.

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