Operating System - HP-UX
1825002 Members
2792 Online
109678 Solutions
New Discussion юеВ

Re: Error when trying to configure bash 3.0

 
SOLVED
Go to solution
NOreen Merrick
Frequent Advisor

Error when trying to configure bash 3.0

Hi I am trying to configure bash on hp-ux 11.0 and keep getting the following

# ./configure
configure: error: cannot find sources (shell.h) in . or ..

same when I do

# sh ./configure
configure: error: cannot find sources (shell.h) in . or ..

or
/sbin/sh is the same

I have nothing installed on this system yet.

Thanks

noradanjo
12 REPLIES 12
A. Clay Stephenson
Acclaimed Contributor

Re: Error when trying to configure bash 3.0

Well are the source files in your current working directory?
If it ain't broke, I can fix that.
NOreen Merrick
Frequent Advisor

Re: Error when trying to configure bash 3.0

Hi A Clay,
i only have shell.c in the pwd where do I get shell.h?

Thnks

Nora
NOreen Merrick
Frequent Advisor

Re: Error when trying to configure bash 3.0

Hi A Clay,


I realised what happened, yesterday when I did the install I filled the file system to 100% so it obviously didnt install correctly so have extended and installed agian, the configure works now so will continue on.

Regards,

Nora
Jaime Bolanos Rojas.
Honored Contributor

Re: Error when trying to configure bash 3.0

Noreen,

Hmmm, it should there, if it's not there, other solution might be copying it from the web and testing with it...

http://iep.water.ca.gov/d/bin/sbin/site/etc/httpd/cgi-bin/dss/bin/sbin/site/src/gnu/bash-2.0/shell.h

Regards,

Jaime.
Work hard when the need comes out.
A. Clay Stephenson
Acclaimed Contributor

Re: Error when trying to configure bash 3.0

By the way, whatever you do do not change root's shell to bash. In fact, leave it as /sbin/sh because it is a statically linked but full functional version of the POSIX shell. Statically linked executables are less memory efficient than their dynamically linked counterparts but are able to run as standalone executables. If you change root's shell to bash or /usr/bin/shell then it cannot execute until /usr is mounted and /usr cannot be mounted until the shell executes the mount mount and the ... .

I hope that you have a compelling reason to use bash. One of my least favorite features of most implementations of bash is that the following very useful construct does not work:

echo "One Two Three" | read A B C

but works perfectly with the POSIX or Korn shell.
If it ain't broke, I can fix that.
NOreen Merrick
Frequent Advisor

Re: Error when trying to configure bash 3.0

Hi A Clay,

I did the following and still haev no bash. Is this the expected output?


# make
making ./lib/intl/libintl.a in ./lib/intl
cc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/libdata\" -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/local/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I/home/bash/bash-3.0 -I../.. -g bindtextdom.c
(Bundled) cc: warning 480: The -g option is available only with the C/ANSI C product; ignored.
cpp: "libgnuintl.h", line 301: error 4065: Recursion in macro "libintl_set_relocation_prefix".
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
# make tests
making ./lib/intl/libintl.a in ./lib/intl
cc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/libdata\" -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/local/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I/home/bash/bash-3.0 -I../.. -g bindtextdom.c
(Bundled) cc: warning 480: The -g option is available only with the C/ANSI C product; ignored.
cpp: "libgnuintl.h", line 301: error 4065: Recursion in macro "libintl_set_relocation_prefix".
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
# make install
making ./lib/intl/libintl.a in ./lib/intl
cc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/libdata\" -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/local/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I/home/bash/bash-3.0 -I../.. -g bindtextdom.c
(Bundled) cc: warning 480: The -g option is available only with the C/ANSI C product; ignored.
cpp: "libgnuintl.h", line 301: error 4065: Recursion in macro "libintl_set_relocation_prefix".
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
#


Thanks

Noreen
A. Clay Stephenson
Acclaimed Contributor

Re: Error when trying to configure bash 3.0

You are trying to build bash with the Bundled c compiler. It only understands K&R C syntax and is really only intended for building kernels. You need to install a real development system, either ANSI C or aCC (C++) from HP OR gcc (free) in order to build the shell.
If it ain't broke, I can fix that.
NOreen Merrick
Frequent Advisor

Re: Error when trying to configure bash 3.0

Hi A Clay,


I have installed gcc now

# find / -name gcc -print 2>/dev/null
/usr/local/bin/gcc
/var/adm/sw/products/gcc

But when I did ./configure I noticed when it checked for gcc it returned "no" in output. And when I do make I still get


# make
making ./lib/intl/libintl.a in ./lib/intl
cc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/libdata\" -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/local/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I/home/bash/bash-3.0 -I../.. -g bindtextdom.c
(Bundled) cc: warning 480: The -g option is available only with the C/ANSI C product; ignored.
cpp: "libgnuintl.h", line 301: error 4065: Recursion in macro "libintl_set_relocation_prefix".
*** Error exit code 1

Why is bash not recognising that I have installed gcc?

THanks

Noreen

NOreen Merrick
Frequent Advisor

Re: Error when trying to configure bash 3.0

Hi,

Does anyone have any further ideas on this problem, am still stuck, trying to install bash 3.0 on hp-ux 11.0 but keep having problems when running the configure script complaining about lack of a compiler which prompted me to download and install gcc but still problems see above.

Regards,

Noradanjo
Dennis Handly
Acclaimed Contributor

Re: Error when trying to configure bash 3.0

You have to tell make or configure to use gcc to compile, not cc. I assume that gcc must be in your path.
NOreen Merrick
Frequent Advisor

Re: Error when trying to configure bash 3.0

Hi Dennis,

yes I did this and now I realise that I need other binaries that are contained in the gnu binutils package (i think) for gcc to work properly. So I have downloaded this package and trying to install 2.9.1.

But when I do "make" am getting

"In file included from hpux-core.c:35:
/usr/include/sys/core.h:81: parse error before `uint64_t'
/usr/include/sys/core.h:81: warning: no semicolon at end of struct or union
hpux-core.c: In function `hpux_core_core_file_p':
hpux-core.c:140: storage size of `proc_info' isn't known
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
#"
I'll look this up now.

God I thought installing and configuring bash would be easy but looks like I need a tonne of things to make bash work anyway which I haven't already got. Do you know if this is the normal procedure for installation or is there some other "packaged and compiled file" that would have everything I need.

Thanks

Noreen

Dennis Handly
Acclaimed Contributor
Solution

Re: Error when trying to configure bash 3.0

>Do you know if this is the normal procedure for installation or is there some other "packaged and compiled file" that would have everything I need.

Someone else ports the few non-HP tools that I use, so I haven't experienced the pain.

I would have tought some of these are available at the porting center.