LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-16-2010, 07:41 AM   #1
kaktus9
LQ Newbie
 
Registered: Sep 2009
Posts: 16

Rep: Reputation: 0
Exclamation wgr614l compilation problem on fedora 11


Code:
========================================
 WGR614v8 Build Instructions

 Version: 1.0
 Date   : 2008 Mar 13
======================================== 

Note: 
      1. This package has been built successfully on Fedora Core 2.
         Compiling this package on platforms other than Fedora Core 2
         may have unexpected results.

===================
 Build the toolchain
===================

1. Copy "WGR614v8_toolchain_src.tar.bz2" into a directory of your choice.
2. Change to the directory in (1) above and run:
    
    tar jxf WGR614v8_toolchain_src.tar.bz2

3. for now, you have three files here: hnd-tools-3.2.3.tgz, TOOLSOURCE_2004_03_31.tgz
4. To build the toolchain, please copy "TOOLSOURCE_2004_03_31.tgz" to a directory which you want,
   and extract the package:
   
   tar xvfz TOOLSOURCE_2004_03_31.tgz

5. Please read the "README.TXT" files in each directory, and follow the insctructions to build the target code.


===================
 Install toolchain
===================

1. Download the toolchain "hnd-tools-3.2.3.tgz"
2. Put "hnd-tools-3.2.3.tgz" into "/opt/brcm"
3. Run the following commands to extract the toolchain:

        cd /opt/brcm
        tar zxvf hnd-tools-3.2.3.tgz
        ln -s hndtools-mipsel-uclibc-3.2.3 hndtools-mipseluclib

===================
 Build code
===================

1. Edit your user profile (On Fedora Core 2, the profile is ~/.bash_profile)
   to include the toolchain paths:

        PATH=/opt/brcm/hndtools-mipsel-linux-3.2.3/bin:/opt/brcm/hndtools-mipsel-uclibc-3.2.3/bin:$PATH:$HOME/bin

2. Copy "WGR614v8-V1.1.24_14.0.43WW_src.tar.bz2" into a directory of your choice.

3. Change to the directory in (2) above and run:

        tar jxf WGR614v8-V1.1.24_14.0.43WW_src.tar.bz2

4. copy the "trx" command to the path that user can access, you must login as "root"

        cp bcm5354/tools/trx /usr/bin

5. Run the following commands to build image

        cd bcm5354/src/linux/linux
        make dep
        make
        cd ../../router
        make clean
        make
        make install

5. The final image is "bcm5354/src/router/mipsel/kernel_image.chk". 
   User may upgrade to this image using the WGR614v8 GUI "Router Upgrade" page.
i am stuck in this part
Code:
5. Run the following commands to build image

        cd bcm5354/src/linux/linux
        make dep
        make
        cd ../../router
        make clean
        make
        make install
i followed exact manual and got following error while executing make install command
the manuals and what was done and where look here http://forums.fedoraforum.org/showth...hlight=wgr614l as not to repost whole manuals
if you have any [related to thread of course] doubts or questions feel free to PM me or write them here, and i will try to supply the requested info ASAP
anyway after making dep i followed into router subdirectory, did make and make install lists following error:
http://img28.imageshack.us/img28/1701/clip1.png
can please someone explain what's wrong? [with the libstdc++.so.5 especially]
the whole make install log is:
http://img379.imageshack.us/img379/4...elspicture.png
http://img59.imageshack.us/img59/764...lspicture4.png
http://img46.imageshack.us/img46/617...lspicture3.png
http://img52.imageshack.us/img52/982...lspicture2.png
http://img411.imageshack.us/img411/3...lspicture1.png
sorry for screenshots but as this is inside PARALELLS VM it does not have network access to export logs directly
 
Old 03-16-2010, 11:25 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,674

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
Well, you can start with the missing ' libstdc++5 ' :
1) su 2) yum search libstdc++

2a) yum provides */libstdc++.so.5

3) yum install compat-libstdc++-33-3.2.3-66.<arch>

.....

