12 messages in net.java.dev.jna.usersRe: [jna-users] Example not running ...
FromSent OnAttachments
Steve RamageMay 13, 2008 4:24 pm 
Timothy WallMay 13, 2008 5:05 pm 
Steve RamageMay 14, 2008 10:28 am 
Steve RamageMay 14, 2008 10:36 am 
Timothy WallMay 14, 2008 10:47 am 
Timothy WallMay 14, 2008 10:56 am 
Steve RamageMay 14, 2008 11:35 am 
Timothy WallMay 14, 2008 12:00 pm 
Steve RamageMay 14, 2008 1:51 pm 
Steve RamageMay 14, 2008 3:53 pm 
Steve RamageMay 14, 2008 6:03 pm 
Timothy WallMay 19, 2008 7:43 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Example not running on Solaris 9 x86.Actions...
From:Steve Ramage (qoox@steve.ipapp.com)
Date:May 14, 2008 10:36:49 am
List:net.java.dev.jna.users

Trying to build on Solaris 9 from src.zip:

$make Configuring libffi (hostname.goes.here) checking build system type... i386-pc-solaris2.9 checking host system type... i386-pc-solaris2.9 checking target system type... i386-pc-solaris2.9 checking for a BSD-compatible install... /home/sramage/new/native/libffi/install-sh -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc ... gcc3 checking whether gcc and cc understand -c and -o together... yes checking for a sed that does not truncate output... /usr/bin/sed checking for egrep... egrep checking for fgrep... fgrep checking for ld used by gcc ... /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /usr/ccs/bin/nm -p checking the name lister (/usr/ccs/bin/nm -p) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 786240 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... no checking for /usr/ccs/bin/ld option to reload object files... -r checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... : checking for ranlib... : checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... no checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/ccs/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... yes checking dynamic linker characteristics... solaris2.9 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking whether to enable maintainer-specific portions of Makefiles... no checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking for mmap... yes checking for sys/mman.h... (cached) yes checking for mmap... (cached) yes checking whether read-only mmap of a plain file works... yes checking whether mmap from /dev/zero works... yes checking for MAP_ANON(YMOUS)... yes checking whether mmap with MAP_ANON(YMOUS) works... yes checking for ANSI C header files... (cached) yes checking for memcpy... yes checking for working alloca.h... yes checking for alloca... yes checking for double... yes checking size of double... 8 checking for long double... yes checking size of long double... 12 checking whether byte ordering is bigendian... no checking assembler .cfi pseudo-op support... no checking whether .eh_frame section should be read-only... no checking for __attribute__((visibility("hidden")))... no configure: creating ./config.status config.status: creating include/Makefile config.status: creating include/ffi.h config.status: creating Makefile config.status: creating testsuite/Makefile config.status: creating fficonfig.h config.status: linking /home/sramage/new/native/libffi/src/x86/ffitarget.h to include/ffitarget.h config.status: executing default-1 commands Adding multilib support to Makefile in /home/sramage/new/native/libffi with_multisubdir= config.status: executing depfiles commands config.status: executing libtool commands config.status: executing include commands config.status: executing src commands make -C ../build/native/libffi make[1]: Entering directory `/home/sramage/new/build/native/libffi' make "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=-g -O2" "CXXFLAGS=" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "INSTALL=/home/sramage/new/native/libffi/install-sh -c" "INSTALL_DATA=/home/sramage/new/native/libffi/install-sh -c -m 644" "INSTALL_PROGRAM=/home/sramage/new/native/libffi/install-sh -c" "INSTALL_SCRIPT=/home/sramage/new/native/libffi/install-sh -c" "JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=" "MAKE=make" "MAKEINFO=/bin/bash /home/sramage/new/native/libffi/missing --run makeinfo " "PICFLAG=" "PICFLAG_FOR_TARGET=" "RUNTESTFLAGS=" "SHELL=/bin/bash" "exec_prefix=/usr/local" "infodir=/usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local" "AR=ar" "AS=as" "CC=gcc " "CXX=g++" "LD=/usr/ccs/bin/ld" "NM=/usr/ccs/bin/nm -p" "RANLIB=:" "DESTDIR=" all-recursive make[2]: Entering directory `/home/sramage/new/build/native/libffi' true "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=-g -O2" "CXXFLAGS=" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "INSTALL=/home/sramage/new/native/libffi/install-sh -c" "INSTALL_DATA=/home/sramage/new/native/libffi/install-sh -c -m 644" "INSTALL_PROGRAM=/home/sramage/new/native/libffi/install-sh -c" "INSTALL_SCRIPT=/home/sramage/new/native/libffi/install-sh -c" "JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=" "MAKE=make" "MAKEINFO=/bin/bash /home/sramage/new/native/libffi/missing --run makeinfo " "PICFLAG=" "PICFLAG_FOR_TARGET=" "RUNTESTFLAGS=" "SHELL=/bin/bash" "exec_prefix=/usr/local" "infodir=/usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local" "AR=ar" "AS=as" "CC=gcc " "CXX=g++" "LD=/usr/ccs/bin/ld" "NM=/usr/ccs/bin/nm -p" "RANLIB=:" "DESTDIR=" DO=all multi-do # make Making all in include cat: cannot open /home/sramage/new/native/libffi/../gcc/BASE-VER make[3]: Entering directory `/home/sramage/new/build/native/libffi/include' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/sramage/new/build/native/libffi/include' Making all in testsuite make[3]: Entering directory `/home/sramage/new/build/native/libffi/testsuite' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/sramage/new/build/native/libffi/testsuite' make[3]: Entering directory `/home/sramage/new/build/native/libffi' depbase=`echo src/debug.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \ if /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/sramage/new/native/libffi -I. -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -Wall -g -fexceptions -g -O2 -MT src/debug.lo -MD -MP -MF "$depbase.Tpo" -c -o src/debug.lo /home/sramage/new/native/libffi/src/debug.c; \ then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/sramage/new/native/libffi -I. -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -Wall -g -fexceptions -g -O2 -MT src/debug.lo -MD -MP -MF src/.deps/debug.Tpo -c /home/sramage/new/native/libffi/src/debug.c -fPIC -DPIC -o src/.libs/debug.o depbase=`echo src/prep_cif.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \ if /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/sramage/new/native/libffi -I. -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -Wall -g -fexceptions -g -O2 -MT src/prep_cif.lo -MD -MP -MF "$depbase.Tpo" -c -o src/prep_cif.lo /home/sramage/new/native/libffi/src/prep_cif.c; \ then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/sramage/new/native/libffi -I. -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -Wall -g -fexceptions -g -O2 -MT src/prep_cif.lo -MD -MP -MF src/.deps/prep_cif.Tpo -c /home/sramage/new/native/libffi/src/prep_cif.c -fPIC -DPIC -o src/.libs/prep_cif.o depbase=`echo src/types.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \ if /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/sramage/new/native/libffi -I. -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -Wall -g -fexceptions -g -O2 -MT src/types.lo -MD -MP -MF "$depbase.Tpo" -c -o src/types.lo /home/sramage/new/native/libffi/src/types.c; \ then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/sramage/new/native/libffi -I. -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -Wall -g -fexceptions -g -O2 -MT src/types.lo -MD -MP -MF src/.deps/types.Tpo -c /home/sramage/new/native/libffi/src/types.c -fPIC -DPIC -o src/.libs/types.o depbase=`echo src/raw_api.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \ if /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/sramage/new/native/libffi -I. -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -Wall -g -fexceptions -g -O2 -MT src/raw_api.lo -MD -MP -MF "$depbase.Tpo" -c -o src/raw_api.lo /home/sramage/new/native/libffi/src/raw_api.c; \ then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/sramage/new/native/libffi -I. -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -Wall -g -fexceptions -g -O2 -MT src/raw_api.lo -MD -MP -MF src/.deps/raw_api.Tpo -c /home/sramage/new/native/libffi/src/raw_api.c -fPIC -DPIC -o src/.libs/raw_api.o depbase=`echo src/java_raw_api.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \ if /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/sramage/new/native/libffi -I. -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -Wall -g -fexceptions -g -O2 -MT src/java_raw_api.lo -MD -MP -MF "$depbase.Tpo" -c -o src/java_raw_api.lo /home/sramage/new/native/libffi/src/java_raw_api.c; \ then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/sramage/new/native/libffi -I. -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -Wall -g -fexceptions -g -O2 -MT src/java_raw_api.lo -MD -MP -MF src/.deps/java_raw_api.Tpo -c /home/sramage/new/native/libffi/src/java_raw_api.c -fPIC -DPIC -o src/.libs/java_raw_api.o depbase=`echo src/closures.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \ if /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/sramage/new/native/libffi -I. -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -Wall -g -fexceptions -g -O2 -MT src/closures.lo -MD -MP -MF "$depbase.Tpo" -c -o src/closures.lo /home/sramage/new/native/libffi/src/closures.c; \ then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/sramage/new/native/libffi -I. -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -Wall -g -fexceptions -g -O2 -MT src/closures.lo -MD -MP -MF src/.deps/closures.Tpo -c /home/sramage/new/native/libffi/src/closures.c -fPIC -DPIC -o src/.libs/closures.o depbase=`echo src/x86/ffi.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \ if /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/sramage/new/native/libffi -I. -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -Wall -g -fexceptions -g -O2 -MT src/x86/ffi.lo -MD -MP -MF "$depbase.Tpo" -c -o src/x86/ffi.lo /home/sramage/new/native/libffi/src/x86/ffi.c; \ then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/sramage/new/native/libffi -I. -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -Wall -g -fexceptions -g -O2 -MT src/x86/ffi.lo -MD -MP -MF src/x86/.deps/ffi.Tpo -c /home/sramage/new/native/libffi/src/x86/ffi.c -fPIC -DPIC -o src/x86/.libs/ffi.o /bin/bash ./libtool --mode=compile gcc -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -g -O2 -c -o src/x86/sysv.lo /home/sramage/new/native/libffi/src/x86/sysv.S libtool: compile: gcc -I. -I/home/sramage/new/native/libffi/include -Iinclude -I/home/sramage/new/native/libffi/src -g -O2 -c /home/sramage/new/native/libffi/src/x86/sysv.S -fPIC -DPIC -o src/x86/.libs/sysv.o Assembler: "/var/tmp//ccilx5Qy.s", line 166 : Syntax error "/var/tmp//ccilx5Qy.s", line 166 : Illegal character: <7e> "/var/tmp//ccilx5Qy.s", line 167 : Syntax error "/var/tmp//ccilx5Qy.s", line 167 : Illegal character: <7e> "/var/tmp//ccilx5Qy.s", line 174 : Syntax error "/var/tmp//ccilx5Qy.s", line 174 : Illegal character: <7e> "/var/tmp//ccilx5Qy.s", line 237 : Warning: Illegal subtraction - symbols from different sections: ".LFB1", ".DOT-3" "/var/tmp//ccilx5Qy.s", line 256 : Warning: Illegal subtraction - symbols from different sections: ".LFB2", ".DOT-4" "/var/tmp//ccilx5Qy.s", line 279 : Warning: Illegal subtraction - symbols from different sections: ".LFB3", ".DOT-5" make[3]: *** [src/x86/sysv.lo] Error 1 make[3]: Leaving directory `/home/sramage/new/build/native/libffi' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/sramage/new/build/native/libffi' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/sramage/new/build/native/libffi' make: *** [../build/native/libffi/.libs/libffi_convenience.a] Error 2