The following arises when compiling. I haven't tested it without --as-needed because this almost certainly looks like an issue of that: i686-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -fomit-frame-pointer -msse3 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,-znow -o gnomevfs-umount -lglib-2.0 gnomevfs_umount-gnomevfs-umount.o gnomevfs_umount-gnomevfs-umount.o: In function `main': gnomevfs-umount.c:(.text+0x2c): undefined reference to `g_path_is_absolute' gnomevfs-umount.c:(.text+0x3b): undefined reference to `g_strdup' gnomevfs-umount.c:(.text+0x4d): undefined reference to `g_strdup_printf' gnomevfs-umount.c:(.text+0x57): undefined reference to `g_free' gnomevfs-umount.c:(.text+0x69): undefined reference to `g_free' gnomevfs-umount.c:(.text+0x83): undefined reference to `g_get_current_dir' gnomevfs-umount.c:(.text+0xa4): undefined reference to `g_build_path' gnomevfs-umount.c:(.text+0xae): undefined reference to `g_free' gnomevfs-umount.c:(.text+0xc4): undefined reference to `g_print' collect2: ld returned 1 exit status make[2]: *** [gnomevfs-umount] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/sys-fs/gnomevfs-mount-0.2.0/work/gnomevfs-mount-0.2.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-fs/gnomevfs-mount-0.2.0/work/gnomevfs-mount-0.2.0' make: *** [all] Error 2 Reproducible: Always
Created attachment 107021 [details, diff] gnomevfs-mount-as-needed.patch Fixes the link issues. Not sure if this is the proper way to do it, but seems like it.
That patch makes no sense. The failure is with gnomevfs-umount and you are patch gnomevfs-mount. Try building without -Wl,--hash-style=both -Wl,-znow.
The failure is definitely --as-needed. I just patched the gnomevfs_mount_LDADD because it was there. As I said, I am not 100% positive on autotools stuff like this, so wasn't sure if there is more to it than gnomevfs_umount_LDADD = $(GLIB_LIBS) .. Because if so I had no idea what else to modify.
Created attachment 107022 [details, diff] gnomevfs-mount-as-needed.patch Patches for umount instead of mount.
gnomevfs-mount isn't a gnome package...
I know, it's closer to gnome than anything else I could think of, and since I can't specify an email (only devs can do that), it was the best choice IMO.
committed your patch, I wonder why you play with this package anyway - I thought it is dead.
Someone recommended it to me when I asked how to get gnomevfs mounted filesystems to be hard mounted, and not virtually. (So KDE apps, and others that don't use gnomevfs can use the stuff)