From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,818de2d69a09a340,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!i39g2000cwa.googlegroups.com!not-for-mail From: "darrylbleau@gmail.com" Newsgroups: comp.lang.ada Subject: Cross-Compiling Ada to Netware with GNAT Date: 22 Mar 2006 15:38:17 -0800 Organization: http://groups.google.com Message-ID: <1143070697.388445.48160@i39g2000cwa.googlegroups.com> NNTP-Posting-Host: 142.59.15.189 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1143070702 25363 127.0.0.1 (22 Mar 2006 23:38:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 22 Mar 2006 23:38:22 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: i39g2000cwa.googlegroups.com; posting-host=142.59.15.189; posting-account=N34k6Q0AAABVyfkqpWkCbL5JBhvDGGw_ Xref: g2news1.google.com comp.lang.ada:3562 Date: 2006-03-22T15:38:17-08:00 List-Id: Hello all, Exploring using Ada as a replacement language for C, however, one of our requirements is that we need to be able to run our programs on Novell Netware. So, one of the first aspects of the feasilbility study is to get an Ada program running on Netware. We've been so far unsuccessful, so I was hoping someone here could help point us in the right direction. Currently, we cross compile our C programs using gcc and link everything into an elf32-i386 object file. Then, we use nlmconv to convert this into an NLM (Netware's executable format). So, we tried this approach to cross compile Ada programs, linking the object file that gnatmake generated together with libgnat.a and libgcc_eh.a. However, nlmconv errors out with an 'invalid operation' and lists missing symbols related to C, this seems to be from using the wrong header files (using the Linux headers, not the Netware ones), so we're missing 'stdout and stdin' among others. Netware, of course, won't run the generated NLM. I've only been researching Ada for about a month in my spare time, but everyplace I read can't stop talking about how portable it is, so I'm thinking there must be an easy way to make this work, I'm just not sure how. I did read about compiling a compiler on the target platform itself and using this to compile programs with, is that the direction I should be taking instead of cross compiling? Though it would seem that you should be able to cross compile to any gcc supported platform (of which Netware is). In any event, I'm at a bit of a loss, can anyone help?