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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,59ec34bfa2373410 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!transit.nntp.hccnet.nl!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Marc A. Criley" Newsgroups: comp.lang.ada Subject: Re: Using Jim Rogers' "Ada Binding to Pipes"? (Was: SSH Sessions?) Date: Fri, 13 Aug 2004 12:44:44 -0500 Message-ID: <2o4d0kF6f1hsU1@uni-berlin.de> References: <49dc98cf.0408091032.508f09df@posting.google.com> <2nrv4rF3hamgU1@uni-berlin.de> X-Trace: news.uni-berlin.de Kj02BMVeyE8zXNDiFQ96bwxpAIahOrZdr7rYpVO+YrtwM67Xvl X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Xref: g2news1.google.com comp.lang.ada:2721 Date: 2004-08-13T12:44:44-05:00 List-Id: "Jacob Sparre Andersen" wrote: > I have some problems getting it to link (using GNAT/Linux/IA32). This > looks like the critical section in the output from `gnatmake`: > > ---------- > gnatlink pipe_commands_test.ali > ./pipe_commands.o(.text+0x3f4): In function `pipe_commands__read_next': > : undefined reference to `c_constant_eof' > collect2: ld returned 1 exit status > gnatlink: cannot call /usr/gnat/gnat-501p-jmc/bin/gcc > gnatmake: *** link failed. > ---------- > > Any suggestions? Now that you mention it, I vaguely recall having to deal with that problem. I _think_ the problem was that the code interfaced to a symbol in the GNAT library called "c_constant_eof". As the Pipes package is a few years old, GNAT has undergone several version upgrades since then, and that symbol is no longer available. Waitaminnit, oh, you are soooooo lucky! I carry the DTraq code around with me on one of those flash memory drives, and since it uses Pipes I pulled up the code. Here's the comment I put in: -- MODIFIED: 26 Jan 2003 Marc A. Criley -- c_constant_EOF no longer available. (Defined by GNAT 3.13p? No longer -- available in 3.15p?) Replaced with hard-coded -1, as per stdio.h There you go! Marc A. Criley McKae Technologies www.mckae.com