[gull] probleme __libc_wait, version GLIBC_2.0 et solution
Farid Moussaoui
moussaoui at bluemail.ch
Thu Aug 19 00:27:01 CEST 2004
Bonjour,
Bien que je paye mes impots a la source, j'ai recupere le fichier
install.bin sur vaudtax.vd.ch
Le fichier est binaire et j'ai remarque que l'entete du fichier
est un fichier bash (les premieres 2224 lignes lisibles).
J'ai commence par executer le fichier avec l'option debug LAX_DEBUG=1
farid at dhcppc0:/tmp/vaud> LAX_DEBUG=1 ./ss.bin
Preparing to install...
Checking for POSIX df.
Found POSIX df.
....bla bla bla ....
Error occurred during initialization of VM
Unable to load native library: /tmp/install.dir.18438/Linux/resource/jre/lib/i386/libjava.so:
symbol __
libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time
reference
Apres ca j'ai google "symbol __libc_wait" et je suis tombe sur
http://bugzilla.redhat.com/bugzilla/long_list.cgi?buglist=110610
J'ai suivi sa solution. C'est a dire faire ceci :
gcc -O2 -shared -o ~/libcwait.so -fpic -xc - <<\EOF
#include <errno.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/wait.h>
pid_t
__libc_wait (int *status)
{
int res;
asm volatile ("pushl %%ebx\n\t"
"movl %2, %%ebx\n\t"
"movl %1, %%eax\n\t"
"int $0x80\n\t"
"popl %%ebx"
: "=a" (res)
: "i" (__NR_wait4), "0" (WAIT_ANY), "c" (status), "d" (0),
"S" (0));
return res;
}
EOF
Et apres faire tourner comme suit
LAX_DEBUG=1 LD_PRELOAD=~/libcwait.so LD_ASSUME_KERNEL=2.4.1 ./install.bin
>& install.log
Et ca marche.
A l'execution, faire aussi
LD_PRELOAD=~/libcwait.so LD_ASSUME_KERNEL=2.4.1 /home/farid/runVaudTax2003
ou bien rajouter ces variables dans son fichier d'environnement.
Voila voila.
PS: J'ai pu faire tourner la version sans VM sans autre
farid at dhcppc0:/tmp/vaud> uname -a
Linux dhcppc0 2.6.5-7.104-default #1 Wed Jul 28 16:42:13 UTC 2004 i686 i686
i386 GNU/Linux
farid at dhcppc0:/tmp/vaud> cat install.log
Preparing to install...
Checking for POSIX df.
Found POSIX df.
True location of the self extractor: /tmp/vaud/ss.bin
Creating installer data directory: /tmp/install.dir.17400
Creating installer data directory: /tmp/install.dir.17400/InstallerData
Gathering free-space information...
Space needed to complete the self-extraction: 202571 blocks
Available space: 176121952 blocks
Available blocks: 176121952 Needed blocks: 202571 (block = 512 bytes)
Computed number of blocks to extract: 694
Extracting the JRE from the installer archive...
Extracting JRE from ./ss.bin to /tmp/install.dir.17400/Linux/resource/jre_padded
...
Extracting done, exit code = 0
Extracting JRE from /tmp/install.dir.17400/Linux/resource/jre_padded to /tmp/install.dir.17400/Linux/resource/vm.tar.Z
...
Extracting done, exit code = 0
Unpacking the JRE...
Unpacking the JRE...
gzip is /usr/bin/gzip
GZIP done.
TAR done.
Extracting the installation resources from the installer archive...
Extracting install.zip from ./ss.bin to /tmp/install.dir.17400/InstallerData/installer.zip
...
Extracting done, exit code = 0
Configuring the installer for this system's environment...
[7m========= Analyzing UNIX Environment =================================[0m
Setting UNIX (linux) flavor specifics.
Importing UNIX environment into LAX properties.
Checking for POSIX awk.
[7m========= Analyzing LAX ==============================================[0m
LAX found............................ OK.
LAX properties read.................. OK.
[7m========= Finding VM =================================================[0m
[1mValid VM types.......................... J2 J1 MSJ MRJ[0m
Absolute LAX_VM path.................... /tmp/install.dir.17400/Linux/resource/jre/bin/java
[1mExpanded Valid VM types................. JRE_J2 JDK_J2 JRE_J1 JDK_J1
MSJ MRJ [0m
* Using VM.....(lax.nl.current.vm)...... /tmp/install.dir.17400/Linux/resource/jre/bin/java
Current VM is NOT a HotSpot VM
[7m========= Virtual Machine Options ====================================[0m
LAX properties incorporated............. OK.
classpath............................... "/tmp/install.dir.17400/InstallerData:/tmp/install.dir.17400/InstallerData/installer.zip"
main class.............................. "com.zerog.ia.installer.Main"
.lax file path.......................... "/tmp/install.dir.17400/temp.lax"
user directory.......................... "/tmp/install.dir.17400"
stdout to............................... "console"
sterr to................................ "console"
install directory....................... ""
JIT..................................... none
option (verify)......................... off
option (verbosity)...................... none
option (garbage collection extent)...... none
option (garbage collection thread)...... none
option (native stack max size).......... none
option (java stack max size)............ none
option (java heap max size)............. 50331648
option (java heap initial size)......... 16777216
option (lax.nl.java.option.additional).. none
[7m========= Display settings ===========================================[0m
X display............................... local
UI mode................................. gui
Launching installer...
[7m========= VM Command Line ============================================[0m
CLASSPATH=/tmp/install.dir.17400/InstallerData:/tmp/install.dir.17400/InstallerData/installer.zip
[1m"/tmp/install.dir.17400/Linux/resource/jre/bin/java" -Djava.compiler=NONE
-Xmx50331648 -Xms16777216 com.zerog.lax.LAX "/tmp/install.dir.17400/temp.lax"
"/tmp/env.properties.17400" [0m
[7m========= Executing JAVA =============================================[0m
LAX Version = 5.0
seaFilename = ss
Default properties location = /tmp/vaud/
UI Mode set to Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Default - SWING.
__________________________________________________________________________
__________________________________________________________________________
InstallAnywhere 5.0.6 Enterprise
__________________________________________________________________________
Thu Aug 19 00:05:11 BST 2004
Free memory = 14274 kB
Total memory = 16320 kB
No arguments.
java.class.path:
/tmp/install.dir.17400/InstallerData
/tmp/install.dir.17400/InstallerData/installer.zip
ZGUtil.CLASS_PATH:
/tmp/install.dir.17400/InstallerData
/tmp/install.dir.17400/InstallerData/installer.zip
sun.boot.class.path:
/tmp/install.dir.17400/Linux/resource/jre/lib/rt.jar
/tmp/install.dir.17400/Linux/resource/jre/lib/i18n.jar
/tmp/install.dir.17400/Linux/resource/jre/lib/sunrsasign.jar
/tmp/install.dir.17400/Linux/resource/jre/classes
java.ext.dirs:
/tmp/install.dir.17400/Linux/resource/jre/lib/ext
java.version == 1.3.1_06 (Java 2+)
java.vm.name == Java HotSpot(TM) Client VM
java.vm.vendor == Sun Microsystems Inc.
java.vm.version == 1.3.1_06-b01
java.vm.specification.name == Java Virtual Machine Specification
java.vm.specification.vendor == Sun Microsystems Inc.
java.vm.specification.version == 1.0
java.specification.name == Java Platform API Specification
java.specification.vendor == Sun Microsystems Inc.
java.specification.version == 1.3
java.vendor == Sun Microsystems Inc.
java.vendor.url == http://java.sun.com/
java.class.version == 47.0
java.compiler == null
java.home == /tmp/install.dir.17400/Linux/resource/jre
java.io.tmpdir == /tmp
os.name == Linux
os.arch == i386
os.version == 2.6.5-7.104-default
path.separator == :
file.separator == /
file.encoding == ISO-8859-1
user.name == farid
user.home == /home/farid
user.dir == /tmp/install.dir.17400
user.language == en
user.region == US
__________________________________________________________________________
Installer: InstallAnywhere 5.0.6 Enterprise Build 1671
__________________________________________________________________________
System's temporary directory = /tmp
RepositoryManager: Trying fallback repository location...
RepositoryManager: lock acquired on: /home/farid/.com.zerog.registry.lock
ZGUtil: Data zip found in: /tmp/install.dir.17400/InstallerData/installer.zip
RepositoryManager: Local repository location is: /home/farid/VaudTax2003/UninstallerData/.com.zerog.registry.xml
CDS: Free Disk Space in bytes == 90084188160
CDS: Required Disk Space in bytes == 58619067
installUnixJRE: the source VM tar: /tmp/install.dir.17400/Linux/resource/vm.tar
exists = true
installUnixJRE: the source VMRoot: /tmp/install.dir.17400/Linux/resource/jre
exists = true
installUnixJRE: the dest VMRoot: /home/farid/VaudTax2003/jre
exists = true
#
# INSTALLING VM: /home/farid/VaudTax2003/jre
#
installUnixJRE: Using new TAR technique...
Destination path for tar extraction (sans 'jre') =
/home/farid/VaudTax2003
installUnixJRE: install shell script:
#!/bin/sh
echo "InstallUnixJRE Script begun..."
cd '/home/farid/VaudTax2003'
tar xvf '/tmp/install.dir.17400/Linux/resource/vm.tar'
echo "...InstallUnixJRE Script complete."
##### SCRIPT END ############
The script exited with an error: 1
Retrying Installables deferred in pass 0
Deferral retries done because:
There were no deferrals in the last pass.
RepositoryManager: lock acquired on: /home/farid/.com.zerog.registry.lock
RepositoryManager: repository successfully written to stable storage
RepositoryManager: lock acquired on: /home/farid/VaudTax2003/UninstallerData/.com.zerog.registry.lock
RepositoryManager: repository successfully written to stable storage
Setting $INSTALL_SUCCESS$ to WARNING
cleanUp()
calling cleanUpUNIX()
[7m========= JAVA Finished ==============================================[0m
Removing tmp install dir: "/tmp/install.dir.17400"
More information about the gull
mailing list