On Wednesday 11 April 2001 23:44, Frank Heckenbach wrote:
In your previous test report (forwarded by Maurice Lombardi), you also had the following errors in dialdef4.pas, fjf421l.pas and fjf421m.pas. I didn't understand them, and they didn't appear to occur now, so I suppose (hope ;-) it was some intermittent problem.
c:\djgpp\tmp\cceaaaaa: In function `pascal_main_program': fjf421m.pas:8: undefined reference to `_p_stdout' fjf421m.pas(.text+0x20): undefined reference to `_p_write' fjf421m.pas(.text+0x29): undefined reference to `_p_inoutres' fjf421m.pas(.text+0x31): undefined reference to `_p_check_inoutres' fjf421m.pas:9: undefined reference to `_p_atexit' fjf421m.pas(.text+0x82): undefined reference to `_p_initialize' fjf421m.pas(.text+0x91): undefined reference to `_p_finalize' collect2: ld returned 1 exit status failed
Tried to replace -g with -v in PFLAGS (file test_run). Got this problem. After that added -g at end and problem disappeared (on one box). Comparisson of outputs for dialdef1.pas shows that '-lgpc -lm' is missing in collect2 command line when I'm getting the failure.
So it seems that add_automake_files() in gpc.c fails to add linking these libraries to collect2 command line ( library==0 ?). I cannot say why it happens now.
Andris