help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to link against diskfs


From: Sergiu Ivanov
Subject: How to link against diskfs
Date: Fri, 9 May 2008 17:47:01 +0300

Hello,

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'

Could anybody suggest anything?

scolobb

reply via email to

[Prev in Thread] Current Thread [Next in Thread]