From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26879 invoked by alias); 9 Mar 2011 16:11:01 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15853 Received: (qmail 6498 invoked from network); 9 Mar 2011 16:10:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at myproxylists.com designates 217.119.39.74 as permitted sender) X-Originating-IP: 127.0.0.1 Message-ID: Date: Wed, 9 Mar 2011 18:10:42 +0200 Subject: ZSH static compile is missing modules even when dynamic is fully disable From: nix@myproxylists.com To: zsh-users@zsh.org User-Agent: SquirrelMail/1.4.20 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal I do compile ZSH statically this way: #!/bin/sh ln -s `g++ -print-file-name=libstdc++.a` ./configure --disable-dynamic CFLAGS="-Os -s -static-libgcc -L." --disable-restricted-r --disable-gdbm -- Any other built-in module is there such as terminfo and datetime works in statically compiled version. However the following modules will fail: zmodload -i zsh/mathfunc zmodload -i zsh/mapfile A statically compiled ZSH will give you these errors: zsh: failed to load module: zsh/mathfunc zsh: failed to load module: zsh/mapfile Both mathfunc and mapfile are working just fine when you use dynamically linked version but I have to get it working in static as well. Any solution how do I include also mathfunc and mapfile in my static version as my tools will need them?