All of lore.kernel.org
 help / color / mirror / Atom feed
From: mike sander <msander@ripnet.com>
To: buildroot@busybox.net
Subject: [Buildroot] link error building portmap
Date: Fri, 23 May 2008 17:51:23 -0400	[thread overview]
Message-ID: <48373C5B.5080905@ripnet.com> (raw)

I'm trying to use nfs mount within busybox.    This requires mount & 
portmap.  I am getting a link failure that I cannot figure out.

I have enabled busybox  MOUNT, FEATURE_MOUNT_NFS, FEATURE_HAVE_RPC as 
well as uclibc  UCLIBC_HAS_RPC and top level  
CONFIG_BR2_PACKAGE_PORTMAP.  I have done a top level "make clean".

Here is the output of top level make.  I have even explicitly put the 
full path to libc.a in the link line (in portmap Makefile):



mike at himalia:/home/buildroot$ make

Checking build system dependencies:
BUILDROOT_DL_DIR clean:                         Ok
CC clean:                                       Ok
CXX clean:                                      Ok
CPP clean:                                      Ok
CFLAGS clean:                                   Ok
INCLUDES clean:                                 Ok
CXXFLAGS clean:                                 Ok
which installed:                                Ok
sed works:                                      Ok (/bin/sed)
GNU make version '3.81':                        Ok
C compiler '/usr/bin/gcc'
C compiler version '4.1.3':                     Ok
C++ compiler '/usr/bin/g++'
C++ compiler version '4.1.3':                   Ok
bison installed:                                Ok
flex installed:                                 Ok
gettext installed:                              Ok
makeinfo installed:                             Ok
Build system dependencies:                      Ok

rm -rf /home/buildroot/project_build_arm/uclibc/buildroot-config
mkdir -p /home/buildroot/project_build_arm/uclibc
cp -dpRf package/config/buildroot-config 
/home/buildroot/project_build_arm/uclibc/buildroot-config
/usr/bin/make -j1 
CC=/home/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc 
O="-Os  -I/home/buildroot/build_arm/staging_dir/usr/include 
-I/home/buildroot/build_arm/staging_dir/include 
--sysroot=/home/buildroot/build_arm/staging_dir/ -isysroot 
/home/buildroot/build_arm/staging_dir -mtune=arm9tdmi" -C 
/home/buildroot/build_arm/portmap_5beta
make[1]: Entering directory `/home/buildroot/build_arm/portmap_5beta'
/home/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc  
-Dperror=xperror -DCHECK_PORT  -DFACILITY=LOG_AUTH  
-DIGNORE_SIGCHLD            -Os  
-I/home/buildroot/build_arm/staging_dir/usr/include 
-I/home/buildroot/build_arm/staging_dir/include 
--sysroot=/home/buildroot/build_arm/staging_dir/ -isysroot 
/home/buildroot/build_arm/staging_dir -mtune=arm9tdmi    -c -o portmap.o 
portmap.c
/home/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc  
-Dperror=xperror -DCHECK_PORT  -DFACILITY=LOG_AUTH  
-DIGNORE_SIGCHLD            -Os  
-I/home/buildroot/build_arm/staging_dir/usr/include 
-I/home/buildroot/build_arm/staging_dir/include 
--sysroot=/home/buildroot/build_arm/staging_dir/ -isysroot 
/home/buildroot/build_arm/staging_dir -mtune=arm9tdmi    -c -o 
pmap_check.o pmap_check.c
/home/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc  
-Dperror=xperror -DCHECK_PORT  -DFACILITY=LOG_AUTH  
-DIGNORE_SIGCHLD            -Os  
-I/home/buildroot/build_arm/staging_dir/usr/include 
-I/home/buildroot/build_arm/staging_dir/include 
--sysroot=/home/buildroot/build_arm/staging_dir/ -isysroot 
/home/buildroot/build_arm/staging_dir -mtune=arm9tdmi   -o portmap  
/home/buildroot/build_arm/staging_dir/usr/lib/libc.a  portmap.o 
pmap_check.o from_local.o get_myaddress.o  
portmap.o: In function `main':
portmap.c:(.text+0x914): undefined reference to `svcudp_create'
portmap.c:(.text+0x9a0): undefined reference to `svctcp_create'
portmap.c:(.text+0xa1c): undefined reference to `svc_run'
collect2: ld returned 1 exit status
make[1]: *** [portmap] Error 1
make[1]: Leaving directory `/home/buildroot/build_arm/portmap_5beta'
make: *** [/home/buildroot/build_arm/portmap_5beta/portmap] Error 2






Make sure I'm pointing to the right libc.a:
mike at himalia:/home/buildroot$ arm-linux-gcc  -print-file-name=libc.a
/home/buildroot/build_arm/staging_dir/usr/lib/libc.a





Using nm, I verified that libc.a does in fact contain 2 of the 3 
unresolved external references.
mike at himalia:/home/buildroot$ nm 
/home/buildroot/build_arm/staging_dir/usr/lib/libc.a | grep svc_run
svc_run.os:
00000028 T svc_run
mike at himalia:/home/buildroot$ nm 
/home/buildroot/build_arm/staging_dir/usr/lib/libc.a | grep svctcp_create
00000354 T svctcp_create



Anyone have any ideas what is going on here?

Thanks in advance.

Mike

             reply	other threads:[~2008-05-23 21:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-23 21:51 mike sander [this message]
2008-05-24  3:07 ` [Buildroot] link error building portmap.... possible solution Mike Sander

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48373C5B.5080905@ripnet.com \
    --to=msander@ripnet.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.