From: Rob Solomon on
Tried to compile one of the texttool examples. This is the furthest I
got after having lots of trouble getting GNAT to find the sources.
I have lots of errors that I don't understand. This is on Ubuntu 9.04
system w/ texttools installed via synaptic.

What's up with this?

gnatmake -P/home/rob/tt/texttools-2.0.5/examples/basic.gpr basic.adb
-d
gcc-4.3 -c -I- -gnatA /usr/share/ada/adainclude/texttools/common.adb
common.ads:76:10: warning: return type of "Odds" is an 8-bit Ada
Boolean, use char in C
common.ads:105:11: warning: return type of "InsideRect" is an 8-bit
Ada Boolean, use char in C
common.ads:108:11: warning: return type of "InRect" is an 8-bit Ada
Boolean, use char in C
common.ads:111:11: warning: return type of "IsEmptyRect" is an 8-bit
Ada Boolean, use char in C
common.ads:411:01: warning: in instantiation at gen_list.adb:43
common.ads:411:01: warning: insufficient -O value
common.ads:415:01: warning: in instantiation at gen_list.adb:43
common.ads:415:01: warning: insufficient -O value
common.ads:420:01: warning: in instantiation at gen_list.adb:43
common.ads:420:01: warning: insufficient -O value
[2009-10-18 15:48:35] Cannot open file
'/home/rob/tt/texttools-2.0.5/examples/common.ads'
gcc-4.3 -c -I- -gnatA /usr/share/ada/adainclude/texttools/controls.adb
gcc-4.3 -c -I- -gnatA /usr/share/ada/adainclude/texttools/os.adb
os.adb:112:10: warning: return type of "CFileExists" is an 8-bit Ada
Boolean, use char in C
os.adb:187:01: warning: in instantiation at gen_list.adb:43
os.adb:187:01: warning: insufficient -O value
os.ads:141:11: warning: return type of "NotEmpty" is an 8-bit Ada
Boolean, use char in C
os.ads:148:11: warning: return type of "IsDirectory" is an 8-bit Ada
Boolean, use char in C
os.ads:154:10: warning: return type of "IsFile" is an 8-bit Ada
Boolean, use char in C
os.ads:272:10: warning: return type of "IsLocal" is an 8-bit Ada
Boolean, use char in C
gcc-4.3 -c -I- -gnatA /usr/share/ada/adainclude/texttools/strings.adb
gcc-4.3 -c -I- -gnatA /usr/share/ada/adainclude/texttools/userio.adb
userio.adb:416:14: warning: "OldX" may be referenced before it has a
value
userio.adb:416:20: warning: "OldY" may be referenced before it has a
value
userio.adb:425:14: warning: "OldX" may be referenced before it has a
value
userio.adb:425:20: warning: "OldY" may be referenced before it has a
value
userio.adb:993:36: warning: "ch" may be referenced before it has a
value
userio.adb:1113:39: warning: "ch" may be referenced before it has a
value
userio.adb:1238:33: warning: "ch" may be referenced before it has a
value
userio.adb:1283:26: warning: "ch" may be referenced before it has a
value
userio.adb:1398:03: warning: in instantiation at gen_list.adb:43
userio.adb:1398:03: warning: insufficient -O value
userio.adb:1549:05: warning: variable "e" is read but never assigned
userio.adb:1786:01: warning: in instantiation at gen_list.adb:43
userio.adb:1786:01: warning: insufficient -O value
userio.adb:1843:15: warning: "TempInt" may be referenced before it has
a value
userio.adb:1859:26: warning: "ch" may be referenced before it has a
value
userio.ads:94:29: warning: "bluebackground.blueOn" is an 8-bit Ada
Boolean, use char in C
userio.ads:101:12: warning: return type of "IsBlueBackground" is an
8-bit Ada Boolean, use char in C
userio.ads:283:22: warning: "keypress.shortblock" is an 8-bit Ada
Boolean, use char in C
gcc-4.3 -c -I- -gnatA /usr/share/ada/adainclude/texttools/windows.adb
windows.adb:273:14: warning: "x" may be referenced before it has a
value
windows.adb:273:17: warning: "y" may be referenced before it has a
value
windows.adb:1879:16: warning: "OldX" may be referenced before it has a
value
windows.adb:1879:22: warning: "OldY" may be referenced before it has a
value
windows.adb:2555:19: warning: "Relative" may be referenced before it
has a value
windows.adb:2574:19: warning: "Tempint" may be referenced before it
has a value
windows.adb:2666:03: warning: variable "OK" is never read and never
assigned
windows.adb:2667:03: warning: variable "text" is never read and never
assigned
gcc-4.3 -c -I- -gnatA /usr/share/ada/adainclude/texttools/gen_list.adb
gcc-4.3 -c -I- -gnatA /usr/share/ada/adainclude/texttools/english.ads
gnatbind -I- -x /home/rob/tt/texttools-2.0.5/examples/basic.ali
gnatlink /home/rob/tt/texttools-2.0.5/examples/basic.ali -lm -lcurses
-o /home/rob/tt/texttools-2.0.5/examples/basic
/home/rob/tt/texttools-2.0.5/examples/os.o: In function
`os__maketempfilename':
os.adb:(.text+0x3b2f): warning: the use of `mktemp' is dangerous,
better use `mkstemp' or `mkdtemp'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function
`os__setinterface':
os.adb:(.text+0x119b): undefined reference to `Interface_String'
os.adb:(.text+0x11ba): undefined reference to `Interface_String'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function
`os__startupos__initializesessionlog.1528':
os.adb:(.text+0x1ddb): undefined reference to `SessionLogName'
os.adb:(.text+0x1dfe): undefined reference to `Interface_String'
os.adb:(.text+0x1e04): undefined reference to `CClearSessionLog'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `os__unix':
os.adb:(.text+0x22a9): undefined reference to `CUNIX'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `os__unix__2':
os.adb:(.text+0x2330): undefined reference to `CUNIX'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `os__unix__3':
os.adb:(.text+0x244c): undefined reference to `CGetUNIX'
os.adb:(.text+0x2477): undefined reference to `Interface_String'
os.adb:(.text+0x2494): undefined reference to `Interface_String'
os.adb:(.text+0x24b1): undefined reference to `Interface_String'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `os__runit':
os.adb:(.text+0x362c): undefined reference to `CRunIt'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `not_empty':
os.adb:(.text+0x3775): undefined reference to `CNotEmpty'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `is_dir':
os.adb:(.text+0x3898): undefined reference to `CIsDirectory'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `is_file':
os.adb:(.text+0x39be): undefined reference to `CFileExists'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `os__lock':
os.adb:(.text+0x3d57): undefined reference to `LockIt'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `os__unlock':
os.adb:(.text+0x3e54): undefined reference to `UnlockIt'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `erase':
os.adb:(.text+0x4d6f): undefined reference to `CUnlink'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `set_path':
os.adb:(.text+0x7552): undefined reference to `CSetPath'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `get_date':
os.adb:(.text+0x89f2): undefined reference to `CDate'
os.adb:(.text+0x8a0c): undefined reference to `Interface_String'
os.adb:(.text+0x8a1a): undefined reference to `Interface_String'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `get_time':
os.adb:(.text+0x8add): undefined reference to `CTime'
os.adb:(.text+0x8af7): undefined reference to `Interface_String'
os.adb:(.text+0x8b05): undefined reference to `Interface_String'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function
`os__getlongdate':
os.adb:(.text+0x8c1d): undefined reference to `CLongDate'
os.adb:(.text+0x8c37): undefined reference to `Interface_String'
os.adb:(.text+0x8c45): undefined reference to `Interface_String'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `add_file':
os.adb:(.text+0x8d47): undefined reference to `CAppend'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `session_log':
os.adb:(.text+0x8db2): undefined reference to `CAddSessionLog'
/home/rob/tt/texttools-2.0.5/examples/os.o: In function `wait':
os.adb:(.text+0x94df): undefined reference to `CUSleep'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`get_display_info':
userio.adb:(.text+0x249e): undefined reference to `cols'
userio.adb:(.text+0x24a6): undefined reference to `lines'
userio.adb:(.text+0x24ae): undefined reference to `cols'
userio.adb:(.text+0x24c1): undefined reference to `lines'
userio.adb:(.text+0x24f6): undefined reference to `colour_flag'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`get_input_info':
userio.adb:(.text+0x260d): undefined reference to `C_hasmouse'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`set_pen_colour':
userio.adb:(.text+0x2835): undefined reference to `colour_flag'
userio.adb:(.text+0x2861): undefined reference to `CANSIColour'
userio.adb:(.text+0x2872): undefined reference to `CANSIColour'
userio.adb:(.text+0x2883): undefined reference to `CANSIColour'
userio.adb:(.text+0x2894): undefined reference to `CANSIColour'
userio.adb:(.text+0x28a5): undefined reference to `CANSIColour'
/home/rob/tt/texttools-2.0.5/examples/userio.o:userio.adb:(.text+0x28b3):
more undefined references to `CANSIColour' follow
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`get_pen_pos':
userio.adb:(.text+0x2a8b): undefined reference to `CGetXY'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__getpixel':
userio.adb:(.text+0x2af5): undefined reference to `CGetChar'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__drawforward':
userio.adb:(.text+0x2d43): undefined reference to `CCos'
userio.adb:(.text+0x2daf): undefined reference to `CSin'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__moveforward':
userio.adb:(.text+0x2e55): undefined reference to `CCos'
userio.adb:(.text+0x2ec1): undefined reference to `CSin'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__settextstyle':
userio.adb:(.text+0x2f51): undefined reference to `colour_flag'
userio.adb:(.text+0x2f9c): undefined reference to `CTextStyle'
userio.adb:(.text+0x2fbd): undefined reference to `CTextStyle'
userio.adb:(.text+0x2fde): undefined reference to `CTextStyle'
userio.adb:(.text+0x2fff): undefined reference to `CTextStyle'
userio.adb:(.text+0x3020): undefined reference to `CTextStyle'
/home/rob/tt/texttools-2.0.5/examples/userio.o:userio.adb:(.text+0x3041):
more undefined references to `CTextStyle' follow
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__settextstyle':
userio.adb:(.text+0x30cf): undefined reference to `colour_flag'
userio.adb:(.text+0x30ef): undefined reference to `CTextStyle'
userio.adb:(.text+0x311c): undefined reference to `CTextStyle'
userio.adb:(.text+0x313d): undefined reference to `CTextStyle'
userio.adb:(.text+0x315e): undefined reference to `CTextStyle'
userio.adb:(.text+0x317f): undefined reference to `CTextStyle'
userio.adb:(.text+0x3189): undefined reference to `colour_flag'
userio.adb:(.text+0x31a9): undefined reference to `CTextStyle'
userio.adb:(.text+0x31d6): undefined reference to `CTextStyle'
userio.adb:(.text+0x31f7): undefined reference to `CTextStyle'
userio.adb:(.text+0x3218): undefined reference to `CTextStyle'
userio.adb:(.text+0x3239): undefined reference to `CTextStyle'
userio.adb:(.text+0x3243): undefined reference to `colour_flag'
userio.adb:(.text+0x3263): undefined reference to `CTextStyle'
userio.adb:(.text+0x3290): undefined reference to `CTextStyle'
userio.adb:(.text+0x32b1): undefined reference to `CTextStyle'
userio.adb:(.text+0x32d2): undefined reference to `CTextStyle'
userio.adb:(.text+0x32f3): undefined reference to `CTextStyle'
userio.adb:(.text+0x32fd): undefined reference to `colour_flag'
userio.adb:(.text+0x331d): undefined reference to `CTextStyle'
userio.adb:(.text+0x3335): undefined reference to `CANSIColour'
userio.adb:(.text+0x3356): undefined reference to `CTextStyle'
userio.adb:(.text+0x3377): undefined reference to `CTextStyle'
userio.adb:(.text+0x3398): undefined reference to `CTextStyle'
userio.adb:(.text+0x33b9): undefined reference to `CTextStyle'
userio.adb:(.text+0x33d7): undefined reference to `CTextStyle'
/home/rob/tt/texttools-2.0.5/examples/userio.o:userio.adb:(.text+0x33f5):
more undefined references to `CTextStyle' follow
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`move_to_global':
userio.adb:(.text+0x35e3): undefined reference to `CMoveTo'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio(bool,...)(...)( *)':
userio.adb:(.text+0x399d): undefined reference to `CBeep'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function `get_key':
userio.adb:(.text+0x39b0): undefined reference to `CGetKey'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`keypress':
userio.adb:(.text+0x39d2): undefined reference to `CKeypress'
userio.adb:(.text+0x39dc): undefined reference to `CKeyDelay'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__draw':
userio.adb:(.text+0x3b9b): undefined reference to `SpoolChar'
userio.adb:(.text+0x3bb7): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__draw__2':
userio.adb:(.text+0x3da0): undefined reference to `SpoolChar'
userio.adb:(.text+0x3dda): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__drawedit':
userio.adb:(.text+0x3fd6): undefined reference to `SpoolChar'
userio.adb:(.text+0x3ff3): undefined reference to `SpoolChar'
userio.adb:(.text+0x40d9): undefined reference to `SpoolChar'
userio.adb:(.text+0x4113): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__draw__3':
userio.adb:(.text+0x4240): undefined reference to `SpoolChar'
userio.adb:(.text+0x4263): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__draw__4':
userio.adb:(.text+0x435e): undefined reference to `SpoolChar'
userio.adb:(.text+0x436c): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__draw__5':
userio.adb:(.text+0x43bf): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__draw__6':
userio.adb:(.text+0x4417): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__draw__7':
userio.adb:(.text+0x4477): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`draw_cstring':
userio.adb:(.text+0x44c2): undefined reference to `SpoolChar'
userio.adb:(.text+0x44d6): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function `draw_ln':
userio.adb:(.text+0x4546): undefined reference to `CGetXY'
userio.adb:(.text+0x4567): undefined reference to `lines'
userio.adb:(.text+0x4585): undefined reference to `CMoveTo'
userio.adb:(.text+0x4593): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__drawerr':
userio.adb:(.text+0x46e4): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__drawerr__2':
userio.adb:(.text+0x4708): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__drawerr__3':
userio.adb:(.text+0x472c): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__drawerr__4':
userio.adb:(.text+0x4b75): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o:userio.adb:(.text+0x4be7):
more undefined references to `Refresh' follow
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__getdrawchar':
userio.adb:(.text+0x4c5e): undefined reference to `CTextStyle'
userio.adb:(.text+0x4c7c): undefined reference to `CTextStyle'
userio.adb:(.text+0x4c9a): undefined reference to `CTextStyle'
userio.adb:(.text+0x4cb8): undefined reference to `CTextStyle'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`draw_line':
userio.adb:(.text+0x4d6d): undefined reference to `SpoolChar'
userio.adb:(.text+0x4e76): undefined reference to `SpoolChar'
userio.adb:(.text+0x4f66): undefined reference to `SpoolChar'
userio.adb:(.text+0x4f94): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`draw_horizontal_line':
userio.adb:(.text+0x4fe8): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x5016): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`draw_vertical_line':
userio.adb:(.text+0x506a): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x5098): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`frame_rect':
userio.adb:(.text+0x50c1): undefined reference to `colour_flag'
userio.adb:(.text+0x5100): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x5123): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x5147): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x516b): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x51d7): undefined reference to `SpoolSpecial'
/home/rob/tt/texttools-2.0.5/examples/userio.o:userio.adb:(.text+0x5224):
more undefined references to `SpoolSpecial' follow
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`frame_rect':
userio.adb:(.text+0x52ee): undefined reference to `SpoolChar'
userio.adb:(.text+0x5311): undefined reference to `SpoolChar'
userio.adb:(.text+0x5335): undefined reference to `SpoolChar'
userio.adb:(.text+0x5359): undefined reference to `SpoolChar'
userio.adb:(.text+0x53c5): undefined reference to `SpoolChar'
/home/rob/tt/texttools-2.0.5/examples/userio.o:userio.adb:(.text+0x5412):
more undefined references to `SpoolChar' follow
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`frame_rect':
userio.adb:(.text+0x54bf): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`frame_rect_3d':
userio.adb:(.text+0x54e8): undefined reference to `colour_flag'
userio.adb:(.text+0x54fb): undefined reference to `colour_flag'
userio.adb:(.text+0x5531): undefined reference to `CTextStyle'
userio.adb:(.text+0x5554): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x5578): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x5594): undefined reference to `CTextStyle'
userio.adb:(.text+0x55b7): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x55db): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x563e): undefined reference to `CTextStyle'
userio.adb:(.text+0x5663): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x56a7): undefined reference to `CTextStyle'
userio.adb:(.text+0x56cc): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x571c): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x5746): undefined reference to `CTextStyle'
userio.adb:(.text+0x5787): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x57c2): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`framed_rect':
userio.adb:(.text+0x57ff): undefined reference to `colour_flag'
userio.adb:(.text+0x5831): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x5854): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x5878): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x589c): undefined reference to `SpoolSpecial'
userio.adb:(.text+0x5908): undefined reference to `SpoolSpecial'
/home/rob/tt/texttools-2.0.5/examples/userio.o:userio.adb:(.text+0x5955):
more undefined references to `SpoolSpecial' follow
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`framed_rect':
userio.adb:(.text+0x5a1c): undefined reference to `SpoolChar'
userio.adb:(.text+0x5a3f): undefined reference to `SpoolChar'
userio.adb:(.text+0x5a63): undefined reference to `SpoolChar'
userio.adb:(.text+0x5a87): undefined reference to `SpoolChar'
userio.adb:(.text+0x5af3): undefined reference to `SpoolChar'
/home/rob/tt/texttools-2.0.5/examples/userio.o:userio.adb:(.text+0x5b40):
more undefined references to `SpoolChar' follow
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`framed_rect':
userio.adb:(.text+0x5c26): undefined reference to `CSpoolRect'
userio.adb:(.text+0x5c50): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`fill_rect':
userio.adb:(.text+0x5cbb): undefined reference to `CSpoolRect'
userio.adb:(.text+0x5cd9): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`erase_rect':
userio.adb:(.text+0x5d10): undefined reference to `colour_flag'
userio.adb:(.text+0x5d75): undefined reference to `CSpoolRect'
userio.adb:(.text+0x5d9d): undefined reference to `colour_flag'
userio.adb:(.text+0x5dba): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__pollinput':
userio.adb:(.text+0x6175): undefined reference to `CGetKey'
userio.adb:(.text+0x6185): undefined reference to `CKeypress'
userio.adb:(.text+0x618f): undefined reference to `CKeyDelay'
userio.adb:(.text+0x622f): undefined reference to `C_mousex'
userio.adb:(.text+0x627f): undefined reference to `C_mousey'
userio.adb:(.text+0x633e): undefined reference to `C_mousex'
userio.adb:(.text+0x638e): undefined reference to `C_mousey'
userio.adb:(.text+0x6401): undefined reference to `CKeypress'
userio.adb:(.text+0x646f): undefined reference to `CKeypress'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`flush_input':
userio.adb:(.text+0x6ce7): undefined reference to `FlushKeys'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`wait_for':
userio.adb:(.text+0x6d9c): undefined reference to `CKeyDelay'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__savepicture':
userio.adb:(.text+0x76e7): undefined reference to `CGetChar'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`userio__drawpicture':
userio.adb:(.text+0x7984): undefined reference to `SpoolChar'
userio.adb:(.text+0x79cd): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function `reveal':
userio.adb:(.text+0x7b2e): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`reveal_now':
userio.adb:(.text+0x7b3b): undefined reference to `Refresh'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`blue_background':
userio.adb:(.text+0x7b6b): undefined reference to `SetColour'
userio.adb:(.text+0x7b79): undefined reference to `SetColour'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`startup_userio':
userio.adb:(.text+0x7bc4): undefined reference to `StartupCurses'
userio.adb:(.text+0x7bea): undefined reference to `C_mousebutton'
userio.adb:(.text+0x7d1f): undefined reference to `Cls'
userio.adb:(.text+0x7d33): undefined reference to `CMoveTo'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`shutdown_userio':
userio.adb:(.text+0x7e07): undefined reference to `ShutdownCurses'
/home/rob/tt/texttools-2.0.5/examples/userio.o: In function
`reset_userio':
userio.adb:(.text+0x7e1b): undefined reference to `ResetCurses'
/home/rob/tt/texttools-2.0.5/examples/controls.o: In function
`controls__drawhotkey':
controls.adb:(.text+0x114a4): undefined reference to `CTextStyle'
controls.adb:(.text+0x114c2): undefined reference to `CTextStyle'
controls.adb:(.text+0x114ea): undefined reference to `CTextStyle'
/home/rob/tt/texttools-2.0.5/examples/controls.o: In function
`controls__draw__5':
controls.adb:(.text+0x172f4): undefined reference to `CTextStyle'
controls.adb:(.text+0x17355): undefined reference to `CTextStyle'
/home/rob/tt/texttools-2.0.5/examples/controls.o:controls.adb:(.text+0x179bb):
more undefined references to `CTextStyle' follow
/home/rob/tt/texttools-2.0.5/examples/windows.o: In function
`windows__getdirectory':
windows.adb:(.text+0x1171): undefined reference to `C_reset_errno'
windows.adb:(.text+0x11e4): undefined reference to `C_errno'
windows.adb:(.text+0x12b6): undefined reference to `C_errno'
windows.adb:(.text+0x12d9): undefined reference to `C_errno'
windows.adb:(.text+0x1400): undefined reference to `C_readdir'
windows.adb:(.text+0x177c): undefined reference to `C_reset_errno'
windows.adb:(.text+0x1835): undefined reference to `C_errno'
/home/rob/tt/texttools-2.0.5/examples/windows.o: In function
`windows__dodialog__showaccessorieswindow__showcalendar.15707':
windows.adb:(.text+0x37e1e): undefined reference to `CRunIt'
windows.adb:(.text+0x37f9d): undefined reference to `CRunIt'
/home/rob/tt/texttools-2.0.5/examples/windows.o: In function
`windows__drawwindow':
windows.adb:(.text+0x386af): undefined reference to `CDesktop'
collect2: ld returned 1 exit status
gnatlink: error when calling /usr/bin/gcc-4.3
gnatmake: *** link failed.

