OpenJDK Build error on Ubuntu 8.04

Andrew Haley aph at redhat.com
Tue Jun 3 08:22:39 UTC 2008


David Herron wrote:
> Sam K. Raju wrote:
>> Hi All,
>>
>>      I had download the OpenJDK source code yesterday and tried to build
>> it but I got compiler error.
>>
>>      Somebody please help me to resolve this error. Please find error
>> message in the attachment.
>>
>> Thanks,
>>     SAM
>>   
> 
> That's a known issue.  On Ubuntu 8.04 they use 'dash' rather than 'bash'
> and it's mostly compatible but for the dash in 8.04 it incorrectly
> handles some shell scripts in the openjdk source tree that are used to
> process some java template sources that create the some of the java
> source files.
> 
> root at mini:~# ls -l /bin/sh
> lrwxrwxrwx 1 root root 4 2008-04-23 08:49 /bin/sh -> dash
> 
> I suppose one fix would be to change that symbolic link to point to
> 'bash' instead.  Another workaround is to add a 'SHELL=/bin/bash' to one
> or more makefile.

But if one of our scripts actually needs bash (not just sh) why not use
#!/bin/bash ?

Andrew.



More information about the build-dev mailing list