Hello Parrot-Developers, I am trying to build a 32-bit statically linked binary of parrot (2.6) on a Redhat machine (Red Hat Enterprise Linux Server release 5.2 (Tikanga)). The following is the configure command I am using.
*perl Configure.pl --m=32 --parrot_is_shared=0 --linkflags=-static* (If I do not provide static it tries to link with shared library of parrot which is not present with parrot_is_shared=0) The make command after above configure fails (while building blib/lib/libparrot.so.2.6.0 ) with following error. /usr/bin/ld: warning: i386 architecture of input file `src/string/api.o' is > incompatible with i386:x86-64 output .... .... So I removed the *-m64* flag from the Makefile. After removing *-m64* from the Makefile, I am getting following error. gcc -m32 -o pbc_to_exe pbc_to_exe.o > /net/gladstone/w/dskhudia/javascript/other_vms/parrot/parrot-2.6.0/src/parrot_config.o > -L/net/gladstone/w/dskhudia/javascript/other_vms/parrot/parrot-2.6.0/blib/lib > -lparrot -Wl,-E > -Wl,-rpath,/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -static > -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lrt -lgmp -lreadline > -lncurses /net/gladstone/w/dskhudia/javascript/other_vms/parrot/parrot-2.6.0/blib/lib/libparrot.a(platform.o): > In function `Parrot_dlopen': /n/gladstone/w/dskhudia/javascript/other_vms/parrot/parrot-2.6.0/config/gen/platform/generic/dl.c:45: > warning: Using 'dlopen' in statically linked applications requires at > runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib/libreadline.a(complete.o): > In function `rl_username_completion_function': (.text+0x23f4): warning: Using 'getpwent' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib/libreadline.a(tilde.o): > In function `tilde_expand_word': (.text+0x1d5): warning: Using 'getpwnam' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib/libreadline.a(shell.o): > In function `sh_get_home_dir': (.text+0x7f): warning: Using 'getpwuid' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib/libreadline.a(complete.o): > In function `rl_username_completion_function': (.text+0x23ef): warning: Using 'setpwent' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib/libreadline.a(complete.o): > In function `rl_username_completion_function': (.text+0x2493): warning: Using 'endpwent' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking /net/gladstone/w/dskhudia/javascript/other_vms/parrot/parrot-2.6.0/blib/lib/libparrot.a(socket_unix.o): > In function `get_sockaddr_in': /n/gladstone/w/dskhudia/javascript/other_vms/parrot/parrot-2.6.0/src/io/socket_unix.c:469: > warning: Using 'gethostbyname' in statically linked applications requires at > runtime the shared libraries from the glibc version used for linking Class 'File' not found current instr.: 'link_file' pc 1251 (tools/dev/pbc_to_exe.pir:669) called from Sub 'main' pc 158 (tools/dev/pbc_to_exe.pir:126) make: *** [pbc_to_exe] Error 1 Could anyone please help in getting around this error? Thanks Daya S Khudia
_______________________________________________ http://lists.parrot.org/mailman/listinfo/parrot-dev