Last edited by knudfl; 03-16-2010 at 11:31 AM.
 
Old 03-18-2010, 12:07 PM   #3
kaktus9
LQ Newbie
 
Registered: Sep 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Exclamation

Quote:
Originally Posted by knudfl View Post
Well, you can start with the missing ' libstdc++5 ' :
1) su 2) yum search libstdc++

2a) yum provides */libstdc++.so.5

3) yum install compat-libstdc++-33-3.2.3-66.<arch>

.....
i searched DVD repos and it said component already installed, as for network on parallels VM still can't get it online:/
 
Old 03-19-2010, 07:15 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,674

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
Well, then better check : ls /usr/lib/libstdc++*

When "/usr/lib/libstdc++.so.5" is not shhowing up,
the package is not installed or wrongly installed.

A direct link :
http://download.fedora.redhat.com/pu....3-66.i586.rpm
> > compat-libstdc++-33-3.2.3-66.i586.rpm

AFAIK, this package is not on the install DVD.

.....
 
1 members found this post helpful.
Old 03-19-2010, 09:22 AM   #5
kaktus9
LQ Newbie
 
Registered: Sep 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Exclamation

Quote:
Originally Posted by knudfl View Post
Well, then better check : ls /usr/lib/libstdc++*

When "/usr/lib/libstdc++.so.5" is not shhowing up,
the package is not installed or wrongly installed.

A direct link :
http://download.fedora.redhat.com/pu....3-66.i586.rpm
> > compat-libstdc++-33-3.2.3-66.i586.rpm

AFAIK, this package is not on the install DVD.

.....
doing click click on the file saved to desktop gives this bulk of error things: http://img153.imageshack.us/img153/3...lspicture1.png
typing "> > compat-libstdc++-33-3.2.3-66.i586.rpm" while in /usr/lib/ folder as root tells > is invalid operator, typing just compat-libstdc++-33-3.2.3-66.i586.rpm says no such command found`
please advise, i will be very grateful
i also tried to yum localinstall with result on screenshot belowhttp://img407.imageshack.us/img407/6...lspicture3.png

Last edited by kaktus9; 03-19-2010 at 09:29 AM.
 
Old 03-19-2010, 12:09 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,674

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
# yum deplist compat-libstdc++-33
.. shows no dependencies
( except for libgcc ( + glibc ) which I'm sure you have.)
The usual install command is : 1) su
2) yum install compat-libstdc++-33
( Please always use # yum search <name>
to get the correct package name.)

But you can just do : 1) cd <dir-with-compat-libstdc++-33>/
2) su
3) rpm -Uvh compat-libstdc++-33-3.2.3-66.i586.rpm

.....
So why isn't your yum / repo working ? ?
"Cannot retrieve repository metadata (repomd.xml)...."
indicates a wrong file ? missing access to internet ?
The basic /etc/yum.repos.d/fedora.repo , should look like :
Code:
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

Last edited by knudfl; 03-19-2010 at 12:18 PM.
 
1 members found this post helpful.
Old 03-20-2010, 04:00 AM   #7
kaktus9
LQ Newbie
 
Registered: Sep 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Smile succss!

let me report report i've overcome all troubles and compilation ended full success
i owe big you all, and want to thanks who helped me here now and then in the past as well those on fedora forum site: fedoraforum.org
special credit goes to:
linuxquestions: knudfl for the help with the library
and fedoraforum.org: tashirosgt for huge help with depends
 
  


Reply

Tags
fc11, fedora, linux, netgear, open, source


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WGR614L source compilation trouble kaktus9 Linux - Networking 1 12-13-2009 07:02 PM
WGR614L compilation trouble-edition 2 after permissions fix kaktus9 Programming 11 10-05-2009 06:57 AM
linux open source netgear WGR614L compilation under Fedora 11 [as root] problem kaktus9 Programming 4 09-13-2009 11:41 AM
Problem in compilation in Fedora anupamjamatia Programming 4 07-03-2008 06:33 AM


All times are GMT -5. The time now is 09:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration