From thomasl_erlang@REDACTED Thu Jan 11 18:18:15 2007 From: thomasl_erlang@REDACTED (Thomas Lindgren) Date: Thu, 11 Jan 2007 09:18:15 -0800 (PST) Subject: [erlang-patches] run_erl on gentoo 2006.1 Message-ID: <828725.12034.qm@web38814.mail.mud.yahoo.com> Hi, run_erl R10B10 was unable to open a master pty on gentoo 2006.1 (the open_master_pty() heuristic pty names apparently don't apply). I have enclosed a diff implementing a more standard pty solution, which starts run_erl properly on my gentoo, at least. (NB. you probably will have to integrate this with your existing solution. It doesn't use open_master_pty() at all.) Hope it helps. Best, Thomas ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: run_erl_r10b10.patch Type: text/x-patch Size: 2072 bytes Desc: 3093597729-run_erl_r10b10.patch URL: From VAUCHER@REDACTED Wed Jan 24 11:49:23 2007 From: VAUCHER@REDACTED (VAUCHER Laurent) Date: Wed, 24 Jan 2007 11:49:23 +0100 Subject: [erlang-patches] Erlang on AIX 5.3 Message-ID: <200701241149932.SM05164@037f27dd816a40c> Hi. I'm trying to compile R11B2 on AIX 5.3 and, as you might guess, it fails. I can help fixing it, but I will need some help. First, the ./configure script warns me that odbc will not be built (that's probably normal). Then, when doing make, compilation fails on erts/emulator/sys/unix/erl_check_io.c The problem comes from AIX, in fact, because the included file does a very nasty trick: it simply #defines events and revents. And those identifiers are used as struct fields in erts/emulator/beam/erl_driver.h Well, I have found a kind of workaround, which is to force #include just before the struct definition. I have not yet found how to protect this include so that it only happens on AIX. Compilation seems to proceed further, but then === Entering application parsetools make[3]: Entering directory `/tmp/otp_src_R11B-2/lib/parsetools/src' erlc -W +debug_info -I/tmp/otp_src_R11B-2/lib/stdlib/include -o../ebin yecc.erl Could not load program /tmp/otp_src_R11B-2/bin/powerpc-ibm-aix5.3.0.0/beam: The program does not have an entry point or the o_snentry field in the auxiliary header is invalid. Examine file headers with the 'dump -ohv' command. make[3]: *** [../ebin/yecc.beam] Error 255 make[3]: Leaving directory `/tmp/otp_src_R11B-2/lib/parsetools/src' make[2]: *** [opt] Error 2 make[2]: Leaving directory `/tmp/otp_src_R11B-2/lib/parsetools' make[1]: *** [opt] Error 2 make[1]: Leaving directory `/tmp/otp_src_R11B-2/lib' make: *** [secondary_bootstrap_build] Error 2 I have no idea what this can mean. The suggested dump -ohv on 'beam' gives the folowwing result /tmp/otp_src_R11B-2>dump -ohv bin/powerpc-ibm-aix5.3.0.0/beam bin/powerpc-ibm-aix5.3.0.0/beam: ***Object Module Header*** # Sections Symbol Ptr # Symbols Opt Hdr Len Flags 5 0x00019018 7882 72 0x1002 Flags=( EXEC DYNLOAD DEP_SYSTEM ) Timestamp = "Jan 24 11:35:43 2007" Magic = 0x1df (32-bit XCOFF) ***Optional Header*** Tsize Dsize Bsize Tstart Dstart 0x00007078 0x00000894 0x000000c0 0x10000150 0x200001c8 SNloader SNentry SNtext SNtoc SNdata 0x0004 0x0000 0x0001 0x0002 0x0002 TXTalign DATAalign TOC vstamp entry 0x0005 0x0003 0x200009f4 0x0001 0xffffffff maxSTACK maxDATA SNbss magic modtype 0x00000000 0x00000000 0x0003 0x010b 1L ***Section Header Information*** Section Header for .text PHYaddr VTRaddr SCTsiz RAWptr RELptr 0x10000150 0x10000150 0x00007078 0x00000150 0x000156e6 LN#ptr #RELent #LINent Flags 0x00015f2e 0x0074 0x0827 0x00000020 Section Header for .data PHYaddr VTRaddr SCTsiz RAWptr RELptr 0x200001c8 0x200001c8 0x00000894 0x000071c8 0x00015b6e LN#ptr #RELent #LINent Flags 0x00000000 0x0060 0x0000 0x00000040 Section Header for .bss PHYaddr VTRaddr SCTsiz RAWptr RELptr 0x20000a5c 0x20000a5c 0x000000c0 0x00000000 0x00000000 LN#ptr #RELent #LINent Flags 0x00000000 0x0000 0x0000 0x00000080 Section Header for .loader PHYaddr VTRaddr SCTsiz RAWptr RELptr 0x00000000 0x00000000 0x00000627 0x00007a5c 0x00000000 LN#ptr #RELent #LINent Flags 0x00000000 0x0000 0x0000 0x00001000 Section Header for .debug PHYaddr VTRaddr SCTsiz RAWptr RELptr 0x00000000 0x00000000 0x0000d661 0x00008084 0x00000000 LN#ptr #RELent #LINent Flags 0x00000000 0x0000 0x0000 0x00002000 Does anyone have an idea here? Laurent Vaucher. From christophe.romain@REDACTED Thu Jan 25 10:30:49 2007 From: christophe.romain@REDACTED (Christophe Romain) Date: Thu, 25 Jan 2007 10:30:49 +0100 Subject: [erlang-patches] Erlang on AIX 5.3 In-Reply-To: <200701241149932.SM05164@037f27dd816a40c> References: <200701241149932.SM05164@037f27dd816a40c> Message-ID: <61AE6194-A5B5-48FB-8275-3422E8D285C5@process-one.net> Hello I think you're using the wrong mailing list. anyway, to compile under AIX5 you should consider doing this: SSLDIR= in erts/configure.in, change aix4* into aix* ./configure --with-ssl=$SSLDIR in erts/emulator/drivers/common/inet_drv.c:213, add #define IP_MULTICAST before #include ulimit -d 256000 make best regards. From VAUCHER@REDACTED Thu Jan 25 18:30:55 2007 From: VAUCHER@REDACTED (VAUCHER Laurent) Date: Thu, 25 Jan 2007 18:30:55 +0100 Subject: [erlang-patches] Erlang on AIX 5.3 Message-ID: <200701251831221.SM04304@037f27dd816a40c> Thank you but unfortunately, it does not solve my problems. By the way, what is the appropriate mailing list. I have not found any erlang-devel list. Laurent. -----Message d'origine----- De : Christophe Romain [mailto:chris.romain@REDACTED] De la part de Christophe Romain Envoy? : 25 January 2007 10:31 ? : VAUCHER Laurent Cc : erlang-patches@REDACTED Objet : Re: [erlang-patches] Erlang on AIX 5.3 Hello I think you're using the wrong mailing list. anyway, to compile under AIX5 you should consider doing this: SSLDIR= in erts/configure.in, change aix4* into aix* ./configure --with-ssl=$SSLDIR in erts/emulator/drivers/common/inet_drv.c:213, add #define IP_MULTICAST before #include ulimit -d 256000 make best regards. From raimo+erlang-patches@REDACTED Mon Jan 29 09:25:20 2007 From: raimo+erlang-patches@REDACTED (Raimo Niskanen) Date: Mon, 29 Jan 2007 09:25:20 +0100 Subject: [erlang-patches] Erlang on AIX 5.3 In-Reply-To: <55DDB08CC9CD2941A70E8D626789A2C903EB8BF6@ec8l7ljvo9h5dde.hosting.exch> References: <55DDB08CC9CD2941A70E8D626789A2C903EB8BF6@ec8l7ljvo9h5dde.hosting.exch> Message-ID: <20070129082520.GA2907@erix.ericsson.se> For questions about using and building Erlang/OTP, use the erlang-questions@REDACTED mailing list. If you have a patch use erlang-patches@REDACTED If you want to report a bug use erlang-bugs@REDACTED All this can be found at http://www.erlang.org/mailman/listinfo if you follow the links down to the individual mailing list descriptions. And that page itself can be found from: http://www.erlang.org -> FAQs + mailing lists -> The erlang.org mailing lists Since you seem more likely to have a platform specific build problem than a bug I would go for erlang-questions@REDACTED On Wed, Jan 24, 2007 at 11:49:23AM +0100, VAUCHER Laurent wrote: > Hi. > > I'm trying to compile R11B2 on AIX 5.3 and, as you might guess, it > fails. > I can help fixing it, but I will need some help. > > First, the ./configure script warns me that odbc will not be built > (that's probably normal). > Then, when doing make, compilation fails on > erts/emulator/sys/unix/erl_check_io.c > The problem comes from AIX, in fact, because the included file > does a very nasty trick: it simply #defines events and revents. And > those identifiers are used as struct fields in > erts/emulator/beam/erl_driver.h > Well, I have found a kind of workaround, which is to force #include > just before the struct definition. I have not yet found how to > protect this include so that it only happens on AIX. > > Compilation seems to proceed further, but then > > === Entering application parsetools > make[3]: Entering directory `/tmp/otp_src_R11B-2/lib/parsetools/src' > erlc -W +debug_info -I/tmp/otp_src_R11B-2/lib/stdlib/include -o../ebin > yecc.erl > Could not load program > /tmp/otp_src_R11B-2/bin/powerpc-ibm-aix5.3.0.0/beam: > The program does not have an entry point or > the o_snentry field in the auxiliary header is invalid. > Examine file headers with the 'dump -ohv' command. > make[3]: *** [../ebin/yecc.beam] Error 255 > make[3]: Leaving directory `/tmp/otp_src_R11B-2/lib/parsetools/src' > make[2]: *** [opt] Error 2 > make[2]: Leaving directory `/tmp/otp_src_R11B-2/lib/parsetools' > make[1]: *** [opt] Error 2 > make[1]: Leaving directory `/tmp/otp_src_R11B-2/lib' > make: *** [secondary_bootstrap_build] Error 2 > > > I have no idea what this can mean. The suggested dump -ohv on 'beam' > gives the folowwing result > > /tmp/otp_src_R11B-2>dump -ohv bin/powerpc-ibm-aix5.3.0.0/beam > > bin/powerpc-ibm-aix5.3.0.0/beam: > > ***Object Module Header*** > # Sections Symbol Ptr # Symbols Opt Hdr Len Flags > 5 0x00019018 7882 72 0x1002 > Flags=( EXEC DYNLOAD DEP_SYSTEM ) > Timestamp = "Jan 24 11:35:43 2007" > Magic = 0x1df (32-bit XCOFF) > > ***Optional Header*** > Tsize Dsize Bsize Tstart Dstart > 0x00007078 0x00000894 0x000000c0 0x10000150 0x200001c8 > > SNloader SNentry SNtext SNtoc SNdata > 0x0004 0x0000 0x0001 0x0002 0x0002 > > TXTalign DATAalign TOC vstamp entry > 0x0005 0x0003 0x200009f4 0x0001 0xffffffff > > maxSTACK maxDATA SNbss magic modtype > 0x00000000 0x00000000 0x0003 0x010b 1L > > ***Section Header Information*** > Section Header for .text > PHYaddr VTRaddr SCTsiz RAWptr RELptr > 0x10000150 0x10000150 0x00007078 0x00000150 0x000156e6 > > LN#ptr #RELent #LINent Flags > 0x00015f2e 0x0074 0x0827 0x00000020 > > Section Header for .data > PHYaddr VTRaddr SCTsiz RAWptr RELptr > 0x200001c8 0x200001c8 0x00000894 0x000071c8 0x00015b6e > > LN#ptr #RELent #LINent Flags > 0x00000000 0x0060 0x0000 0x00000040 > > Section Header for .bss > PHYaddr VTRaddr SCTsiz RAWptr RELptr > 0x20000a5c 0x20000a5c 0x000000c0 0x00000000 0x00000000 > > LN#ptr #RELent #LINent Flags > 0x00000000 0x0000 0x0000 0x00000080 > > Section Header for .loader > PHYaddr VTRaddr SCTsiz RAWptr RELptr > 0x00000000 0x00000000 0x00000627 0x00007a5c 0x00000000 > > LN#ptr #RELent #LINent Flags > 0x00000000 0x0000 0x0000 0x00001000 > > Section Header for .debug > PHYaddr VTRaddr SCTsiz RAWptr RELptr > 0x00000000 0x00000000 0x0000d661 0x00008084 0x00000000 > > LN#ptr #RELent #LINent Flags > 0x00000000 0x0000 0x0000 0x00002000 > > > Does anyone have an idea here? > > > Laurent Vaucher. > > > _______________________________________________ > erlang-patches mailing list > erlang-patches@REDACTED > http://www.erlang.org/mailman/listinfo/erlang-patches -- / Raimo Niskanen, Erlang/OTP, Ericsson AB