I'm having some troubles compiling the viewer, and I'd appreciate advice.

Bill

1.  ZLib/SysZLib won't compile.  See below.  I've worked around it by
    copying an existing prc into that directory.

% make clean
make[1]: Entering directory `/project/hdi/jplucker/src/viewer/ZLib/zlib-1.1.3'
rm -f *.o *~ example minigzip libz.a libz.so* foo.gz so_locations \
   _match.s maketree *.grc SysZLib SysZLib.prc libr0000.bin
make[1]: Leaving directory `/project/hdi/jplucker/src/viewer/ZLib/zlib-1.1.3'
rm -f viewer.o os.o screen.o db.o documentdata.o control.o bookmarkform.o resultform.o 
emailform.o dbmgrform.o util.o externalform.o mainform.o prefsform.o detailsform.o 
controlform.o searchform.o categoryform.o bookmark.o session.o document.o image.o 
link.o history.o search.o prefsdata.o anchor.o paragraph.o uncompress.o debug.o 
categorydata.o buttonform.o beam.o gestureform.o sclform.o Plucker-sections.o viewer 
*.stamp *.bin *.prc core *~ *.grc Plucker-sections.ld Plucker-sections.s 
Plucker-sections.o ZLib/SysZLib.prc
% make
make[1]: Entering directory `/project/hdi/jplucker/src/viewer/ZLib/zlib-1.1.3'
make[1]: *** No rule to make target `SysZLib0.o', needed by `SysZLib.prc'.  Stop.
make[1]: Leaving directory `/project/hdi/jplucker/src/viewer/ZLib/zlib-1.1.3'
make: *** [ZLib/SysZLib.prc] Error 2
% 

2.  If I enable -DDEBUG and/or -DERROR_CHECK_LEVEL=ERROR_CHECK_FULL, I
    get linker errors for the viewer:

...
/project/palmpilot/packages/prc-tools-2.0/bin/m68k-palmos-gcc -g -DDEBUG 
-DNON_INTERNATIONAL -DERROR_CHECK_LEVEL=ERROR_CHECK_FULL  -DNEWGCC  -Werror -Wall -O2 
-IZLib -ITRG_SDK   -c -o sclform.o sclform.c
/project/palmpilot/packages/prc-tools-2.0/bin/multigen Plucker.def
/project/palmpilot/packages/prc-tools-2.0/bin/m68k-palmos-as -m68000 -mno-68881 -l   
-o Plucker-sections.o Plucker-sections.s
/project/palmpilot/packages/prc-tools-2.0/bin/m68k-palmos-gcc -g -DDEBUG 
-DNON_INTERNATIONAL -DERROR_CHECK_LEVEL=ERROR_CHECK_FULL  -DNEWGCC  viewer.o os.o 
screen.o db.o documentdata.o control.o bookmarkform.o resultform.o emailform.o 
dbmgrform.o util.o externalform.o mainform.o prefsform.o detailsform.o controlform.o 
searchform.o categoryform.o bookmark.o session.o document.o image.o link.o history.o 
search.o prefsdata.o anchor.o paragraph.o uncompress.o debug.o categorydata.o 
buttonform.o beam.o gestureform.o sclform.o Plucker-sections.o -o viewer 
Plucker-sections.ld
/project/palmpilot/packages/prc-tools-2.0/m68k-palmos/lib/gcrt0.o(.text+0x46):crt0.c: 
relocation truncated to fit: DISP16 _GccRelocateData
/project/palmpilot/packages/prc-tools-2.0/m68k-palmos/lib/gcrt0.o(.text+0x50):crt0.c: 
relocation truncated to fit: DISP16 __do_bhook
/project/palmpilot/packages/prc-tools-2.0/m68k-palmos/lib/gcrt0.o(.text+0x5a):crt0.c: 
relocation truncated to fit: DISP16 __do_ctors
/project/palmpilot/packages/prc-tools-2.0/m68k-palmos/lib/gcrt0.o(.text+0x60):crt0.c: 
relocation truncated to fit: DISP16 _GdbStartDebug
/project/palmpilot/packages/prc-tools-2.0/m68k-palmos/lib/gcrt0.o(.text+0x78):crt0.c: 
relocation truncated to fit: DISP16 __do_dtors
/project/palmpilot/packages/prc-tools-2.0/m68k-palmos/lib/gcrt0.o(.text+0x82):crt0.c: 
relocation truncated to fit: DISP16 __do_ehook
/project/palmpilot/packages/prc-tools-2.0/m68k-palmos/lib/libcrt.a(hooks.o)(.text+0x16):hooks.c:
 relocation truncated to fit: DISP16 start
/project/palmpilot/packages/prc-tools-2.0/m68k-palmos/lib/libcrt.a(hooks.o)(.text+0x64):hooks.c:
 relocation truncated to fit: DISP16 start
/project/palmpilot/packages/prc-tools-2.0/m68k-palmos/lib/libcrt.a(hooks.o)(.text+0xa6):hooks.c:
 relocation truncated to fit: DISP16 start
/project/palmpilot/packages/prc-tools-2.0/m68k-palmos/lib/libcrt.a(hooks.o)(.text+0xe0):hooks.c:
 relocation truncated to fit: DISP16 start
/project/palmpilot/packages/prc-tools-2.0/m68k-palmos/lib/libcrt.a(gdbstub.o)(.text+0x3c):gdbstub.c:
 relocation truncated to fit: DISP16 start
/project/palmpilot/packages/prc-tools-2.0/m68k-palmos/lib/libcrt.a(multi_dreloc.o)(.text+0xe):dreloc.c:
 relocation truncated to fit: DISP16 start
collect2: ld returned 1 exit status
make: *** [viewer] Error 1
%


Reply via email to