[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(mgp-users 00442) Magicpoint 1.07a on solaris 2.7
- To: mgp-users@mew.org
- Subject: (mgp-users 00442) Magicpoint 1.07a on solaris 2.7
- From: lohner@ecf.teradyne.com
- Date: Fri, 24 Nov 2000 22:19:54 +0900
- Posted: Fri, 24 Nov 2000 13:56:04 +0100
- Reply-to: mgp-users@mew.org
- Sender: lohner@ecf.teradyne.com
Here are the problems I ran into when trying a Magicpoint 1.07a build on
solaris with some fixes.
Please let me know when the next version is out, and I'll check it as well.
Thanks,
Nils.
/sup/build/magicpoint-1.07a > gcc --version
2.95.2
/sup/build/magicpoint-1.07a > uname -a
SunOS topaze 5.7 Generic_106541-02 sun4u sparc SUNW,Ultra-5_10
- bad compiler options: gcc -O -Xc -xF -xcg92
configure should check for GCC explicitly, not cc. fixed by
env CC=gcc ./configure and later make CC=gcc
removed CCOPTIONS = -Xc -xF -xcg92 from all makefiles.
This is probably an imake problem though...
- mgh.c needs sys/wait.h to get WNOHANG definition
- configure script does not detect usleep definition in
/usr/include/unistd.h: extern int usleep(useconds_t);
- snprintf problem: snprintf exists on solaris. This needs to be detected!
/sup/build/magicpoint-1.07a > make CC=gcc
gcc -c -O -I/usr/openwin/include -Dsun -Dsparc -DSVR4 -DSYSV -I.
-DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SYS_TIME_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_STDARG_H=1
-DHAVE_VARARGS_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_LOCALE_H=1 -Dconst= -Dinline=
-Dpid_t=int -Dsize_t=unsigned -Du_int=unsigned\ int -Du_char=unsigned\ char
-DRETSIGTYPE=int -DMGPLIBDIR=\"/usr/openwin/lib/X11/mgp\"
-DUUDECODE=\"/bin/uudecode\" -DGUNZIP=\"/sup/bin/gunzip\" \
./missing/snprintf.c
In file included from ./missing/snprintf.c:32:
/usr/include/stdio.h:49: warning: empty declaration
./missing/snprintf.c:40: conflicting types for `vsnprintf'
/usr/include/stdio.h:302: previous declaration of `vsnprintf'
./missing/snprintf.c: In function `vsnprintf':
./missing/snprintf.c:53: structure has no member named `_bufsiz'
./missing/snprintf.c: At top level:
./missing/snprintf.c:71: conflicting types for `snprintf'
/usr/include/stdio.h:291: previous declaration of `snprintf'
make: *** [snprintf.o] Error 1
- installation dirs not taken into account: I configured with
env CC=gcc ./configure --prefix=/sup
/sup/build/magicpoint-1.07a > make install
making ./image/libmgpimage.a in ./image...
/usr/ucb/install -c mgp /usr/openwin/bin/mgp
install: /usr/openwin/bin/mgp: Permission denied
make: *** [install] Error 1
- and a core dump... I probably don't have everything I needed installed,
but it should not core dump!
/sup/build/magicpoint-1.07a > ./mgp sample/default.mgp
sample/default.mgp:18: warning: directive "vfont" not supported in this
configuration
sample/default.mgp:18: warning: directive "tfont" not supported in this
configuration
sample/default.mgp:18: warning: directive "tmfont" not supported in this
configuration
sample/default.mgp:19: warning: directive "vfont" not supported in this
configuration
sample/default.mgp:19: warning: directive "tfont" not supported in this
configuration
sample/default.mgp:19: warning: directive "tmfont" not supported in this
configuration
sample/default.mgp:20: warning: directive "vfont" not supported in this
configuration
sample/default.mgp:20: warning: directive "tfont" not supported in this
configuration
sample/default.mgp:20: warning: directive "tmfont" not supported in this
configuration
Segmentation fault (core dumped)
/sup/build/magicpoint-1.07a > gdb mgp
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.7"...
(gdb) core core
Core was generated by `./mgp sample/default.mgp'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/openwin/lib/libXext.so.0...done.
Reading symbols from /usr/openwin/lib/libX11.so.4...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libmp.so.2...done.
Reading symbols from /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.
#0 0x1c2a4 in set_background_pixmap ()
(gdb) where
#0 0x1c2a4 in set_background_pixmap ()
#1 0x1bc9c in set_from_cache ()
#2 0x1c098 in predraw ()
#3 0x156f0 in state_goto ()
#4 0x140ec in main_loop ()
#5 0x13668 in main ()
(gdb)