DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-07-01 13:31:58

KRH
Member
From: Denmark
Registered: 2006-10-27
Posts: 219
Website

cross compile webs

Whit the new source here

arm-linux-uclibc-gcc -O2 -o webs  \
                -DWEBS -DUEMF -DOS="LINUX" -DLINUX     -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I..  \
                main.o web_api.o OpenPath.o multilanguage.o libwebs.a   -I/opt_arm/arm-linux-uclibc-3.3.3/arm-linux-uclibc/include
-L/opt_arm/arm-linux-uclibc-3.3.3/arm-linux-uclibc/lib /opt_arm/arm-linux-uclibc-3.3.3/arm-linux-uclibc/lib/libconfuse -lcrypt -s
/opt/dns323/fw103-0.2/crosstools/gcc-3.3.x/toolchain_arm/lib/gcc-lib/arm-linux-uclibc/3.3.3/../../../../arm-linux-uclibc/bin/ld: cannot
open /opt_arm/arm-linux-uclibc-3.3.3/arm-linux-uclibc/lib/libconfuse: File format not recognized
collect2: ld returned 1 exit status
make: *** [webs] Error 1

can some one tell me where the error is?


First user to fun_plug the dns-323.

Offline

 

#2 2007-07-01 13:50:42

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: cross compile webs

You seem to be using my fw103 scripts, mixing it with another toolchain or staging directory (/opt_arm/?). Where's /opt_arm/ coming from?
My fw103 scripts don't build libconfuse, that's why it's looking at the other place - but it doesn't seem to be compatible.

Offline

 

#3 2007-07-01 13:54:53

KRH
Member
From: Denmark
Registered: 2006-10-27
Posts: 219
Website

Re: cross compile webs

/opt_arm/arm-linux-uclibc-3.3.3/arm-linux-uclibc is a sym link to  /opt/dns323/fw103/crosstools/arm/arm-linux-uclibc/ and in /opt_arm/arm-linux-uclibc-3.3.3/arm-linux-uclibc/lib i copyed libs from confuse


First user to fun_plug the dns-323.

Offline

 

#4 2007-07-01 14:07:04

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: cross compile webs

KRH wrote:

i copyed libs from confuse

You mean the pre-compiled libs from the package? They are for PPC:

/opt/dns323/fw103-0.2/confuse_ppc/install/lib$ file libconfuse.0.0.0
libconfuse.0.0.0: ELF 32-bit MSB shared object, PowerPC or cisco 4500, version 1 (SYSV), not stripped

Please check you libconfuse if that's the problem. If yes, you can try the attached script that builds libconfuse like this:

Code:

cd /opt/dns323/fw103-0.2
sh confuse.sh

This should install libconfuse into the toolchain_arm/lib directory, where the linker hopefully finds it.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB