Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Sep 2012 11:06:34 +0200
From:      Berislav Purgar <bpurgar@gmail.com>
To:        freebsd-mips@freebsd.org
Subject:   Re: problem with quagga ??
Message-ID:  <CAAUsrB6S2jEwerU5k=0on%2B=BsUxVcf7ehjvTKHREt3%2BGGNv-8Q@mail.gmail.com>
In-Reply-To: <CAAUsrB7deW_tstdb8DZGAg2aJWrsygO5j==Jo08Lpcbzg_ZaNw@mail.gmail.com>
References:  <CAAUsrB7deW_tstdb8DZGAg2aJWrsygO5j==Jo08Lpcbzg_ZaNw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
after diging and diging differences btw ospfd and zebra i found in Makefile
that zebra (bgpd ripd and others) use variable AM_LDFLAGS which somehow
make program shared object and not executive.
AM_LDFLAGS = $(PILDFLAGS)
after removing these from Makefile and building package it works .


root@gw-bsd:/usr/local # cd sbin
root@gw-bsd:/usr/local/sbin # file zebra
zebra: ELF 32-bit MSB executable, MIPS, MIPS-III version 1 (FreeBSD),
dynamically linked (uses shared libs), FreeBSD-style, for FreeBSD 10.0
(1000017), stripped
root@gw-bsd:/usr/local/sbin # file bgpd
bgpd: ELF 32-bit MSB executable, MIPS, MIPS-III version 1 (FreeBSD),
dynamically linked (uses shared libs), FreeBSD-style, for FreeBSD 10.0
(1000017), stripped
root@gw-bsd:/usr/local/sbin # file ospfd
ospfd: ELF 32-bit MSB executable, MIPS, MIPS-III version 1 (FreeBSD),
dynamically linked (uses shared libs), FreeBSD-style, for FreeBSD 10.0
(1000017), stripped
root@gw-bsd:/usr/local/sbin #

root@gw-bsd:/usr/local/sbin # bgpd -v
bgpd version 0.99.21
Copyright 1996-2005 Kunihiro Ishiguro, et al.
root@gw-bsd:/usr/local/sbin # zebra -v
zebra version 0.99.21
Copyright 1996-2005 Kunihiro Ishiguro, et al.
root@gw-bsd:/usr/local/sbin # ospfd -v
ospfd version 0.99.21
Copyright 1996-2005 Kunihiro Ishiguro, et al.
root@gw-bsd:/usr/local/sbin #

Beri
On Wed, Sep 12, 2012 at 4:52 PM, Berislav Purgar <bpurgar@gmail.com> wrote:

> Hi
>
> i have succefuly installed freebsd on RSPRO (roots fs on SD card) .
> evrething works just fine. I try to compile quagga pacakge on rspro (i have
> succesfuly build other pacakges etc. perl5 gettext autoconf) and i got
> problem. everithing compile just fine put when i try to run zebra or bgpd i
> got error :
>
> root@gw-bsd:/home/rut/quagga-0.99.18/zebra # ./zebra
> ./zebra: Exec format error. Binary file not executable.
> root@gw-bsd:/home/rut/quagga-0.99.18/zebra #
>
> but when i try to run ospfd it works :
>
> root@gw-bsd:/home/rut/quagga-0.99.18/zebra # cd ..
> root@gw-bsd:/home/rut/quagga-0.99.18 # cd ospfd
> root@gw-bsd:/home/rut/quagga-0.99.18/ospfd # ./ospfd -v
> ospfd version 0.99.18
> Copyright 1996-2005 Kunihiro Ishiguro, et al.
> root@gw-bsd:/home/rut/quagga-0.99.18/ospfd #
> root@gw-bsd:/home/rut/quagga-0.99.18/zebra # file ./zebra
> ./zebra: ELF 32-bit MSB shared object, MIPS, MIPS-III version 1 (FreeBSD),
> dynamically linked (uses shared libs), FreeBSD-style, for FreeBSD 10.0
> (1000017), not stripped
> root@gw-bsd:/home/rut/quagga-0.99.18/zebra # ldd ./zebra
> ./zebra:
> libcrypt.so.5 => /lib/libcrypt.so.5 (0x4065b000)
> librt.so.1 => /usr/lib/librt.so.1 (0x40694000)
>  libc.so.7 => /lib/libc.so.7 (0x4043e000)
> libthr.so.3 => /lib/libthr.so.3 (0x406a9000)
> root@gw-bsd:/home/rut/quagga-0.99.18/zebra # cd ..
> root@gw-bsd:/home/rut/quagga-0.99.18 # cd ospfd
> root@gw-bsd:/home/rut/quagga-0.99.18/ospfd # file ./ospfd
> ./ospfd: ELF 32-bit MSB executable, MIPS, MIPS-III version 1 (FreeBSD),
> dynamically linked (uses shared libs), FreeBSD-style, for FreeBSD 10.0
> (1000017), not stripped
> root@gw-bsd:/home/rut/quagga-0.99.18/ospfd # ldd ./ospfd
> ./ospfd:
> libcrypt.so.5 => /lib/libcrypt.so.5 (0x404f0000)
> librt.so.1 => /usr/lib/librt.so.1 (0x40529000)
>  libc.so.7 => /lib/libc.so.7 (0x4053e000)
> libthr.so.3 => /lib/libthr.so.3 (0x406d2000)
> root@gw-bsd:/home/rut/quagga-0.99.18/ospfd # uname -a
> FreeBSD gw-bsd.jug.osw 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r240325M: Thu
> Jan  1 01:00:00 CET 1970     root@dummy:/data/freebsd/mips/head/obj/mips/mips.mips/data/freebsd/mips/head/src/sys/RSPRO_STANDALONE
>  mips
> root@gw-bsd:/home/rut/quagga-0.99.18/ospfd # pkg_info
> root@gw-bsd:/home/rut/quagga-0.99.18/ospfd # pkg_info
> autoconf-2.69       Automatically configure source code on many Un*x
> platforms
> autoconf-wrapper-20101119 Wrapper script for GNU autoconf
> automake-1.12.3     GNU Standards-compliant Makefile generator
> automake-wrapper-20101119 Wrapper script for GNU automake
> dlmalloc-2.8.4      Small, fast malloc library by Doug Lea
> gawk-3.0.6          GNU awk + multi-byte extension
> gettext-0.18.1.1    GNU gettext package
> gmake-3.82_1        GNU version of 'make' utility
> help2man-1.40.11    Automatically generating simple manual pages from
> program o
> libiconv-1.14       A character set conversion library
> libtool-2.4.2       Generic shared library support script
> m4-1.4.16_1,1       GNU m4
> nano-2.2.6          Nano's ANOther editor, an enhanced free Pico clone
> p5-Locale-gettext-1.05_3 Message handling functions
> perl-5.14.2_2       Practical Extraction and Report Language
>
>
> any sugestion ??
>
> tnx
>
>
>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAUsrB6S2jEwerU5k=0on%2B=BsUxVcf7ehjvTKHREt3%2BGGNv-8Q>