|
Subject: emerge ppp with crosscompile problem Newsgroups: gmane.linux.gentoo.embedded Date: 2006-05-02 14:39:26 GMT (3 years, 9 weeks, 2 hours and 43 minutes ago)
Hi everyone.
I have this problem
By this script i am trying to emerge ppp ebuild:
trotl ladmanj # cat memerge
#!/bin/bash
ARCH=sh4
ACCEPT_KEYWORDS="-x86 -~x86 sh ~sh"
ROOT="/home/ladmanj/work_projects/sh4prj"
CFLAGS="-Os -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-L${ROOT}/lib -L${ROOT}/usr/lib"
CBUILD=i686-pc-linux-gnu
CHOST=sh4-pc-linux-uclibc
CTARGET=sh4-pc-linux-uclibc
CC=sh4-pc-linux-uclibc-gcc
CXX=sh4-pc-linux-uclibc-g++
PKGDIR=/usr/portage/packages/sh4
USE="-* -X -kde -gnome -glibc uclibc make-symlinks static dhcp"
export ARCH ACCEPT_KEYWORDS CFLAGS CXXFLAGS LDFLAGS ROOT CBUILD CHOST CTARGET
CC CXX PKGDIR USE
emerge -b $*
trotl ladmanj #
this is the error i get
gcc -o dhcpc.so -shared dhcpc.o clientpacket.o packet.o socket.o options.o
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:
dhcpc.o: Relocations in generic ELF (EM: 42)
dhcpc.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [dhcpc.so] Error 1
When i disable the dhcp use flag, it succesfuly installs everything. But i
need dhcp support.
Thanks for your help
Best regards
Jakub Ladman
|
|
|