I had compiled gpc on Sparc Solaris 7 OK. But the crt.pas was not compiled.
The sources of gcc and gpc were as follow. ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/alpha/gpc-19991030.tar.gz ftp://ftp.cs.ubc.ca/pub/archive/mirror/gnu/gcc/gcc-2.95.2.tar.gz
After installation, gpc (and gcc, etc) were installed OK. But there was no crt.gpm built from crt.pas.
The following were what I got when trying to compile crt.pas manually.
/opt/GCC2952/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/units> which gpc /opt/GCC2952/bin/gpc
/opt/GCC2952/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/units> gpc -v Reading specs from /opt/GCC2952/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs gpc version 19991030, based on 2.95.2 19991024 (release)
/opt/GCC2952/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/units> gpc -O --automake crt.pas Undefined first referenced symbol in file crt_clrscr /var/tmp/cclOaycI1.o crt_clearterminal /var/tmp/cclOaycI1.o crt_restore_terminal_crt /var/tmp/cclOaycI1.o crt_read /var/tmp/cclOaycI1.o crt_HasColors /var/tmp/cclOaycI1.o crt_restore_terminal_no_crt /var/tmp/cclOaycI1.o crt_get_input_fd /var/tmp/cclOaycI1.o crt_readchar /var/tmp/cclOaycI1.o crt_NormAttr /var/tmp/cclOaycI1.o crt_setcontrolchars /var/tmp/cclOaycI1.o crt_ungetch /var/tmp/cclOaycI1.o
[snip]
crt_winsize /var/tmp/cclOaycI1.o crt_readwin /var/tmp/cclOaycI1.o main /opt/GCC2952/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/crt1.o crt_getcursorshape /var/tmp/cclOaycI1.o crt_setscroll /var/tmp/cclOaycI1.o crt_ColorFlag /var/tmp/cclOaycI1.o crt_check_winchanged /var/tmp/cclOaycI1.o crt_gotoxy /var/tmp/cclOaycI1.o crt_done /var/tmp/cclOaycI1.o ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status /opt/GCC2952/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/units>
/opt/GCC2952/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/units> ls ./ crtunix.h gpc.gpm pipec.c ../ crtunix1.h gpc.o ports.pas crt.gpi crtx.c gpc.pas printer.pas crt.inc crtxcurses.h gpc_bp.gpi regex.pas crt.pas dos.gpi gpc_delphi.gpi regexc.c crtc.c dos.pas gpc_ep.gpi strings.pas crtc.h dosunix.pas gpc_sp.gpi system.pas crtc.o gmp.gpi gpcutil.pas trap.pas crtdospc.h gmp.pas heapmon.pas trapc.c crtdummy.h gpc-bp.pas overlay.pas turbo3.pas crtlinux386.h gpc.gpi pipe.pas windos.pas /opt/GCC2952/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/units>
I have libncurses installed on my system (from sunfreeware). What did I miss for compiling crt.pas ?
Thanks for any pointer; please excuse me if this problem had been answered (and I had missed the answer).
Mason Ip wrote:
I had compiled gpc on Sparc Solaris 7 OK. But the crt.pas was not compiled.
I did that successfully also.
After installation, gpc (and gcc, etc) were installed OK. But there was no crt.gpm built from crt.pas.
GPC units are not compiled during built of GPC itself.
The following were what I got when trying to compile crt.pas manually.
/opt/GCC2952/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/units> gpc -O --automake crt.pas
automake is known as not working properly and I faced that a couple of times. I do not remember dependicies well, but I think you should try to compile gpc, system and crt.c (?) first, without -automake.
I have libncurses installed on my system (from sunfreeware). What did I miss for compiling crt.pas ?
I built the newest ncurses 5.0 and rx myself to compile crt unit. There is a package for Sparc Solaris 7 containing GPC with precompiled units at: http://math.uwb.edu.pl/download/solaris7/sparc/ ftp://mizar.uwb.edu.pl/pub/misc/solaris7/sparc/
Hope it helps
PS. If you are interested, I can send you my Makefile to compile all GPC units with make.