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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fdc46188f27004ac X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-28 14:45:39 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!uninett.no!news.net.uni-c.dk!sunsite.dk!newsfeed1.uni2.dk!news.get2net.dk.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada Subject: Re: POSIX Issue: To_Posix_String() generates incorrect data References: From: Mark Lorenzen Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:Rw+vmfctUvOiZpE15evhebvKabw= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 25 Jan 2004 02:53:13 +0100 NNTP-Posting-Host: 82.180.17.203 X-Complaints-To: abuse@colt-telecom.dk X-Trace: news.get2net.dk 1075329938 82.180.17.203 (Wed, 28 Jan 2004 23:45:38 CET) NNTP-Posting-Date: Wed, 28 Jan 2004 23:45:38 CET Organization: Colt Telecom Kunde Xref: archiver1.google.com comp.lang.ada:5014 Date: 2004-01-25T02:53:13+01:00 List-Id: "Thierry S." writes: > Hi, > > I am running RH9 (2.4.20-8), with GNAT 3.15p and Florist (compatible version > downloaded from ACT-Europe/Libre) and I am having all sorts of problems with > the POSIX library. > > Would anybody have any idea of what is wrong? > I must have setup it up incorrectly, but the INSTALL and README files are > very sparse of information when it comes to solving issues. > > I am using a small little program and I implemented the following test: > ... > My_String : consatnt string := "/home/tschn/file"; > The_Posix_String : constant Posix.Posix_String := Posix.To_Posix_String > (My_String); > To_Posix_And_Back_String : constant string := > Posix.To_String(The_Posix_String); > > ... and To_Posix_And_Back_String is not equal to My_String (it is all > wrong)!!!! > > I then implemented the 2 routines myself, and it was very easy and working. > So how come the Florist library gets it wrong? For sure, I cannot use my > version of the routines as the Posix instances are called all over my > application, and I don't want to modify it. On top of that, I am sure that > if I wold do this replacement, my trouble would not be over, and the Posix > interface would not work properly anyways. > > Again, the issue of function To_Posix_String() is only an illustration of my > problems, the source of them must be somewhere else, like of the ./configure > which may not deal with my version of Linux RH9 well. > > Thank you for your help. > Thierry I am unable to recreate the problem on Fedora Core 1 using florist 3.15p and two different Ada compilers - the one coming with Fedora Core 1 (gcc 3.3.2 20031022) and gcc 3.4.0 20040121 (prerelease). Everything works as expected. Please post a little test program (that can compile!). - Mark Lorenzen