Suse and OCC ./configure problem

Hi all,

I am trying to run ./configure
and I have get some tcl problem.
It looks like that I have not set up my TCL correctly
I have no idea how to set it up.

the following message is the result of my ./configure
can anyone gives me a hand?

Thanks a lot!

//////////////////////////////
@linux:~/OpenCASCADE5.2/ros> ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... 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 how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking for library containing strerror... none required
checking whether byte ordering is bigendian... no
checking for ld used by GCC... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /usr/bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
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... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC 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.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... no
creating libtool
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for gawk... (cached) gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for bison... bison -y
checking whether make sets $(MAKE)... (cached) yes
checking for main in -le... no
checking for main in -links... no
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for ANSI C header files... (cached) yes
checking for C header files ... checking for dlfcn.h... (cached) yes
checking dl.h usability... no
checking dl.h presence... no
checking for dl.h... no
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking osfcn.h usability... no
checking osfcn.h presence... no
checking for osfcn.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking sysent.h usability... no
checking sysent.h presence... no
checking for sysent.h... no
checking for unistd.h... (cached) yes
checking sys/unistd.h usability... yes
checking sys/unistd.h presence... yes
checking for sys/unistd.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/signal.h usability... yes
checking sys/signal.h presence... yes
checking for sys/signal.h... yes
checking sigfpe.h usability... no
checking sigfpe.h presence... no
checking for sigfpe.h... no
checking floatingpoint.h usability... no
checking floatingpoint.h presence... no
checking for floatingpoint.h... no
checking sys/machsig.h usability... no
checking sys/machsig.h presence... no
checking for sys/machsig.h... no
checking sys/siginfo.h usability... no
checking sys/siginfo.h presence... no
checking for sys/siginfo.h... no
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for strings.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking sys/vnode.h usability... no
checking sys/vnode.h presence... no
checking for sys/vnode.h... no
checking for C++ header files ... checking how to run the C++ preprocessor... g++ -E
checking istream usability... yes
checking istream presence... yes
checking for istream... yes
checking ostream usability... yes
checking ostream presence... yes
checking for ostream... yes
checking for istream... (cached) yes
checking fstream usability... yes
checking fstream presence... yes
checking for fstream... yes
checking ios usability... yes
checking ios presence... yes
checking for ios... yes
checking iomanip usability... yes
checking iomanip presence... yes
checking for iomanip... yes
checking iostream usability... yes
checking iostream presence... yes
checking for iostream... yes
checking stream.h usability... yes
checking stream.h presence... yes
checking for stream.h... yes
checking strstream.h usability... no
checking strstream.h presence... no
checking for strstream.h... no
checking istream.h usability... yes
checking istream.h presence... yes
checking for istream.h... yes
checking ostream.h usability... yes
checking ostream.h presence... yes
checking for ostream.h... yes
checking fstream.h usability... yes
checking fstream.h presence... yes
checking for fstream.h... yes
checking for stdlib.h... (cached) yes
checking ios.h usability... no
checking ios.h presence... no
checking for ios.h... no
checking iostream.h usability... yes
checking iostream.h presence... yes
checking for iostream.h... yes
checking iomanip.h usability... yes
checking iomanip.h presence... yes
checking for iomanip.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking siginfo.h usability... no
checking siginfo.h presence... no
checking for siginfo.h... no
checking bits/sigset.h usability... yes
checking bits/sigset.h presence... yes
checking for bits/sigset.h... yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking for sys/types.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking X11/extensions/transovl.h usability... no
checking X11/extensions/transovl.h presence... no
checking for X11/extensions/transovl.h... no
checking X11/extensions/readdisplay.h usability... no
checking X11/extensions/readdisplay.h presence... no
checking for X11/extensions/readdisplay.h... no
checking X11/extensions/multibuf.h usability... no
checking X11/extensions/multibuf.h presence... yes
configure: WARNING: X11/extensions/multibuf.h: present but cannot be compiled
configure: WARNING: X11/extensions/multibuf.h: check for missing prerequisite headers?
configure: WARNING: X11/extensions/multibuf.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for X11/extensions/multibuf.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking libc.h usability... no
checking libc.h presence... no
checking for libc.h... no
checking for Tcl configuration... configure: WARNING: Can't find Tcl configuration definitions

Danis's picture

Hi All

After I tried this

./configure --with-tk=/usr/lib --with-tcl=/usr/l
ib --with-gl-include=/usr/include

it gaves me the result like this

config.status: creating adm/make/TKXDEDRAW/Makefile
config.status: creating adm/make/DRAWEXE/Makefile
config.status: creating adm/make/TKWOK/Makefile
config.status: creating adm/make/TKWOKTcl/Makefile
config.status: creating adm/make/TKTCPPExt/Makefile
config.status: creating adm/make/TKCDLFront/Makefile
config.status: creating adm/make/TKCPPExt/Makefile
config.status: creating adm/make/TKCPPClient/Makefile
config.status: creating adm/make/TKIDLFront/Makefile
config.status: creating adm/make/TKCPPJini/Makefile
config.status: creating adm/make/TKCPPIntExt/Makefile
config.status: creating adm/make/TKCSFDBSchema/Makefile
config.status: creating adm/make/WOKSH/Makefile
config.status: creating adm/make/WOKLibs/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

does this mean that I have compiled it with no errors?

vio's picture

