vtk 3.1 problem with ./configure. Unix guru's please help!

Audrius Stundzia adv_biologic at hotmail.com
Fri Feb 18 10:02:24 EST 2000


Dear fellow vtker's

When I try to run "./configure" with the following switches

./configure --with-x --with-opengl --with-shared --with-patented
--with-contrib --with-local

I get the following output, ending in an error message.

loading cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... g++
checking whether the C++ compiler (g++  ) works... yes
checking whether the C++ compiler (g++  ) is a cross-compiler... yes
checking whether we are using GNU C++... yes
checking whether g++ accepts -g... yes
checking for ranlib... :
checking for a BSD compatible install... ./install-sh -c
checking how to run the C preprocessor... g++
checking for X... libraries /usr/openwin/lib, headers /usr/openwin/include
checking whether -R must be followed by a space... no
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... no
checking for gethostbyname in -lnsl... yes
checking for connect... no
checking for connect in -lsocket... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether byte ordering is bigendian...
configure: error: can not run test program while cross compiling

The config.log file is attached

To which I reply with a big "Huh???". Looking at the log file,
it seems that configure can't find the libraries ldnet and ldnet_stub. As 
far as I can make out, these are libraries that are DECnet (!!!) related. 
Why I (or more precisely vtk) would need them for a Solaris
compilation is beyond me!

One solution that was suggested is that I remove the confige.cache
file. I tried this and still end up with the same error.

Looking at the configure file, the offending lines appear to be

  # Check for system-dependent libraries X programs must link with.
  # Do this before checking for the system-independent R6 libraries
  # (-lICE), since we may need -lsocket or whatever for X linking.

  if test "$ISC" = yes; then
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  else
    # Martyn.Johnson at cl.cam.ac.uk says this is needed for Ultrix, if the X
    # libraries were built with DECnet support.  And karl at cs.umb.edu says
    # the Alpha needs dnet_stub (dnet does not exist).
    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
echo "configure:1351: checking for dnet_ntoa in -ldnet" >&5
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldnet  $LIBS"

Any insight into how I can fix this problem and get on with
compiling vtk 3.1 would be most appreciated. Thanks.

This occured with the nightly release vtk 3.1 on 16 Feb 2000.

My system:

Sun SPARC Ultra-60
Solaris 2.6
gcc-2.95.2
make-3.76.1
vtk 3.1

Btw, I've ./configured and compiled vtk 2.4 in the past with no problems
(using gcc-2.8.1).

Regards,

Audrius
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 5652 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20000218/42bcc4b1/attachment-0001.obj>


More information about the vtkusers mailing list