home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / hp / 15292 < prev    next >
Encoding:
Text File  |  1993-01-25  |  11.5 KB  |  412 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!europa.asd.contel.com!gatech!swrinde!cs.utexas.edu!torn!nott!emr1!mathieu
  3. From: mathieu@geod.emr.ca (Pierre Mathieu)
  4. Subject: GNU compilation successes list - Revision 1.3 (HP900/700 - HPUX 8.07)
  5. Message-ID: <mathieu.727999258@gdim>
  6. Summary: What works and what doesn't
  7. Keywords: GNU
  8. Sender: news@emr1.emr.ca
  9. Nntp-Posting-Host: gdim.geod.emr.ca
  10. Organization: Dept. of Energy, Mines, and Resources, Ottawa
  11. Date: Mon, 25 Jan 1993 22:00:58 GMT
  12. Lines: 398
  13.  
  14.  
  15. Due to the recent coming out of GCC 2.3.3, here is revision 1.3 of the list.
  16.  
  17. For those who may be interested in getting the GNU products for the
  18. HP9000 Series 700 systems HP-UX 8.07, here is a list of the results
  19. I have obtained with the packages available at prep.ai.mit.edu.
  20.  
  21. All of the results are based on compilation with GCC 2.3.3 and
  22. not on the use of the HP C compiler. A section is included
  23. in the list for applications that did not compile with
  24. GCC but did with HP C.
  25.  
  26. The last part of the listing contains the applications I can't get to
  27. compile. If you got them to compile with GCC 2.3.3 and can send
  28. me fixes, I'll include them in this list.
  29.  
  30. Note: To compile GCC 2.3.3 with debugging support, you must have the
  31.       UTAH GAS 1.36 version from jaguar.cs.utah.edu: pa-gas.u3.tar.Z.
  32.       GCC 2.3.3 is the patched version gcc-2.3.3.u2.tar.Z available from
  33.       jaguar.cs.utah.edu.
  34.  
  35. Note also that for most of the products that fail to compile below, the fault 
  36. lies with the compiled package and not with GCC 2.3.3. Some of these packages
  37. are getting a bit out of date. ;-)
  38.  
  39. Furthermore, note that all the packages tested below are available from
  40. my archive site at geod.emr.ca (132.156.33.33) in the /pub/gnu directory
  41. and in the /pub/hp directory for HP specific items including jaguar
  42. packages and HP specific patch kits.
  43.  
  44. Finally, hats off to the guys at UTAH for their porting efforts!
  45.  
  46.  
  47. GNU products that compile fine:
  48. ------------------------------
  49.  
  50. autoconf-1.2
  51. bison-1.19
  52. c-torture-test     (a few warnings, but nothing serious)
  53. cpio-2.2
  54. diff-2.0
  55. emacs-18.58
  56. emacs-18.59        (had troubles with installation although it compiles OK)
  57. fileutils-3.4
  58. find-3.7
  59. flex-2.3.7
  60. fontutils-0.6 
  61. gas-1.36.utah      (from jaguar.cs.utah.edu pa-gas.u4.tar.Z)
  62. gawk-2.14
  63. gcc-2.3.3          (from jaguar.cs.utah.edu gcc-2.3.3.u2.tar.Z)
  64. gdb-4.6            (with pa-gdb-4.6.tar.Z patches from jaguar.cs.utah.edu)
  65. gdbm-1.5
  66. ghostscript-2.5.2  (and fonts)
  67. ghostview-1.4
  68. gmp-1.2
  69. gnugo-1.1
  70. gptx-0.2
  71. grep-1.6
  72. gzip-0.7
  73. hello-1.1
  74. indent-1.6
  75. ispell-eeadfa-p0+9 (available from our site geod.emr.ca in /pub/hp or from
  76.                     its mother sites in Australia: 
  77.                     mirriwinni.ee.adfa.oz.au or evans.ee.adfa.oz.au
  78.                     care of Phillip Musumeci, phillip@mirriwinni.ee.adfa.oz.au)
  79. libg++-2.3         (with Bart Muijzer, bartm@cv.ruu.nl, patches available
  80.                     from geod.emr.ca in /pub/hp/libg++-2.3.patches.shar)
  81. m4-1.0.3
  82. patch-2.0.12u8
  83. perl-4.035
  84. sed-1.13
  85. shellutils-1.8
  86. tar-1.10
  87. termcap-1.1
  88. texi2roff-2.0
  89. texinfo-2.16
  90. textutils-1.4
  91. wdiff-0.04
  92. xinfo-1.01.01
  93.  
  94.  
  95.  
  96. GNU products that compile fine with notes:
  97. -----------------------------------------
  98.  
  99. 1) rcs-5.6
  100.  
  101. Paul Eggert (eggert@twinsun.com) adds:
  102. "Note that you must set has_mmap to 0 manually in
  103. rcs/src/conf.h to work around a kernel bug in HP-UX 8.07 that
  104. causes the kernel to crash whenever you use RCS on NFSed files.
  105. HP patch PHKL_0942 fixes this kernel bug."
  106.  
  107.  
  108. 2) tar-1.11
  109.  
  110. Executable is buggy; dumps a lot of stuff to screen.
  111.  
  112.  
  113.  
  114. GNU products that don't support (yet?) HP9000/700:
  115. -------------------------------------------------
  116.  
  117. dld-3.2.3
  118. gas-1.38.1
  119. gdb-4.7
  120. glibc-1.05
  121.  
  122.  
  123.  
  124. GNU products not yet examined (don't have time right now):
  125. ---------------------------------------------------------
  126.  
  127. ae
  128. elib-0.05
  129. f2c-3.2.90
  130. finger-1.37
  131. gnuplot-3.2
  132. lemacs-19.3
  133. mm-1.07
  134. ms-0.06
  135. mtools-2.0.7
  136. nihcl-3.0
  137. smalltalk-1.1.1
  138. tile-forth-2.1
  139. xboard-2.0.pl25
  140.  
  141.  
  142.  
  143. GNU products not examined (and I don't plan to):
  144. -----------------------------------------------
  145.  
  146. button.3.00
  147. dirent
  148. elvis-1.6       (fine on PC; don't care on HP)
  149. fax-3.2.1       (don't have a FAX modem)
  150. fgrep-1.1       (too old to be interesting)
  151. iostream-0.50
  152. ispell-2.0.02   (use ispell-eeadfa-p0+9 instead)
  153. malloc-0.1
  154. readline-1.1    (GDB 4.6 readline lib compiles just fine)
  155. uucp-1.03       (UUCP on HP is Honey-Danber)
  156. vh-1.3
  157.  
  158.  
  159.  
  160. GNU products that don't compile with GCC 2.3.1 but do with HP C:
  161. ---------------------------------------------------------------
  162.  
  163. bash-1.12
  164. bc-1.02
  165. binutils-2.0
  166. screen-3.2b
  167. time-1.4
  168. tput-1.0
  169.  
  170.  
  171. And now for the fun stuff.
  172.  
  173.  
  174. GNU products that compile with easy fixes:
  175. -----------------------------------------
  176.  
  177. 1) cperf-2.1
  178.  
  179. 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
  180. ld: Unsatisfied symbols:
  181.    srandom (code)
  182.    random (code)
  183. collect: /bin/ld returned 1 exit status
  184.  
  185. FIX:
  186.  
  187. Add 
  188.  
  189. #define random rand
  190. #define srandom srand
  191.  
  192. to options.h
  193.  
  194.  
  195. 2) cvs-1.3
  196.  
  197. gcc -O -g -DDIRENT -DSTDC_HEADERS -DPOSIX -I. -I../lib    -c subr.c -o subr.o
  198. In file included from subr.c:11:
  199. cvs.h:282: conflicting types for `gethostname'
  200. /usr/include/sys/unistd.h:265: previous declaration of `gethostname'
  201.  
  202. Fix:
  203.  
  204. Comment out the line
  205.  
  206. int gethostname (char *name, int namelen);
  207.  
  208. in cvs.h
  209.  
  210.  
  211. x) oleo-1.2.2
  212.  
  213. Several errors can be fixed as follows.
  214.  
  215. Fix 1:
  216.  
  217. Change
  218.  
  219. extern int gethostname (char *, int);
  220.  
  221. to
  222.  
  223. extern int gethostname (char *, size_t);
  224.  
  225. in sysdef.h
  226.  
  227. Fix 2:
  228.  
  229. Take out 
  230.  
  231. extern VOIDSTAR sbrk (size_t);
  232. extern VOIDSTAR brk (VOIDSTAR);
  233.  
  234. in panic.c
  235.  
  236. Fix 3:
  237.  
  238. Take out beep function in io-curses.c
  239.  
  240.  
  241. 3) make-3.62
  242.  
  243. gcc -O -DUSG -DUSGr3 -DHPUX -DHAVE_DUP2  -g  -c load.c
  244. In file included from /usr/include/fcntl.h:9, from load.c:181:
  245. /usr/include/sys/fcntl.h:149: conflicting types for `open'
  246. /usr/include/sys/fcntl.h:149: A parameter list with an ellipsis can't match
  247. /usr/include/sys/fcntl.h:149: an empty parameter name list declaration.
  248. make.h:230: previous declaration of `open'
  249.  
  250. Fix: (thanks to Arnaud Fevrier: fevrier@simtoul.fr)
  251.  
  252. Change line 230 in make.h from
  253.  
  254. extern int pipe (), close (), read (), write (), open ();
  255.  
  256. to 
  257.  
  258. #ifdef HPUX
  259. extern int pipe (), close (), read (), write (), open (const char *, int, ...);#else
  260. extern int pipe (), close (), read (), write (), open ();
  261. #endif
  262.  
  263. and compile with
  264.  
  265. defines = -DHPUX -DUSG -DUSGr3 -DHAVE_DUP2 -DKERNEL_FILE_NAME=\"/hp-ux\"
  266.  
  267. You can use alloca.c from the gcc-2.3.1.u2 package.
  268.  
  269.  
  270.  
  271. GNU products that don't compile and associated errors:
  272. -----------------------------------------------------
  273.  
  274.  
  275. A - getopt problems:
  276.  
  277. 1) bash-1.12
  278.  
  279. gcc -O -c -g  -DHAVE_VFPRINTF -DHAVE_UNISTD_H -DHAVE_GETGROUPS -DHAVE_RESOURCE -
  280. DVOID_SIGHANDLER -DHPUX_70 -DHAVE_WAIT_H  -DHAVE_DUP2 -DHAVE_STRERROR -D"hpux" -
  281. DHPUX -DSHELL -DHAVE_ALLOCA  -I/users/root/gnu/src/NotInstalled/bash-1.12 -I/use
  282. rs/root/gnu/src/NotInstalled/bash-1.12/./lib/ -I. -I./lib/ getopts.c
  283. In file included from getopts.c:63:
  284. ./getopt.h:95: conflicting types for `getopt'
  285. /usr/include/sys/unistd.h:225: previous declaration of `getopt'
  286.  
  287. 2) bc-1.02
  288.  
  289. gcc -O -g -D_POSIX_SOURCE   -c bc.c -o bc.o
  290. In file included from bcdefs.h:46, from bc.y:31:
  291. const.h:41: warning: `BC_BASE_MAX' redefined
  292. /usr/include/limits.h:96: warning: this is the location of the previous definiti
  293. on
  294. const.h:42: warning: `BC_SCALE_MAX' redefined
  295. /usr/include/limits.h:98: warning: this is the location of the previous definiti
  296. on
  297. const.h:48: warning: `BC_DIM_MAX' redefined
  298. /usr/include/limits.h:97: warning: this is the location of the previous definiti
  299. on
  300. In file included from bc.c:33:
  301. proto.h:164: conflicting types for `getopt'
  302. /usr/include/stdlib.h:175: previous declaration of `getopt'
  303.  
  304. 3) recode-3.2.4
  305.  
  306. gcc -O -g -I. -DSTDC_HEADERS=1 -DHAVE_DUP2=1 -DHAVE_POPEN=1 -DHAVE_RENAME=1 -DDE
  307. FAULT_CODE=\"latin1\"   -c recode.c -o recode.o
  308. recode.c:64: conflicting types for `getopt'
  309. /usr/include/stdlib.h:175: previous declaration of `getopt'
  310.  
  311. 4) tput-1.0
  312.  
  313. gcc -O -I. -g -DSTDC_HEADERS   -c getopt.c -o getopt.o
  314. getopt.c: In function `getopt':
  315. getopt.c:254: argument `argv' doesn't match prototype
  316.  
  317.  
  318. B - Others:
  319.  
  320. 1) binutils-2.0
  321.  
  322. gcc -O -c -g -DHOST_SYS=HPPAHPUX_SYS -DSELECT_ARCHITECTURES=bfd_hppa_arch -DUSG -I. -I. -I./../include  hppa.c
  323. hppa.c:636: parse error before `_core_file_failing_command'
  324.  
  325.  
  326. 2) gnuchess-4.0
  327.  
  328. gcc -g -W  -DAG4 -DQUIETBACKGROUND -DNOSCORESPACE -DHASGETTIMEOFDAY -DGNU3 -DHIS
  329. TORY -DCACHE -DGDX -DSEMIQUIETBOOKGEN -DNULLMOVE -O -funroll-loops -traditional-
  330. cpp   -DHASHFILE=\"/usr/local/gnu/games/lib/gnuchess/gnuchess.hash\" -DLANGFILE=
  331. \"/usr/local/gnu/games/lib/gnuchess/gnuchess.lang\"  -c genmoves.c
  332. sh: Warning!  The following language(s) are not available:
  333.                 LANG=-DLANGFILE=\"$(LIBDIR)/gnuchess.lang\"
  334. Continuing processing using the language "C".
  335. gcc: Internal compiler error: program cc1 got fatal signal 6
  336.  
  337.  
  338. 3) graphics-0.17
  339.  
  340. Note: HP-UX has regcomp and regexec.
  341.  
  342. 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
  343. ld: Unsatisfied symbols:
  344.    re_exec (code)
  345.    re_comp (code)
  346. collect: /bin/ld returned 1 exit status
  347.  
  348.  
  349. 4) groff-1.06
  350.  
  351. Running "configure" gives the following message
  352.  
  353. checking for grops to derive installation directory prefix
  354. checking for gcc
  355. checking if C compiler is also a C++ compiler
  356. checking that C++ compiler can compile very simple C++ program
  357. checking that C++ static constructors and destructors are called
  358. gcc -O is not installed correctly: static constructors and destructors do not work
  359.  
  360.  
  361. 5) hp2xx-3.1.0
  362.  
  363. gcc -g -c -DUNIX -I/usr/include/X11R4   -O -ansi -fstrength-reduce -finline-func
  364. tions -Wall      to_x11.c
  365. In file included from to_x11.c:42:
  366. /usr/include/X11R4/X11/Xutil.h:312: parse error before `caddr_t'
  367.  
  368.  
  369. 6) make-3.63
  370.  
  371. gcc -O -DHAVE_CONFIG_H -DLIBDIR=\"/usr/local/gnu/lib\" -DINCLUDEDIR=\"/usr/local/gnu/include\" -c -I. -I. -I./glob -g job.c -o job.o
  372. job.c: In function `reap_children':
  373. job.c:244: warning: passing arg 2 of `waitpid' from incompatible pointer type
  374. job.c:247: warning: passing arg 1 of `wait' from incompatible pointer type
  375. job.c:263: aggregate value used where an integer was expected
  376. job.c:264: aggregate value used where an integer was expected
  377. job.c:264: invalid operands to binary &
  378. job.c:264: aggregate value used where an integer was expected
  379. job.c:265: aggregate value used where an integer was expected
  380.  
  381.  
  382. 7) screen-3.2b
  383.  
  384. gcc -O -c -g  -I. -DETCSCREENRC=\"/usr/local/gnu/lib/screenrc\" ./screen.c
  385. In file included from ./screen.c:333:
  386. ./extern.h:57: conflicting types for `wait3'
  387. /usr/include/sys/wait.h:81: previous declaration of `wait3'
  388. ./extern.h:73: conflicting types for `crypt'
  389. /usr/include/sys/unistd.h:237: previous declaration of `crypt'
  390. ./extern.h:86: conflicting types for `putenv'
  391. /usr/include/stdlib.h:155: previous declaration of `putenv'
  392. ./screen.c:343: conflicting types for `select'
  393. /usr/include/sys/time.h:146: previous declaration of `select'
  394. ./screen.c: In function `main':
  395. ./screen.c:1054: warning: passing arg 2 of `signal' from incompatible pointer type
  396. etc...
  397.  
  398.  
  399. 8) time-1.4
  400.  
  401. 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
  402. time.c:93: conflicting types for `wait3'
  403. /usr/include/sys/wait.h:81: previous declaration of `wait3'
  404. time.c: In function `run_command':
  405. time.c:636: warning: passing arg 2 of `execvp' from incompatible pointer type
  406. m
  407. --
  408. Pierre Mathieu                          "We have seen the enemy,
  409. Geodetic Survey of Canada                  and the enemy is us."
  410. Ottawa, Canada                                                Pogo
  411. Internet: mathieu@geod.emr.ca
  412.