[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mgp-users 01219] 1.10a installation issues



On Tue, Jun 24, 2003 at 02:26:06PM +0900, Kazu Yamamoto wrote:
> Hello guys,
> 
> We are pleased to inform you that we have released MagicPoint 1.10a.
> 
> 	ftp://ftp.mew.org/pub/mgp/magicpoint-1.10a.tar.gz

First of all, thanks a bunch to the Magicpoint development
team for the new version!  I'm looking forward to trying out
the new features, especially the highly anticipated "tab 0".

(But I'm sorry to see that my patch for reporting system()
failures didn't get into mgp.c; that's really important, IMHO).

In the rest of this message, I'll document some installation
problems I had, which didn't prevent me from eventually
getting a usable installation, but just caused me frustration
by clobbering my (custom-patched) existing 1.09a files that
I had hoped to preserve. 8-{

** Installation problems with Magicpoint 1-10a **

1) The configure script gives me several "unary operator
expected" messages due to double-quotes being missing around
references to empty variables used with the test -z operator.
This is a common mistake, that the development team may not
have noticed, because of course the errors will only appear
on systems that have the associated variables unset.

(If anybody's interested in some guidelines on Shell Quoting,
which is a pretty complex subject, check out my article on 
the subject: http://teachmeunix.com/quoting1_2.txt.)

2) Although configure --help indicates that many aspects of the
installation can be changed, this does not appear to be true,
nor is it possible to affect the Makefile via env-vars in the
usual way (with one exception).

For example, "configure --prefix=something" has no effect,
and neither does "BINDIR=whatever make install".  On the other
hand, "DESTDIR=whatever make install" does have an impact,
because DESTDIR (only) is initialized in the Makefile from
the environment.

I'd prefer that the --prefix, etc. options to "configure"
would work, but if they must be disabled for some reason, it
would be best for their use to be marked by error messages,
or at least for the README file to document that those features
are ineffective.

I've attached a transcript below of what happened when I tried
to change the installation parameters.  (Incidentally, the "unary
operator expected" errors don't appear, because I had already
patched 'configure'; I haven't supplied a patch, because it's
very easy to search for -z and see the unquoted variables.)

# ./configure --prefix=/usr/local/Nmgp 
	--exec-prefix=/usr/local/Nmgp --enable-gif

checking whether make sets ${MAKE}... yes
checking build system type... i686-unknown-linux-gnu
checking host system type... i686-unknown-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 how to run the C preprocessor... gcc -E
checking for gawk... gawk
checking for bison... no
checking for byacc... no
checking for flex... flex
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking for perl5... no
checking for perl... /usr/local/bin/perl
checking for uuencode... /usr/bin/uuencode
checking for gzip... /usr/bin/gzip
checking for uudecode... /usr/bin/uudecode
checking for gunzip... /usr/bin/gunzip
checking if debugging is enabled... no
checking if setlocale() should be used... no
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... 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 fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for strings.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking varargs.h usability... yes
checking varargs.h presence... yes
checking for varargs.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for u_int... yes
checking for u_char... yes
checking for working memcmp... yes
checking return type of signal handlers... void
checking for poll... yes
checking for strstr... yes
checking for _setbufend... no
checking for usleep... yes
checking for strsep... yes
checking for strdup... yes
checking for mkstemp... yes
checking for snprintf... yes
checking for memcmp... yes
checking if freetype1 is used... yes
checking for freetype1 library/header... /usr/lib and /usr/include/freetype
checking for dgettext in -lintl... no
checking for TT_Init_FreeType in -lttf... yes
checking for num_CharMaps field in TT_Face_Properties... yes
checking if Xft2 is used... yes
checking for xft2 and ft2 and fc header..... no - not using xft2
checking if vflib is used... yes
checking for VFlib library/header... no - not using VFlib
checking if freetype-charset16 is enabled... no
checking for png_read_image in -lpng... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking if gif handling is enabled... yes
checking for DGifOpenFileHandle in -lungif... yes
checking if imlib is used... no
configure: creating ./config.status
config.status: creating Imakefile
config.status: creating image/Imakefile
config.status: creating sample/Imakefile
config.status: creating contrib/mgp2html.pl
config.status: creating contrib/mgp2latex.pl
config.status: creating contrib/mgpnet
config.status: creating mgpembed.pl
be sure to generate Makefile from Imakefile, by xmkmf and make Makefiles

# xmkmf; make Makefiles 

** NOTE: --prefix had no impact; my 1.09a files got clobbered! **

imake -DUseInstalled -I/usr/X11R6/lib/X11/config
making Makefiles in image...
 . . .
