From wxwin-users-request Fri Jul 7 20:57:03 1995 Received: from arcturus.ciril.fr by aiai.ed.ac.uk; Fri, 7 Jul 95 20:56:49 BST Received: by arcturus.ciril.fr (1.37.109.16/16.2) id AA273447024; Fri, 7 Jul 1995 21:57:04 +0200 Date: Fri, 7 Jul 1995 21:57:04 +0200 From: Patrick Paroubek Message-Id: <199507071957.AA273447024@arcturus.ciril.fr> To: wxwin-bugs@aiai.ed.ac.uk Subject: wx162e - install report Status: REO Here follows my reports on trying to install wx162e on HPUX with both gcc and CC. Hope this helps. Patrick. ========================================================================= wx162e with gcc (continued) ======================================================================== HP-UX arcturus A.09.04 U 9000/887 flex version 2.3 Compiler: gcc (version 2.6.3) ------------ prologio With flex I could now compile prologio, I just had to comment out the #define for yywrap on 130 line of utils/prologio/src/lex_yy.c /* default yywrap function - always treat EOF as an EOF */ /* #define yywrap() 1 */ -------------- wxbuild and with prologio, I could compile wxbuild, I only needed to do the following change in the makefile.unx, for gcc to be able to find the prologio library (-L path to prologio was missing). $ diff makefile.unx makefile.unx~ 124c124 < $(CC) $(CPPFLAGS) $(LDFLAGS) -o wxbuild$(GUISUFFIX) $(XVIEW_LINK) $(OBJECTS) $(LDLIBS) --- > $(CC) $(LDFLAGS) -o wxbuild$(GUISUFFIX) $(XVIEW_LINK) $(OBJECTS) $(LDLIBS) ------------------------ Conclusion wx162e + gcc ------------------------ The two big problems remaining are: 1 - ipc still crashes when I try to run the demo 2 - all the demo which require opening a file brower crash when I try to open the file browser. But apart from that, as far as I could test, things were ok with this version compiled with gcc. =============================================================================== wx162e with CC =============================================================================== HP-UX arcturus A.09.04 U 9000/887 flex version 2.3 Compiler: CC ----------- I edited out by hand the second line of the two here: /* default yywrap function - always treat EOF as an EOF */ /* #define yywrap() 1 */ in utils/prologio/src/lex_yy.c to be able to compile lex_yy.c ---------------- contrib/wxxpm/libxpm.34b/lib/create.c at line 170 I had to add "const" to the two args otherwise my compiler was complainging when the function is passed as argument latter down in the file that the signature wasn't matching. static int closeness_cmp(const void *a, const void *b) { CloseColor *x = (CloseColor *) a, *y = (CloseColor *) b; /* cast to int as qsort requires */ return (int) (x->closeness - y->closeness); } ------- utils/image/src/wx_24to8.cc I uncommented the follwing statements and enclosed them in a #ifdef HPUX_SOURCE /* #ifndef sun #include // bcopy #endif */ so now it looks like: #ifdef _HPUX_SOURCE_ #ifndef sun #include // bcopy #endif #endif otherwise bcopy() is undefined. ------------ contrib/xmgauge I DID not manage to compile xmgauge with CC. Nevertheless, I did manage to do it with gcc but the xmgauge demo was behaving sort of funny~: the menu bar was active but nothing happened and the main window contained only a tiny square. To be able to proceed I copied the gcc compiled version in my CC compiled version and went on. ---------------- src/x/wx_ipc.cc, I had to define read and write methods as not inline for were the class SockMgr int read(int fd, char * buf, int nBytes, Bool & isWhole, Bool & isMore); int write(int fd, char * buf, int nBytes); otherwise I got the error: CC: "wx_ipc.cc", line 452: sorry, not implemented: cannot expand inline function int SockMgr::read(int , char *, int , int &, int &) with statement after `return' (2070) CC: "wx_ipc.cc", line 466: sorry, not implemented: cannot expand inline function int SockMgr::write(int , char*, int ) with statement after `return' (2070) ------------------------ Conclusion wx162e + CC ------------------------ With the previous changes, I could compile things, but NONE of the demo worked, even minimal crashed right away !