Hi Danis,
First, I am a OCC newbie also. But 'configure' doesn't compile anything. It just generates Makefiles. So after 'configure' runs successfully, you must run 'make' (for info, do 'man make'). 'Make' is a program which invokes the compiler & linker (g++) following the Makefile. By the way, this is generic process to build 'any' app/lib on *NIX systems, not just OCC.

Hope this helps,
Vio

Danis's picture

hi Vio,

Thanks for your imformation, I know that after configure i have to do the 'make'.. which I did. However, there are still many problems...that is why I wonder if I have missed some thing when I am doing the ./configure. plus..I am not really understand what the last few lines of my running result tried to tell me... and hope that I can get someone to amswer my question.....

Thanks Vio

vio's picture

if it would make you feel better, I experienced exactly the same problem not long ago. Only I am on Debian, but this shouldn't make much difference. No, you didn't miss anything, the configure script is just not very bright. My own solution is to patch up a scons script instead (much more intelligent build system). Hopefully, the OCC distro contains these '.comp' and '.lnk' files in ros/adm/Linux, so this shouldn't be too dificult. At least I'll give it a try :)
(hmm.. provided I manage to free enough disk space on my box...)
vio

Danis's picture

hi vio,

Thansk for the information, my Linux knowledge is too weak, and I think it will take me a while to do the configure file ...

Thanks again!

Saravana's picture

I did configure, but if i use 'make", i am getting following error.
configure.in.4:version mismatch. This is Automake 1.7.9
Configure.in.4: but the definition used by this AM_INIT_AUTOMAKE
configure.in.4: comes from Automake 1.7.3. You should recreate
configure.in.4: aclocal.m4 with aclocal and run remake again.
make[3]: ***{makefile.in] Error 1

i am new to this enviroment. pls help me to solve this problem

Jason's picture

I have the same errors for both X11 and Tcl. I have tcl 8.4.11 and tk 8.4.11 and I still get the Tcl error.
Have you figured it out? I can't uninstall tcl/tk due to other dependencies.

-Jason

Jason's picture

two things;
1. the env.ksh is not exactly correct. Here is mine after I made some changes.

#!/bin/ksh -f

export CASROOT=/opt/OpenCASCADE5.2/ros
export PARTYROOT=/opt/OpenCASCADE5.2
export OS_NAME='Linux'
if [ -z "PATH" ];
then PATH=$PARTYROOT/3rdparty/$OS_NAME/TclTk/bin:$CASROOT/$OS_NAME/bin;
else PATH=$PARTYROOT/3rdparty/$OS_NAME/TclTk/bin:$CASROOT/$OS_NAME/bin:$PATH;
fi
export PATH
if [ -z "LD_LIBRARY_PATH" ];
then export LD_LIBRARY_PATH=$PARTYROOT/3rdparty/$OS_NAME/TclTk/lib:$CASROOT/$OS_NAME/lib;
else export LD_LIBRARY_PATH=$PARTYROOT/3rdparty/$OS_NAME/TclTk/lib:$CASROOT/$OS_NAME/lib:$LD_LIBRARY_PATH;
fi

export CSF_MDTVFontDirectory=$CASROOT/src/FontMFT
export CSF_LANGUAGE=us
export MMGT_CLEAR=1
export CSF_EXCEPTION_PROMPT=1
export CSF_SHMessage=$CASROOT/src/SHMessage
export CSF_MDTVTexturesDirectory=$CASROOT/src/Textures
export CSF_XSMessage=$CASROOT/src/XSMessage
export CSF_StandardDefaults=$CASROOT/src/StdResource
export CSF_PluginDefaults=$CASROOT/src/StdResource
export CSF_XCAFDefaults=$CASROOT/src/StdResource
export CSF_GraphicShr=$CASROOT/$OS_NAME/lib/libTKOpenGl.so
export CSF_UnitsLexicon=$CASROOT/src/UnitsAPI/Lexi_Expr.dat
export CSF_UnitsDefinition=$CASROOT/src/UnitsAPI/Units.dat
export CSF_IGESDefaults=$CASROOT/src/XSTEPResource
export CSF_STEPDefaults=$CASROOT/src/XSTEPResource

export TCLHOME=$PARTYROOT/3rdparty/$OS_NAME/TclTk
export TCLLIBPATH=$TCLHOME/lib
if [ $OS_NAME = "SunOS" ]; then
export ITK_LIBRARY=$TCLLIBPATH/itk3.2
export ITCL_LIBRARY=$TCLLIBPATH/itcl3.2
export TIX_LIBRARY=$TCLLIBPATH/tix8.1
export TK_LIBRARY=$TCLLIBPATH/tk8.3
export TCL_LIBRARY=$TCLLIBPATH/tcl8.3;
elif [ $OS_NAME = "Linux" ]; then
export ITK_LIBRARY=$TCLLIBPATH/itk3.0
export ITCL_LIBRARY=$TCLLIBPATH/itcl3.0
if [ -n "TIX_LIBRARY" ];
then TIX_LIBRARY="";
fi
export TIX_LIBRARY
export TK_LIBRARY=$TCLLIBPATH/tk8.0
export TCL_LIBRARY=$TCLLIBPATH/tcl8.0
fi

2. When installing use the following command from the /opt/OpenCASCADE5.2/ros directory:

./configure --with-tk=/usr/lib/ --with-tcl=/usr/lib/

Later,

-Jason