[2009-10-18 15:48:54] process exited with status4 (elapsed time:
20.64s)


The following is the contents of my basic.gpr file
basic.gpr
project Basic is

for Source_Dirs use ("./**",
"/usr/share/ada/adainclude/texttools/**");
for Main use ("basic.adb");
package Builder is
for Default_Switches ("Ada") use ("-x");
end Builder;
package Compiler is
for Switches("basic") use ("-x");
end Compiler;
package Linker is
for Default_Switches ("Ada") use ("-lm",
"-lcurses");
end Linker;

end Basic;




From: Stephen Leake on
Rob Solomon <usenet(a)drrob1-noreply.com> writes:

> Tried to compile one of the texttool examples. This is the furthest I
> got after having lots of trouble getting GNAT to find the sources.
> I have lots of errors that I don't understand. This is on Ubuntu 9.04
> system w/ texttools installed via synaptic.
>
> What's up with this?

There are at least three problems:

> gnatmake -P/home/rob/tt/texttools-2.0.5/examples/basic.gpr basic.adb
> -d
> gcc-4.3 -c -I- -gnatA /usr/share/ada/adainclude/texttools/common.adb
> common.ads:76:10: warning: return type of "Odds" is an 8-bit Ada
> Boolean, use char in C

1) Apparently the texttools authors simply ignored these warnings?

