Building Sunfish
Dave Higton (1515) 3404 posts |
I naively thought I’d have a go at building Sunfish. Has anyone else tried? Source is available from http://www.cp15.org/networking/ The first issue that I’ve failed to resolve is the missing file nfs2-structs.h. I see that there are some more failures to open files: rpc-calls.h, nfs2-calls.h, mount1-calls.h, portmapper-calls.h and pcnfsd-calls.h but I haven’t gone searching for them yet. Is the source incomplete, or is there somewhere else that I should be looking, or have I just plain missed something? As an aside, I was surprised that the Iconv module is used, but I couldn’t find any iconv.h file on the machine. I tracked one down on Github, so I’ve solved the failure – but is there any standard(-ish) place that iconv.h should live on a developer’s machine? |
Dave Higton (1515) 3404 posts |
I’m pleased to report that I’m much further on, although it seems far from straightforward. One new question: where is __valist defined? It’s used in CLib.h.wchar but g++ is erroring out because h.wchar is included and the symbol is undefined. |
Jeffrey Lee (213) 6046 posts |
stdarg.h |
Dave Higton (1515) 3404 posts |
Not in the copy I have here. There is a related type:
but the only occurrences of __va_list in my entire AcornC/C++ directory are in h.wchar and only as uses without a definition. |
Chris Johnson (125) 819 posts |
stdarg.h is part of the standard c library. It is referenced in the Norcroft C/C++ user manual. |
Jeffrey Lee (213) 6046 posts |
Judging by the fact that stdio.h uses
Which probably explains why nobody’s spotted that it’s broken. However your post also raises another question – are you trying to use the Norcroft CLib headers with GCC? Generally the standard C library headers are tailored for use with the compiler they’re shipped with (compiler-specific pragmas, compiler-specific builtin types like |
Dave Higton (1515) 3404 posts |
Most perceptive, Jeffrey. I was. Your solution vastly reduces the number of errors I have to cope with now. Thank you! |
Ronald May (387) 407 posts |
GCC later than 3.4.6 has stdarg.h in lib/gcc/arm-unknown-riscos/4.7.4/imclude and not the runtime library. |