Check how you built your library, because my library doesn't contain any predefined fopen, nor is there any predefined fopen in the source code.
Seems to me like you produced an executable rather than a library.