Randy Polson:
|I'm trying to configure DX to use IM5.3.9 on sunos solaris 5.7. The
|configure script gives an error with the IM GetImageInfo(). ... I'm
|using the configure from the 4.1.2tarball since I get an error with
|autoheader and autoconf...
...
|You were right. There are two tiff libraries, one in /usr/local/lib and
|another in /usr/openwin/lib. Since I'm only a lowly user, I changed the
|configure script lines 5519,5562 from "-ltiff" to "-L/usr/local/lib
|-ltiff".
Try the attached patch to configure. I needed this when building 4.1.3 on
Solaris 2.7 earlier this summer.
Also FWIW here is how I've built DX 4.1.3 on Solaris 2.7 with gcc and
ImageMagick 5.3.4. Note that I installed Magick and all of its
dependencies off of $HOME/software/include & $HOME/software/lib.
Substitute /usr/local/include & /usr/local/lib in your case. Also, make
sure /usr/local/... comes before /usr/openwin/... in your include and
library paths.
Randy
------------------------------------------------------------------------------
Solaris (w/ gcc w/ Magick):
env ARCH="" \
CXX="/usr/local/bin/g++" \
CC="/usr/local/bin/gcc" \
CFLAGS="-O2" \
CXXFLAGS="-O2" \
CPPFLAGS="-I$HOME/software/include -I/usr/openwin/include
-I/usr/openwin/include/X11" \
LDFLAGS="-Wl,-R${HOME}/software/lib,-R/usr/openwin/lib,-R/usr/local/lib
-L${HOME}/software/lib -L/usr/openwin/lib -L/usr/local/lib" \
configure --prefix=$HOME/software/dx-4.1.3-mod
------------------------------------------------------------------------------
Solaris (w/ Sun Compilers w/o Magick):
env CC=cc \
CXX="CC -library=iostream" \
LDFLAGS="-R/usr/local/lib" \
configure --prefix=$HOME/software/dx-4.1.0
------------------------------------------------------------------------------
--
Randall Hopper (mailto:[EMAIL PROTECTED])
Lockheed Martin Operation Support
EPA Scientific Visualization Center
US EPA MD/24 ERC-1A; RTP, NC 27711
--- Begin Message ---
1. configure adds "LEX = lex" to Makefiles. This doesn't work as Solaris
7's lex doesn't define yylineno. Grabbing the latest flex and using
"LEX = flex -l" in the Makefiles works (-l req'd for yylineno).
2. Had to apply this configure patch so DX configure wouldn't bomb when
detecting ImageMagick. Stock sh (as on Solaris) does not support
"export var=val", though sh derivatives (bash, ksh, etc.) often do:
--- ORIG/configure Thu Jun 7 11:09:59 2001
+++ configure Fri Jun 22 08:53:35 2001
@@ -6372,10 +6372,11 @@
x=`echo $arg | tr -dc '[:alnum:]'`
eval test x\${ac_u_$x} = x;
if test $? = 0 ; then
- eval export ac_u_$x=1
+ eval ac_u_$x=1
else
- eval export ac_u_$x=\`expr \${ac_u_$x} + 1\`
+ eval ac_u_$x=\`expr \${ac_u_$x} + 1\`
fi
+ export ac_u_$x
done
for arg in $LIB_MAGICK ; do
3. Rebuilt configure on Solaris with CVSMake (& autoconf 2.13) to try and
correct #2. Resulted in a configure exactly like that distributed with
dx-4.1.3. So #2 is possibly an autoconf 2.1.3 bug.
Also noted that autoconf 2.50's autoheader fails with DX's config files.
Dropped back to 2.13.
4. It's also important that /bin and /usr/ccs/bin be placed before /usr/ucb
(if present) in $PATH; otherwise the old ld, tr, etc. are used causing
configure, the build, and/or the install to fail.
5. Needed the PacketIF.C errno patch recently checked in.
Randy
--
Randall Hopper (mailto:[EMAIL PROTECTED])
Lockheed Martin Operation Support
EPA Scientific Visualization Center
US EPA MD/24 ERC-1A; RTP, NC 27711
--- End Message ---