Building on ubuntu 8.04

Martin Buchholz martinrb at google.com
Thu May 15 15:19:49 UTC 2008


FYI - simply changing the /bin/sh symlink probably works,
but the official way to do this is with dpkg-reconfigure.
BTW, I think the message below is incorrect;
neither bash nor dash is fully POSIX compliant.
See also
https://bugs.launchpad.net/ubuntu/+source/dash/+bug/61463

$ sudo dpkg-reconfigure dash
Configuring dash
----------------

Bash is the default /bin/sh on a Debian system.  However, since the Debian
policy requires all shell scripts using /bin/sh to be POSIX compliant, any shell
that conforms to POSIX can serve as /bin/sh.  Since dash is POSIX compliant, it
can be used as /bin/sh.  You may wish to do this because dash is faster and
smaller than bash.

Install dash as /bin/sh? no

Martin

On Thu, May 15, 2008 at 4:07 AM,  <bram.somers at skynet.be> wrote:
>
>
> Hi all,
>
> First, I really appreciate the help, thank you all!
>
> Second, I did perform a make clean. And I don't understand. I removed sh
> from my system and made a symlink from sh to bash, so every time sh is
> called, it is forwarded to bash, isn't it?
> Anyway, I checked the files you gave, and I changed the calls, so they
> should use bash now. But, I'm a newbie on this kind of stuff, I use Java for
> several years now, but this is new for me.
>
> Kind regards,
>
> Bram
>
>
> Roman Kennke wrote:
> Also, maybe you simply forgot make clean after you fixed your shell?
>
> /Roman
>
> Am Mittwoch, den 14.05.2008, 12:56 -0700 schrieb Brad Wetmore:
>
> I think you've got a problem still with your sh setup, or possibly something
> else.  IIRC, the ?replType? variables is supposed to be replaced with
> various values depending on whether you have an encoder or decoder.
> (sed/awk preprocessing = a Javaman's #ifdef equivalent)  It's done a similar
> way for the {Byte,Char,Int...}Buffers.
>
> Check jdk/make/java/nio, specifically Makefile, spp.sh, and genCoder.sh
>
> Hope this helps.
>
> Brad
>
>
> Bram Somers wrote:
>
> Dear all,
>
> I've tried building jdk7 on Ubuntu 8.04. I'm aware of the problems with
> sh/dash and I remove sh and made a symlink of sh to bash, so normally I
> shouldn't get this error anymore:
>
> jdk7/build/openjdk_full_debug/gensrc/java/nio/charset/CharsetEncoder.java:142:
> cannot find symbol
> symbol  : class $replType$
> location: class java.nio.charset.CharsetEncoder
>    private $replType$ replacement;
>            ^
> /home/bsomers/workspaces/openjdk/jdk7/build/openjdk_full_debug/gensrc/java/nio/charset/CharsetEncoder.java:185:
> cannot find symbol
> symbol  : class $replType$
> location: class java.nio.charset.CharsetEncoder
>                   $replType$ replacement)
>                   ^
> /home/bsomers/workspaces/openjdk/jdk7/build/openjdk_full_debug/gensrc/java/nio/charset/CharsetEncoder.java:246:
> cannot find symbol
> symbol  : class $replType$
> location: class java.nio.charset.CharsetEncoder
>    public final $replType$ replacement() {
>                 ^
> /home/bsomers/workspaces/openjdk/jdk7/build/openjdk_full_debug/gensrc/java/nio/charset/CharsetEncoder.java:275:
> cannot find symbol
> symbol  : class $replType$
> location: class java.nio.charset.CharsetEncoder
>    public final CharsetEncoder replaceWith($replType$ newReplacement) {
>                                            ^
> /home/bsomers/workspaces/openjdk/jdk7/build/openjdk_full_debug/gensrc/java/nio/charset/CharsetEncoder.java:301:
> cannot find symbol
> symbol  : class $replType$
> location: class java.nio.charset.CharsetEncoder
>    protected void implReplaceWith($replType$ newReplacement) {
>                                   ^
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 5 errors
>
>
> Any more suggestions?
>
> Thanks in advance,
>
> kind regards,
>
> Bram
>
>
>
>
>
>



More information about the build-dev mailing list