Erlang Mailing Lists

Author Message

<  Erlang patches mailing list  ~  Erlang on AIX 5.3

Guest
Posted: Wed Jan 24, 2007 10:51 am Reply with quote
Guest
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 <poll.h> 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
<poll.h> 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@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-patches
Post recived from mailinglist
Guest
Posted: Thu Jan 25, 2007 9:32 am Reply with quote
Guest
Hello


I think you're using the wrong mailing list.
anyway, to compile under AIX5 you should consider doing this:

SSLDIR=<your openssl directory>
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 <net/if.h>
ulimit -d 256000
make

best regards.
_______________________________________________
erlang-patches mailing list
erlang-patches@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-patches
Post recived from mailinglist
Guest
Posted: Thu Jan 25, 2007 5:32 pm Reply with quote
Guest
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@gmail.com] De la part de Christophe Romain
Envoy
Guest
Posted: Mon Jan 29, 2007 8:26 am Reply with quote
Guest
For questions about using and building Erlang/OTP, use the
erlang-questions@erlang.org mailing list. If you have a patch
use erlang-patches@erlang.org. If you want to report a bug
use erlang-bugs@erlang.org.

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@erlang.org.



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 <poll.h> 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
> <poll.h> 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@erlang.org
> http://www.erlang.org/mailman/listinfo/erlang-patches

--

/ Raimo Niskanen, Erlang/OTP, Ericsson AB
_______________________________________________
erlang-patches mailing list
erlang-patches@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-patches
Post recived from mailinglist
wailian
Posted: Tue Mar 20, 2012 2:17 am Reply with quote
Guest
i/p transducer requires a standard input and is for use with linear pneumatic actuators and has high air capacity. It can be easy change of the output signal from. electro pneumatic transducer is used, for example, in the biomedical field for the pneumatic control of a cardiac module, or artificial heart.

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum