LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-09-2006, 07:43 AM   #1
jaykup
Member
 
Registered: Jan 2006
Location: Mukwonago, WI
Distribution: Slackware 12
Posts: 77

Rep: Reputation: 16
Compile error in bash


When in installing bash with

Code:
./configure --enable-static-link --prefix=/home/jake/LFS/static --with-curses && make && make install
I get this error:

Code:
/home/jake/LFS/static/bash-3.0/shell.c:1596: warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
./lib/sh/libsh.a(netopen.o)(.text+0x3d): In function `_netopen6':
/home/jake/LFS/static/bash-3.0/lib/sh/netopen.c:219: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
bashline.o(.text+0x24b1): In function `bash_servicename_completion_function':
/home/jake/LFS/static/bash-3.0/bashline.c:1677: warning: Using 'getservent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
bashline.o(.text+0x249c):/home/jake/LFS/static/bash-3.0/bashline.c:1658: warning: Using 'setservent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
bashline.o(.text+0x2575):/home/jake/LFS/static/bash-3.0/bashline.c:1682: warning: Using 'endservent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
./lib/sh/libsh.a(shmatch.o)(.text+0x12e): In function `sh_regmatch':
/home/jake/LFS/static/bash-3.0/lib/sh/shmatch.c:112: undefined reference to `sh_xfree'
./lib/sh/libsh.a(shmatch.o)(.text+0x141):/home/jake/LFS/static/bash-3.0/lib/sh/shmatch.c:113: undefined reference to `sh_xfree'
collect2: ld returned 1 exit status
make: *** [bash] Error 1

I'm trying to do a Linux from Scratch from Slackware 10.2

Any Ideas?

Last edited by jaykup; 03-09-2006 at 07:45 AM.
 
Old 03-09-2006, 08:03 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
Any compelling and unavoidable reasons for needing a statically compiled Bash?
 
Old 03-09-2006, 11:15 AM   #3
caspervn
Member
 
Registered: Jul 2005
Location: Vietnam
Distribution: Fedora Core 2
Posts: 55

Rep: Reputation: 15
Quote:
Originally Posted by jaykup
Code:
./lib/sh/libsh.a(shmatch.o)(.text+0x12e): In function `sh_regmatch':
/home/jake/LFS/static/bash-3.0/lib/sh/shmatch.c:112: undefined reference to `sh_xfree'
./lib/sh/libsh.a(shmatch.o)(.text+0x141):/home/jake/LFS/static/bash-3.0/lib/sh/shmatch.c:113: undefined reference to `sh_xfree'
collect2: ld returned 1 exit status
make: *** [bash] Error 1

May be you have lost some libraries when linking program.
You should open file config.log (in compiled folder) to view what library is (open by vi or any editor). And then you search no such file or directory. Be ware the lines which has involved file .so or .a
 
Old 03-09-2006, 02:33 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
Quote:
Originally Posted by unSpawn
Any compelling and unavoidable reasons for needing a statically compiled Bash?
i was thinking the same thing
i look at the tools setup for LFS from LFS5 to SVN-20060308
temporary bash is built with
./configure --prefix=/tools --without-bash-malloc
or in older version
./configure --prefix=/tools

to repeat an old LFS phrase
use book, book good
 
Old 03-09-2006, 04:57 PM   #5
jaykup
Member
 
Registered: Jan 2006
Location: Mukwonago, WI
Distribution: Slackware 12
Posts: 77

Original Poster
Rep: Reputation: 16
Alright, I'll give it a try, this was the book I was following..

http://www.faqs.org/docs/linux_scrat...er05/bash.html

Thanks
 
  


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
Odd Chars w/ make/C++ compile error on Fedora w/bash shell zemux Linux - General 2 01-22-2006 02:48 AM
compile bash scripts collen Programming 3 12-12-2005 09:49 AM
I can't compile the bash TeG Linux From Scratch 2 10-09-2003 04:52 PM
compile within bash function? adam_boz Programming 1 09-18-2002 12:13 AM
Bash errors after kernel compile Touchstone Linux - Software 5 02-09-2002 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:27 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