2) The library should be installed precompiled; why is GNAT
recompiling it?

> /home/rob/tt/texttools-2.0.5/examples/os.o: In function
> `os__setinterface':
> os.adb:(.text+0x119b): undefined reference to `Interface_String'

3) This appears to be a missing library.

Sorry I can't be much more help. I suggest you contact the texttools
authors directly.

--
-- Stephe
From: Ludovic Brenta on
Rib Solomon wrote on comp.lang.ada:
[on Ubuntu 9.04]
[lots snipped]
> windows.adb:(.text+0x386af): undefined reference to `CDesktop'
> collect2: ld returned 1 exit status
> gnatlink: error when calling /usr/bin/gcc-4.3
> gnatmake: *** link failed.
>
> [2009-10-18 15:48:54] process exited with status4 (elapsed time:
20.64s)
>
> The following is the contents of my basic.gpr file
> basic.gpr
> project Basic is
>
>    for Source_Dirs use ("./**",
>                         "/usr/share/ada/adainclude/texttools/**");
>    for Main use ("basic.adb");
>    package Builder is
>       for Default_Switches ("Ada") use ("-x");
>    end Builder;
>    package Compiler is
>      for Switches("basic") use ("-x");
>    end Compiler;
>    package Linker is
>       for Default_Switches ("Ada") use ("-lm",
>                                         "-lcurses");
>    end Linker;
>
> end Basic;

This is wrong and is almost certainly the cause for all your problems.
Please read the contents of /usr/share/ada/adainclude/texttools.gpr
for instructions on how to properly use the installed package. For
background information, please read the Debian Policy for Ada[1],
chapter 5 "Using shared libraries".

[1] http://people.debian.org/~lbrenta/debian-ada-policy.html#Using-shared-libraries

Also, you should not have the sources of TextTools in your home
directory, only the examples you wish to compile.

By the way, I have been looking for a new maintainer for this package
for 18 months now. If nobody steps up, I will request removal of this
package and it will not be in the next release of Debian, to be frozen
in March 2010 and released some time later.

--
Ludovic Brenta.
From: Rob Solomon on
On Mon, 19 Oct 2009 01:12:13 -0700 (PDT), Ludovic Brenta
<ludovic(a)ludovic-brenta.org> wrote:

>Rib Solomon wrote on comp.lang.ada:
>[on Ubuntu 9.04]
>[lots snipped]
>> windows.adb:(.text+0x386af): undefined reference to `CDesktop'
>> collect2: ld returned 1 exit status
>> gnatlink: error when calling /usr/bin/gcc-4.3
>> gnatmake: *** link failed.
>>
>> [2009-10-18 15:48:54] process exited with status4 (elapsed time:
>20.64s)
>>
>> The following is the contents of my basic.gpr file
>> basic.gpr
>> project Basic is
>>
>> � �for Source_Dirs use ("./**",
>> � � � � � � � � � � � � "/usr/share/ada/adainclude/texttools/**");
>> � �for Main use ("basic.adb");
>> � �package Builder is
>> � � � for Default_Switches ("Ada") use ("-x");
>> � �end Builder;
>> � �package Compiler is
>> � � �for Switches("basic") use ("-x");
>> � �end Compiler;
>> � �package Linker is
>> � � � for Default_Switches ("Ada") use ("-lm",
>> � � � � � � � � � � � � � � � � � � � � "-lcurses");
>> � �end Linker;
>>
>> end Basic;
>
>This is wrong and is almost certainly the cause for all your problems.
>Please read the contents of /usr/share/ada/adainclude/texttools.gpr
>for instructions on how to properly use the installed package. For
>background information, please read the Debian Policy for Ada[1],
>chapter 5 "Using shared libraries".
>
>[1] http://people.debian.org/~lbrenta/debian-ada-policy.html#Using-shared-libraries
>
>Also, you should not have the sources of TextTools in your home
>directory, only the examples you wish to compile.
>
>By the way, I have been looking for a new maintainer for this package
>for 18 months now. If nobody steps up, I will request removal of this
>package and it will not be in the next release of Debian, to be frozen
>in March 2010 and released some time later.

I'd offer to help, but from your response I think that would be a very
bad idea. It seems that I don't know anything.

From: Ludovic Brenta on
Rob Solomon wrote:
> I'd offer to help, but from your response I think that would be a very
> bad idea.  It seems that I don't know anything.

I didn't know anything either when I started packaging things for
Debian :) TextTools is one of the easiest packages to maintain so is a
good choice if you want to learn. Any help is appreciated and
welcome.

--
Ludovic Brenta.