Re: Compile errors

Frank McCormick via fpc-pascal <[email protected]>
Newsgroups gmane.comp.compilers.free-pascal.general
Message-ID <[email protected]>

On 2025-01-21 10:15, Michael Van Canneyt via fpc-pascal wrote:
> 
> 
> On Tue, 21 Jan 2025, Frank McCormick via fpc-pascal wrote:
> 
>>
>>
>> On 2025-01-21 09:00, Michael Van Canneyt via fpc-pascal wrote:
>>>
>>>
>>> On Mon, 20 Jan 2025, Frank McCormick via fpc-pascal wrote:
>>>
>>>> I have been trying out a CRT replacement called NCRT and OCRT and
>>>> am getting link errors which I can't track down. Originally I was 
>>>> getting compile errors but I sorted that out.
>>>> Are these units still workable with Free Pascal ?
>>>> These are the link errors I am getting:
>>>>
>>>> Free Pascal Compiler version 3.2.2 [2025/01/10] for x86_64
>>>> Copyright (c) 1993-2021 by Florian Klaempfl and others
>>>> Target OS: Linux for x86-64
>>>> Compiling screen_demo.pp
>>>> Linking screen_demo
>>>> /usr/bin/ld: /usr/lib64/fpc/3.2.2/units/x86_64-linux/ncurses/ 
>>>> ncurses.o: in function `NCURSES_$$_ACS_ULCORNER$$QWORD':
>>>> ncurses.pp:(.text.n_ncurses_$$_acs_ulcorner$$qword+0x3): undefined 
>>>> reference to `acs_map'
>> /snip/
>>>
>>> Your answer may be here:
>>>
>>> https://unix.stackexchange.com/questions/30526/undefined-reference- 
>>> to- symbol-acs-map-when-running-makeconfig
>>>
>>> So try to add
>>>   {$linklib tinfo}
>>> to your program source.
>>
>> I added it at the top of the source but
>> same problem(s). I also found out I cannot compile ANY of the example 
>> programs provided.

> 
> Strange. I know someone who uses ocrt on OpenSuse since years. Maybe he 
> is still on an older version of OpenSuse.
> 
> I now tested 10 of the provided demos and on my linux mint they all start
> without problem.
> 

    This is weird. This morning I installed FPC into my Debian Trixie 
installation on another partition.
I successfully compiled and ran all the demo programs !!

It seems FPC on my OpenSuse installation is broken somehow.
I have removed FPC and installed it directly from the RPM downloads
on the Free Pascal site and it suffered the same problems.
I then re-installed the OpenSuse Tumbleweed version
and suffered exactly the same problem.
I will try asking on the OpenSuse Tumbleweed mailing list, but
I fear there are not many (if any) people using Pascal there.

Frank McCormick.



_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.