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

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