On 29 Jan 02, at 20:37, Guillaume Rousse wrote:
[...]
I should have precised i'm building a mdk package, not just installing it on my box.
Hmm ... I know nothing about building those ...
Anyway, i took the 'official' gpc rpm found on gnu-pascal ftp site, and adapted it to current gpc-20011222 and gcc-2.95-3. However, some things have changed: - there is now only one gpc binary, where they were epc, bpc, gpc and pc before
Yes.
- i had to add the following
files and directories to make units work: %{_prefix}/lib/gcc-lib/%{gcc_target_platform}/%{gcc_version}/cpp0 %{_prefix}/lib/gcc-lib/%{gcc_target_platform}/%{gcc_version}/cc1 %{_prefix}/lib/gcc-lib/%{gcc_target_platform}/%{gcc_version}/include %{_prefix}/lib/gcc-lib/%{gcc_target_platform}/%{gcc_version}/units - gcc-cpp seems to be called gccpp now Off course, if you're interested in the spec file, i can send it back :-)
Well, I don't think all that is necessary if the compiler is installed correctly (at least, it all works here, without my fiddling with the specs file). Perhaps this is all because you are building and mdk?
Everything now seems to be fine, however, CRT extension doesn't work -(
[guillaume@silbermann 301]$ cat test1.pas PROGRAM Test;
BEGIN WRITELN('Hello World'); END. [guillaume@silbermann 301]$ cat test2.pas PROGRAM Test; USES CRT;
BEGIN WRITELN('Hello World'); END. [guillaume@silbermann 301]$ gpc --automake test1.pas -o test1 [guillaume@silbermann 301]$ ./test1 Hello World [guillaume@silbermann 301]$ gpc --automake test2.pas -o test2 [guillaume@silbermann 301]$ ./test2 (nothing)
So, what going wrong there ?
Strange. Doesn't work here either. I have never noticed this before (probably because I haven't used crt under linux). However, I don't remember any problem with crt coming up when I ran the testsuite. Mandrake is based on RH and so may have the same bugs as RH. But I have also tested this on Redmond Linux, which is based on Debian, and the same problem exists there. Again, this didn't show up when I ran the testsuite.
Frank - is there a problem with the testsuite not showing up crt problems?
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~African_Chief email: African_Chief@bigfoot.com