undefined reference

Tobias Burnus burnus@net-b.de
Tue Apr 29 16:25:00 GMT 2008


FX wrote:
>> /tmp/cc2gMphB.o:chmod_1.f90:(.text+0x2d9): undefined reference to
>> `__gfortran_chmod_i4_sub'^M
>> /tmp/cc2gMphB.o:chmod_1.f90:(.text+0x2e5): undefined reference to
>> `__gfortran_getuid'^M
>>
>> FAIL: gfortran.dg/chmod_1.f90  -O0  (test for excess errors)
>
> On mingw, we don't offer GETUID and CHMOD intrinsics (there are a few 
> other intrinsics in that situation), so you need to disable (I think 
> it's "dg-skip") the testcase on these targets.

NightStrike wrote:
 > So these tests are unsupported?

Yes. The problem is that the "getuid" (= get numerical user id) is a 
Unix concept; I think Windows does not use numerical IDs but name-based 
ids. Similar for "chmod" (change file mode): Windows has also file 
access modes, but they follow a different concept (Access Control Lists, 
ACLs). While cygwin emulates a Unix surrounding, mingw does not and thus 
these commands do not work. (That is at least how I understand it, I 
might be wrong.)

As there is no obvious implementation choice, one can also not implement 
it in libgfortran.

Tobias



More information about the Fortran mailing list