Re: error configuring libwww for strongarm

Jason Kingan <[email protected]> Fri, 17 Jan 2003 08:50:28 -0700
Newsgroups gmane.comp.web.viewml.devel
Message-ID <[email protected]>
Mildred,

In the past when I've compiled libwww for ARM, I've had to resort to an ugly 
hack that, while it works, needs a real solution. I've run ./configure on my 
x86 box using the standard toolset. Then when I go to make it, I do the 
following:

bash$ CC=arm-linux-gcc CXX=arm-linux-g++ make -e

which overrides the makefile's idea of what the compiler should be and builds 
using the arm toolset.

Obviously, the correct fix would be to fix the configure script to allow 
cross-compilation, which to my knowledge, has not been done.

Hope this helps,
Jason Kingan
Century Software

On Thursday 16 January 2003 11:19 pm, you wrote:
> Hi!  I would like to build viewml for strongarn assabet.  For the meantime,
> I am still compiling libwww for assabet on top of embedded linix OS.  I ran
> configure and had the following errors.  Please help.
> Thank you very much
>
> Mildred
>
>
> ---------------------
>
> [bjay@arwen w3c-libwww-5.2.8]$ AR=arm-linux-ar AS=arm-linux-as
> CC=arm-linux-gcc CXX=arm-linux-c++ LD=arm-linux-ld RANLIB=arm-linux-ranlib
> [bjay@arwen w3c-libwww-5.2.8]$ export AR AS CC CXX LD RANLIB
> [bjay@arwen w3c-libwww-5.2.8]$ ./configure --prefix=arm --host=i686
> --includedir=/armdir/usr/local/arm/include/
> libdir=/armdir/usr/local/arm/lib configure: warning:
> libdir=/armdir/usr/local/arm/lib: invalid host type creating cache
> ./config.cache
> checking host system type... i686-pc-none
> checking target system type... libdir=/armdir/usr/local/arm/lib
> checking build system type... libdir=/armdir/usr/local/arm/lib
> checking for a BSD compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for working makeinfo... found
> checking for gcc... arm-linux-gcc
> checking whether the C compiler (arm-linux-gcc  ) works... yes
> checking whether the C compiler (arm-linux-gcc  ) is a cross-compiler...
> yes checking whether we are using GNU C... yes
> checking whether arm-linux-gcc accepts -g... yes
> checking for c++... arm-linux-c++
> checking whether the C++ compiler (arm-linux-c++  ) works... yes
> checking whether the C++ compiler (arm-linux-c++  ) is a cross-compiler...
>  yes checking whether we are using GNU C++... yes
> checking whether arm-linux-c++ accepts -g... yes
> checking for Cygwin environment... no
> no
> checking for executable suffix... no
> checking for ranlib... arm-linux-ranlib
> checking for ld used by GCC... arm-linux-ld
> checking if the linker (arm-linux-ld) is GNU ld... yes
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking command to parse /usr/bin/nm -B output... yes
> checking for _ prefix in compiled symbols... (cached) no
> checking whether ln -s works... yes
> updating cache ./config.cache
> checking for object suffix... o
> checking for arm-linux-gcc option to produce PIC... -fPIC
> checking if arm-linux-gcc PIC flag -fPIC works... yes
> checking if arm-linux-gcc supports -c -o file.o... yes
> checking if arm-linux-gcc supports -c -o file.lo... yes
> checking if arm-linux-gcc supports -fno-rtti -fno-exceptions ... yes
> checking if arm-linux-gcc static flag -static works... -static
> checking if the linker (arm-linux-ld) is GNU ld... yes
> checking whether the linker (arm-linux-ld) supports shared libraries... yes
> checking command to parse /usr/bin/nm -B output... yes
> checking how to hardcode library paths into programs... immediate
> checking for arm-linux-ld option to reload object files... -r
> checking dynamic linker characteristics... no
> checking if libtool supports shared libraries... no
> checking whether to build shared libraries... no
> checking whether to build static libraries... yes
> checking for objdir... .libs
> creating libtool
> loading cache ./config.cache
> checking whether make sets ${MAKE}... (cached) yes
> checking for a BSD compatible install... /usr/bin/install -c
> checking for POSIXized ISC... no
> checking how to run the C preprocessor... /lib/cpp
> checking for X... libraries /usr/X11R6/lib, headers
> checking whether to define additional compiler specific flags... no
> checking for telnet... telnet
> checking for rlogin... rlogin
> checking for tn3270... no
> checking for x3270... no
> checking for rm... /bin/rm
> checking for ar... /usr/bin/ar
> checking for mkdir... /bin/mkdir
> checking for chmod... /bin/chmod
> checking for cp... /bin/cp
> checking for tar... /bin/tar
> checking for cvs... /usr/bin/cvs
> checking for sed... /bin/sed
> checking for gzip... /bin/gzip
> checking for www... no
> checking whether ln -s works... (cached) yes
> checking for resolv.conf... /etc/resolv.conf
> checking for IceConnectionNumber in -lICE... no
> checking for socket in -lsocket... no
> checking for connect in -linet... no
> checking for t_accept in -lnsl... no
> checking for dlopen in -ldl... yes
> checking for appkit/appkit.h... no
> checking for appkit.h... no
> checking for arpa/inet.h... yes
> checking for inet.h... no
> checking for net/errno.h... no
> checking for sys/errno.h... yes
> checking for errno.h... yes
> checking for netinet/in.h... yes
> checking for in.h... no
> checking for netinet/tcp.h... yes
> checking for tcp.h... no
> checking for sys/fcntl.h... yes
> checking for fcntl.h... yes
> checking for sys/file.h... yes
> checking for sys/ioctl.h... yes
> checking for sys/ipc.h... yes
> checking for sys/limits.h... no
> checking for limits.h... yes
> checking for sys/machine.h... no
> checking for sys/resource.h... yes
> checking for resource.h... no
> checking for sys/select.h... yes
> checking for select.h... no
> checking for sys/socket.h... yes
> checking for socket.h... no
> checking for sys/stat.h... yes
> checking for stat.h... no
> checking for sys/syslog... no
> checking for syslog.h... yes
> checking for sys/systeminfo.h... no
> checking for sys/time.h... yes
> checking for time.h... yes
> checking for sys/types.h... yes
> checking for types.h... no
> checking for sys/unistd.h... yes
> checking for unistd.h... yes
> checking for wais/wais.h... no
> checking for wais.h... no
> checking for bsdtime.h... no
> checking for bsdtypes.h... no
> checking for ctype.h... yes
> checking for cursesX.h... no
> checking for curses.h... yes
> checking for dn.h... no
> checking for dnetdb.h... no
> checking for grp.h... yes
> checking for libc.h... no
> checking for malloc.h... yes
> checking for manifest.h... no
> checking for memory.h... yes
> checking for netdb.h... yes
> checking for pwd.h... yes
> checking for rxposix.h... no
> checking for regex.h... yes
> checking for stdefs.h... no
> checking for stdio.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for strings.h... yes
> checking for termios.h... yes
> checking for unixlib.h... no
> checking for dirent.h that defines DIR... no
> checking for sys/ndir.h that defines DIR... no
> checking for sys/dir.h that defines DIR... no
> checking for ndir.h that defines DIR... no
> checking for opendir in -lx... no
> checking for dir.h... no
> checking for direct.h... no
> checking for ANSI C header files... yes
> checking for sys/wait.h that is POSIX.1 compatible... no
> checking whether time.h and sys/time.h may both be included... no
> checking whether stat file-mode macros are broken... no
> checking for uid_t in sys/types.h... yes
> checking for pid_t... yes
> checking type of array argument to getgroups... gid_t
> checking for mode_t... yes
> checking for size_t... yes
> checking return type of signal handlers... int
> checking for BOOLEAN... no
> checking for u_char... yes
> checking for u_short... yes
> checking for u_long... yes
> checking size of char... configure: error: can not run test program while
> cross compiling
> [bjay@arwen w3c-libwww-5.2.8]$
>
> -------------------------------------------------------
>
>
> #############################################################
> This message is sent to you because you are subscribed to
>   the mailing list <[email protected]>.
> To unsubscribe, E-mail to: <[email protected]>
> To switch to the DIGEST mode, E-mail to <[email protected]>
> To switch to the INDEX mode, E-mail to <[email protected]>
> Send administrative queries to  <[email protected]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list <[email protected]>.
To unsubscribe, E-mail to: <[email protected]>
To switch to the DIGEST mode, E-mail to <[email protected]>
To switch to the INDEX mode, E-mail to <[email protected]>
Send administrative queries to  <[email protected]>