LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-16-2012, 01:18 PM   #1
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 27

Rep: Reputation: Disabled
syntax error near unexpected token `)'


I have chrooted into my 7.1 LFS when I get an error doing this command for Glibc-2.14.1;

DL=$(readelf -l /bin/sh | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p')

The error says: bash: command substitution: line 6: syntax error near unexpected token `)'

I have no problem doing this syntax when I am not chrooted.

Is there something I need to recompile to have this command accepted?

Tks ...

Last edited by Mordillo98; 05-16-2012 at 03:39 PM.
 
Old 05-16-2012, 01:51 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Can you post the output of the version-check and what host are you using. I googled the error and it,s pointing to yacc and bash
 
Old 05-16-2012, 01:53 PM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 20,766

Rep: Reputation: 7053Reputation: 7053Reputation: 7053Reputation: 7053Reputation: 7053Reputation: 7053Reputation: 7053Reputation: 7053Reputation: 7053Reputation: 7053Reputation: 7053
I think chroot will change the shell.
 
Old 05-16-2012, 02:01 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I thought once you reached chroot it was built on what you had built but found this same problem, Having built bash wrong
 
Old 05-16-2012, 03:41 PM   #5
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
Yup. I am using gentoo 2.6.32 that I built myself and yacc wasn't installed for what ever reason. Re-installed bash which installed yacc as a dependency and voila. That problem solved.

Tks ...
 
  


Reply


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
Syntax error near unexpected token :( please help mikejosh Programming 4 01-29-2010 06:54 AM
sh: syntax error near unexpected token `(' venkatesh_b Linux - Newbie 1 05-16-2009 05:44 AM
syntax error near unexpected token `fi' sureshkumar.repaka Linux - General 7 08-19-2007 10:14 PM
syntax error near unexpected token deskjockey39 Linux - General 2 01-16-2007 08:47 AM
syntax error for unexpected token `(' Steve Spurr Linux - Newbie 6 09-22-2006 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:08 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration