Compiling Erlang under QNX
Sean Hinde
Sean.Hinde@REDACTED
Tue Mar 20 18:48:24 CET 2001
All,
QNX have now released their patch 'B'. This fixes the bug which prevented
the erlc shell script from running.
The procedure I used to compile R7B-1 under QNX patch B is:
edit /etc/hosts and change IP address to be 127.0.0.1
get the latest config.guess and config.sub (I attach recent enough ones) and
replace the ones supplied with Erlang.
In inet_drv.c there is a problem around SO_ERROR. QNX define this but do not
appear to support the functionality..
I just changed it to read #ifndef SO_ERROR1 but it will obviously need
something slightly better!
The command to configure needs to be CC=qcc ./configure --without-ssl
qcc seems to be a wrapper for gcc which lets it find all the libraries etc.
Remove line 759 from ops.tab!!!! I cannot explain this at all but it allows
the perl script to work without error.
Snmp:
Somewhere it is hardcoded to use nawk which isn't present.
Mnesia_session:
IDL_COMPILE_FLAGS doesn't pick up IC_DIR as previous line (IC_DIR := ...)
doesn't work (no idea why)
Temporarily changed to fix to absolute path and it compiles fine.
Runtime_tools:
changed ld to qcc in Makefile in lib/runtime_tools/c_src/x86-pc-nto-qnx.
gcc and ld don't pick up all the paths for libraries if called directly
CosNotification and CosEvent are broken because of filename length.
I have done some basic testing with multiple nodes in a single machine.
OS_MON doesn't work (or fail gracefully) which is understandable. Mnesia
seems to work fine.
- Sean
<<config.guess>> <<config.sub>>
NOTICE AND DISCLAIMER:
This email (including attachments) is confidential. If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents. We cannot accept liability for any breaches of
confidence arising through use of email. Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions. We will not accept responsibility for any commitments
made by our employees outside the scope of our business. We do not warrant
the accuracy or completeness of such information.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.guess
Type: application/octet-stream
Size: 42884 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20010320/81706b8e/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.sub
Type: application/octet-stream
Size: 40615 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20010320/81706b8e/attachment-0001.obj>
More information about the erlang-questions
mailing list