home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / hp / 12636 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  11.1 KB

  1. Xref: sparky comp.sys.hp:12636 gnu.gcc.help:2469
  2. Newsgroups: comp.sys.hp,gnu.gcc.help
  3. Path: sparky!uunet!utcsri!torn!nott!nrcnet0!emr1!mathieu
  4. From: mathieu@geod.emr.ca (Pierre Mathieu)
  5. Subject: INFO: GNU products on HP9000s700. Also GCC 2.3.1 on same.
  6. Message-ID: <mathieu.721079639@gdim>
  7. Summary: Which work and which don't and why.
  8. Keywords: GNU GCC 
  9. Sender: news@emr1.emr.ca
  10. Nntp-Posting-Host: gdim.geod.emr.ca
  11. Organization: Dept. of Energy, Mines, and Resources, Ottawa
  12. Date: Fri, 6 Nov 1992 19:53:59 GMT
  13. Lines: 328
  14.  
  15.  
  16. For those who may be interested in getting the GNU products for the
  17. HP9000 Series 700 systems HP-UX 8.07, here is a list of the results
  18. I have obtained with the packages available at prep.ai.mit.edu.
  19.  
  20. All of the results are based on compilation with GCC 2.3.1 and
  21. not on the use of the HP C compiler. A section is included
  22. in the list for applications that did not compile with
  23. GCC but did with HP C.
  24.  
  25. The last part of the listing contains the applications I can't get to
  26. compile. If you got them to compile with GCC 2.3.1 and can send
  27. me fixes, I'll include them in this list.
  28.  
  29. Note: To compile GCC 2.3.1 with debugging support, you must have the
  30.       UTAH GAS 1.36 version from jaguar.cs.utah.edu: pa-gas.u3.tar.Z.
  31.  
  32.  
  33. GNU products that compile fine:
  34. ------------------------------
  35.  
  36. bison-1.19
  37. cpio-2.1
  38. diff-2.0
  39. emacs-18.58
  40. emacs-18.59       (had troubles with installation although it compiles OK)
  41. fileutils-3.4
  42. find-3.7
  43. flex-2.3.7
  44. gas-1.36.utah     (from jaguar.cs.utah.edu pa-gas.u3.tar.Z)
  45. gcc-2.3.1
  46. gdb-4.6           (with pa-gdb-4.6.tar.Z patches from jaguar.cs.utah.edu)
  47. ghostscript-2.5.2 (and fonts)
  48. gmp-1.2
  49. gptx-0.2
  50. grep-1.6
  51. hello-1.1
  52. indent-1.6
  53. patch-2.0.12u8
  54. perl-4.035
  55. rcs-5.6
  56. sed-1.11
  57. shellutils-1.8
  58. tar-1.11
  59. termcap-1.1
  60. texi2roff-2.0
  61. texinfo-2.16
  62. textutils-1.3
  63.  
  64.  
  65.  
  66. GNU products that don't support (yet?) HP9000/700:
  67. -------------------------------------------------
  68.  
  69. dld-3.2.3
  70. gas-1.38.1
  71. gdb-4.7
  72. glibc-1.05
  73.  
  74.  
  75.  
  76. GNU products that don't compile because another product doesn't:
  77. ---------------------------------------------------------------
  78.  
  79. autoconf-1.2    (m4-1.0)
  80. groff-1.06      (libg++-2.2)
  81. iostream-0.50   (libg++-2.2)
  82. nihcl-2.2       (libg++-2.2)
  83.  
  84.  
  85.  
  86. GNU products not yet examined (don't have time right now):
  87. ---------------------------------------------------------
  88.  
  89. ae
  90. finger-1.37
  91. gnuchess-4.0
  92. gnugo-1.1
  93. gnuplot-3.2
  94. ispell-2.0.02
  95. ms-0.06
  96. mtools-2.0.7
  97. smalltalk-1.1.1
  98. tile-forth-2.1
  99. xboard-2.0
  100.  
  101.  
  102.  
  103. GNU products not examined (and I don't plan to):
  104. -----------------------------------------------
  105.  
  106. button.3.00
  107. c-torture-test
  108. dirent
  109. elvis-1.6       (fine on PC; don't care on HP)
  110. f2c-3.2.90      (compilation is more trouble than it's worth)
  111. fax-3.2.1       (don't have a FAX modem)
  112. fgrep-1.1       (too old to be interesting)
  113. malloc-0.1
  114. oleo-0.03.2     (too old to be interesting)
  115. readline-1.1    (GDB 4.6 readline lib compiles just fine)
  116. uucp-1.03       (UUCP on HP is Honey-Danber)
  117. vh-1.3
  118.  
  119.  
  120.  
  121. Other non-GNU products that compile:
  122. -----------------------------------
  123.  
  124. X11R4 Mit Distribution
  125.  
  126.  
  127.  
  128. GNU products that don't compile with GCC 2.3.1 but do with HP C:
  129. ---------------------------------------------------------------
  130.  
  131. bash-1.12
  132. bc-1.02
  133. binutils-2.0
  134. m4-1.0
  135. make-3.62
  136. screen-3.2b
  137. time-1.4
  138. tput-1.0
  139.  
  140.  
  141. And now for the fun stuff.
  142.  
  143.  
  144. GNU products that don't compile but have easy fixes:
  145. ---------------------------------------------------
  146.  
  147. 1) cperf-2.1
  148.  
  149. gcc -DLO_CAL -DGATHER_STATISTICS  -O -fstrength-reduce -fomit-frame-pointer -fdelayed-branch -finline-functions  -o gperf options.o iterator.o main.o perfect.okeylist.o listnode.o xmalloc.o hashtable.o boolarray.o readline.o stderr.o version.o getopt.o
  150. ld: Unsatisfied symbols:
  151.    srandom (code)
  152.    random (code)
  153. collect: /bin/ld returned 1 exit status
  154.  
  155. FIX:
  156.  
  157. Add 
  158.  
  159. #define random rand
  160. #define srandom srand
  161.  
  162. to options.h
  163.  
  164.  
  165. 2) cvs-1.3
  166.  
  167. gcc -O -g -DDIRENT -DSTDC_HEADERS -DPOSIX -I. -I../lib    -c subr.c -o subr.o
  168. In file included from subr.c:11:
  169. cvs.h:282: conflicting types for `gethostname'
  170. /usr/include/sys/unistd.h:265: previous declaration of `gethostname'
  171.  
  172. Fix:
  173.  
  174. Comment out the line
  175.  
  176. int gethostname (char *name, int namelen);
  177.  
  178. in cvs.h
  179.  
  180.  
  181.  
  182. GNU products that don't compile and associated errors:
  183. -----------------------------------------------------
  184.  
  185.  
  186. A - getopt problems:
  187.  
  188. 1) bash-1.12
  189.  
  190. gcc -O -c -g  -DHAVE_VFPRINTF -DHAVE_UNISTD_H -DHAVE_GETGROUPS -DHAVE_RESOURCE -DVOID_SIGHANDLER -DHPUX_70 -DHAVE_WAIT_H  -DHAVE_DUP2 -DHAVE_STRERROR -D"hpux" -DHPUX -DSHELL -DHAVE_ALLOCA  -I/usr/local/gnu/src/bash-1.12 -I/usr/local/gnu/src/bash-1.12/./lib/ -I. -I./lib/ getopts.c
  191. In file included from getopts.c:63:
  192. ./getopt.h:95: conflicting types for `getopt'
  193. /usr/include/sys/unistd.h:225: previous declaration of `getopt'
  194.  
  195. 2) bc-1.02
  196.  
  197. gcc -O -g -D_POSIX_SOURCE   -c bc.c -o bc.o
  198. In file included from bc.c:33:
  199. proto.h:164: conflicting types for `getopt'
  200. /usr/include/stdlib.h:173: previous declaration of `getopt'
  201.  
  202. 3) m4-1.0
  203.  
  204. gcc -O -g -Ilib -DUSG -DHPUX -c m4.c -o m4.o
  205. In file included from m4.c:22:
  206. lib/getopt.h:99: conflicting types for `getopt'
  207. /usr/include/stdlib.h:173: previous declaration of `getopt'
  208.  
  209. 4) tput-1.0
  210.  
  211. gcc -O -I. -g -DSTDC_HEADERS   -c getopt.c -o getopt.o
  212. getopt.c: In function `getopt':
  213. getopt.c:254: argument `argv' doesn't match prototype
  214.  
  215.  
  216. B - Linker problems:
  217.  
  218. 1) fontutils-0.6 
  219.  
  220. gcc -O -o limn -L/usr/lib/X11R4 -L/usr/local/lib/X11 -g  curve.o display.o fit.o main.o output-bzr.o pxl-outline.o xserver.o version.o .././lib/lib.a .././gf/gf.a .././pk/pk.a .././bzr/bzr.a .././tfm/tfm.a .././widgets/widgets.a .././lib/lib.a -static -L/usr/lib/X11R4 -L/usr/local/lib/X11 -lXaw -lXmu -lXext -lXt -lX11.././lib/dlsym.o  -lm
  221. ld: R_DATA_ONE_SYMBOL fixup in file .././widgets/widgets.a(Label.o) for code unsat symbol "_XtInherit" - use P' fixup
  222. collect: /bin/ld returned 1 exit status
  223.  
  224. gcc -O -o xbfe -L/usr/lib/X11R4 -L/usr/local/lib/X11 -g  char.o commands.o kern.o main.o version.o .././lib/lib.a .././gf/gf.a .././pk/pk.a .././tfm/tfm.a .././widgets/widgets.a .././lib/lib.a -static -L/usr/lib/X11R4 -L/usr/local/lib/X11 -lXaw -lXmu -lXext -lXt -lX11 .././lib/dlsym.o  -lm
  225. ld: R_DATA_ONE_SYMBOL fixup in file .././widgets/widgets.a(Bitmap.o) for code unsat symbol "_XtInherit" - use P' fixup
  226. collect: /bin/ld returned 1 exit status
  227.  
  228. 2) ghostview-1.4
  229.  
  230. gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -o ghostview main.o misc.o callbacks.o actions.o dialogs.o Ghostview.o ps.o getenv.o setenv.o strcasecmp.o SelFile.o Dir.o Path.o Draw.o -O  -L/usr/lib/X11R4 -lXaw -L/usr/lib/X11R4 -lXmu -L/usr/lib/X11R4 -lXt -L/usr/lib/X11R4 -lXext -L/usr/lib/X11R4 -lX11 -lm
  231. ld: R_DATA_ONE_SYMBOL fixup in file Ghostview.o for code unsat symbol "_XtInherit" - use P' fixup
  232. collect: /bin/ld returned 1 exit status
  233.  
  234. 3) xinfo-1.01.01
  235.  
  236. gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings -traditional -o xinfo xinfo.o Info.o -O  -L/usr/lib/X11R4 -lXaw -L/usr/lib/X11R4 -lXmu-L/usr/lib/X11R4 -lXt -L/usr/lib/X11R4 -lXext -L/usr/lib/X11R4 -lX11 -lm
  237. ld: R_DATA_ONE_SYMBOL fixup in file Info.o for code unsat symbol "_XtInherit" -use P' fixup
  238. collect: /bin/ld returned 1 exit status
  239.  
  240.  
  241. Others:
  242.  
  243. 1) binutils-2.0
  244.  
  245. gcc -O -c -g -DHOST_SYS=HPPAHPUX_SYS -DSELECT_ARCHITECTURES=bfd_hppa_arch -DUSG -I. -I. -I./../include  hppa.c
  246. hppa.c:636: parse error before `_core_file_failing_command'
  247.  
  248. 2) gawk-2.13
  249.  
  250. gcc     -g -O -fstrength-reduce    -c main.c -o main.o
  251. In file included from awk.h:142, from main.c:26:
  252. regex.h:21: warning: `#pragma once' is obsolete
  253. In file included from awk.h:85, from main.c:26:
  254. protos.h:55: conflicting types for `strftime'
  255. /usr/include/sys/time.h:96: previous declaration of `strftime'
  256. protos.h:67: conflicting types for `fwrite'
  257. /usr/include/stdio.h:192: previous declaration of `fwrite'
  258.  
  259. 3) gdbm-1.5
  260.  
  261. gcc -g -O -DSYSV   -c gdbmreorg.c -o gdbmreorg.o
  262. In file included from gdbmdefs.h:36, from gdbmreorg.c:31:
  263. systems.h:39: warning: `L_SET' redefined
  264. /usr/include/sys/file.h:121: warning: this is the location of the previous definition
  265. gdbmreorg.c:45: warning: static declaration for `rename' follows non-static
  266. gdbmreorg.c: In function `rename':
  267. gdbmreorg.c:47: argument `old_name' doesn't match prototype
  268. gdbmreorg.c:47: argument `new_name' doesn't match prototype
  269.  
  270. 4) graphics-0.17
  271.  
  272. lots of errors. Samples:
  273.  
  274. gcc -g -O -I/usr/include/X11R4 -I/usr/local/include/X11R4 graph.o read_file.o max.o write_plot.o ../getopt/getopt.o ../getopt/getopt1.o ../tek2plot/libplot.a -lm -o graph
  275. ld: R_DATA_ONE_SYMBOL fixup in file write_plot.o for code unsat symbol "ceil" -use P' fixup
  276. collect: /bin/ld returned 1 exit status
  277.  
  278. gcc -g -O -I/usr/include/X11R4 -I/usr/local/include/X11R4 -o plot2tek plot.o ../getopt/getopt.o ../getopt/getopt1.o libtek.a -lm
  279. ld: Unsatisfied symbols:
  280.    drem (code)
  281. collect: /bin/ld returned 1 exit status
  282.  
  283. gcc -g -O -I/usr/include/X11R4 -I/usr/local/include/X11R4 -o plot2ps plot.o  ../getopt/getopt.o ../getopt/getopt1.o libps.a -lm
  284. ld: Unsatisfied symbols:
  285.    drem (code)
  286. collect: /bin/ld returned 1 exit status
  287.  
  288. gcc -g -O -I/usr/include/X11R4 -I/usr/local/include/X11R4 -o plot2fig plot.o ../getopt/getopt.o ../getopt/getopt1.o libfig.a -lm
  289. ld: Unsatisfied symbols:
  290.    re_exec (code)
  291.    re_comp (code)
  292. collect: /bin/ld returned 1 exit status
  293.  
  294. 5) libg++-2.2
  295.  
  296. gcc -g -nostdinc++ -I.. -I. -I./../iostream   -c Obstack.cc
  297. /usr/include/math.h: In function `int  abs (int)':
  298. In file included from ./builtin.h:33, from Obstack.cc:22:
  299. /usr/include/math.h:185: redefinition of `int  abs (int)'
  300. /usr/include/stdlib.h:62: `int  abs (int)' previously defined here
  301. ./Obstack.h: In method `void  Obstack::grow (const void *, int)':
  302. In file included from Obstack.cc:23:
  303. ./Obstack.h:124: warning: implicit declaration of function `bcopy'
  304.  
  305. 6) make-3.62
  306.  
  307. gcc -O -DUSG -DUSGr3 -DHPUX -DHAVE_DUP2  -g  -c load.c
  308. In file included from /usr/include/fcntl.h:9, from load.c:181:
  309. /usr/include/sys/fcntl.h:149: conflicting types for `open'
  310. /usr/include/sys/fcntl.h:149: A parameter list with an ellipsis can't match
  311. /usr/include/sys/fcntl.h:149: an empty parameter name list declaration.
  312. make.h:230: previous declaration of `open'
  313.  
  314. 7) screen-3.2b
  315.  
  316. gcc -O -c -g  -I. -DETCSCREENRC=\"/usr/local/gnu/lib/screenrc\" ./screen.c
  317. In file included from ./screen.c:333:
  318. ./extern.h:57: conflicting types for `wait3'
  319. /usr/include/sys/wait.h:81: previous declaration of `wait3'
  320. ./extern.h:73: conflicting types for `crypt'
  321. /usr/include/sys/unistd.h:237: previous declaration of `crypt'
  322. ./extern.h:86: conflicting types for `putenv'
  323. /usr/include/stdlib.h:155: previous declaration of `putenv'
  324. ./screen.c:343: conflicting types for `select'
  325. /usr/include/sys/time.h:146: previous declaration of `select'
  326. ./screen.c: In function `main':
  327. ./screen.c:1054: warning: passing arg 2 of `signal' from incompatible pointer type
  328. etc...
  329.  
  330. 8) time-1.4
  331.  
  332. gcc -O -c -g  -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_STRERROR=1 -DHAVE_DOPRNT=1 -I. time.c
  333. time.c:93: conflicting types for `wait3'
  334. /usr/include/sys/wait.h:81: previous declaration of `wait3'
  335. time.c: In function `run_command':
  336. time.c:636: warning: passing arg 2 of `execvp' from incompatible pointer type
  337. m
  338. --
  339. Pierre Mathieu                          "We have seen the enemy,
  340. Geodetic Survey of Canada                  and the enemy is us."
  341. Ottawa, Canada                                                Pogo
  342. Internet: mathieu@geod.emr.ca
  343.