I'm trying to build a program using diskfs, but I cannot figure out which -l switches must be added to gcc command line. I looked into hurd-cvs/hurd/ext2fs/Makefile and added all libs listed in HURDLIBS, but this didn't help. I get messages of the following kind:
/lib/libdiskfs.so: undefined reference to 'diskfs_maxsymlinks' ... /lib/libpager.so: undefined reference to 'pager_report_extent' ... <some errors referring to diskfs, occassionally errors referring to pager>
collect2: ld returned 1 exit status
I also tried diskfs_pic and pager_pic (these should have enforced static linking, as far as I can get), but it didn't help either. When I try to use some symbols from diskfs (diskfs_console_stdio, for example), I get the following error for each symbol:
/path/to/my/source/file.c:line_number: undefined reference to 'symbol name'