install -c   mgp /usr/X11R6/bin/mgp
install -c   mgp2ps /usr/X11R6/bin/mgp2ps
install -c -m 0755 mgpembed.pl /usr/X11R6/bin/mgpembed
installing in ./image...
make[1]: Entering directory `/root2/usr/src/pubdom/magicpoint-1.10a/image'
install in image done
make[1]: Leaving directory `/root2/usr/src/pubdom/magicpoint-1.10a/image'
installing in ./sample...
make[1]: Entering directory `/root2/usr/src/pubdom/magicpoint-1.10a/sample'
install -c -m 0444 default.mgp /usr/X11R6/lib/X11/mgp/default.mgp
install -c -m 0444 mgp1.jpg /usr/X11R6/lib/X11/mgp/mgp1.jpg
install -c -m 0444 mgp2.jpg /usr/X11R6/lib/X11/mgp/mgp2.jpg
install -c -m 0444 mgp3.jpg /usr/X11R6/lib/X11/mgp/mgp3.jpg
install in sample done
make[1]: Leaving directory `/root2/usr/src/pubdom/magicpoint-1.10a/sample'
installing in ./contrib...
make[1]: Entering directory `/root2/usr/src/pubdom/magicpoint-1.10a/contrib'
install -c -m 0755 mgpnet /usr/X11R6/bin/mgpnet
installing in contrib/xwintoppm...
make[2]: Entering directory `/root2/usr/src/pubdom/magicpoint-1.10a/contrib/xwintoppm'
install -c   xwintoppm /usr/X11R6/bin/xwintoppm
install in contrib/xwintoppm done
make[2]: Leaving directory `/root2/usr/src/pubdom/magicpoint-1.10a/contrib/xwintoppm'
make[1]: Leaving directory `/root2/usr/src/pubdom/magicpoint-1.10a/contrib'


# DESTDIR=/tmp make install 		# This *does* have an impact


making ./image/libmgpimage.a in ./image...
make[1]: Entering directory `/root2/usr/src/pubdom/magicpoint-1.10a/image'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root2/usr/src/pubdom/magicpoint-1.10a/image'
install -c   mgp /tmp/usr/X11R6/bin/mgp
install -c   mgp2ps /tmp/usr/X11R6/bin/mgp2ps
install -c -m 0755 mgpembed.pl /tmp/usr/X11R6/bin/mgpembed
installing in ./image...
make[1]: Entering directory `/root2/usr/src/pubdom/magicpoint-1.10a/image'
install in image done
make[1]: Leaving directory `/root2/usr/src/pubdom/magicpoint-1.10a/image'
installing in ./sample...
make[1]: Entering directory `/root2/usr/src/pubdom/magicpoint-1.10a/sample'
install -c -m 0444 default.mgp /tmp/usr/X11R6/lib/X11/mgp/default.mgp
install -c -m 0444 mgp1.jpg /tmp/usr/X11R6/lib/X11/mgp/mgp1.jpg
install -c -m 0444 mgp2.jpg /tmp/usr/X11R6/lib/X11/mgp/mgp2.jpg
install -c -m 0444 mgp3.jpg /tmp/usr/X11R6/lib/X11/mgp/mgp3.jpg
install in sample done
make[1]: Leaving directory `/root2/usr/src/pubdom/magicpoint-1.10a/sample'
installing in ./contrib...
make[1]: Entering directory `/root2/usr/src/pubdom/magicpoint-1.10a/contrib'
install -c -m 0755 mgpnet /tmp/usr/X11R6/bin/mgpnet
installing in contrib/xwintoppm...
make[2]: Entering directory `/root2/usr/src/pubdom/magicpoint-1.10a/contrib/xwintoppm'
install -c   xwintoppm /tmp/usr/X11R6/bin/xwintoppm
install in contrib/xwintoppm done
make[2]: Leaving directory `/root2/usr/src/pubdom/magicpoint-1.10a/contrib/xwintoppm'
make[1]: Leaving directory `/root2/usr/src/pubdom/magicpoint-1.10a/contrib'

-Tim
*------------------------------------------------------------*
| Tim Maher (206) 781-UNIX  (866) DOC-PERL  (866) DOC-UNIX   |
| CEO, JAWCAR ("Just Another White Camel Award Recipient")   |
| tim(AT)Consultix-Inc.Com  TeachMeUnix.Com  TeachMePerl.Com |
*+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*
|  Watch for my Book: "Minimal Perl for Shell Programmers"   |
*------------------------------------------------------------*