On redhat 6.1/intel linking against any of the ext2 libs fails when using the -l<libname> switch, but succedes when the full path is passed on the cc command line. ie, gcc obj1.o obj2.o /lib/libe2p.so.2.3 # works gcc obj1.o obj2.o -le2p # fails
Make sure that you have e2fsprogs-devel installed. If you are not installing from a package, make sure that you have run ldconfig. The actual file that should be used by the linker when given -le2p is /usr/lib/libe2p.so created by either the package or the ldconfig command.