reassign 544356 libphysfs 2.0.0-3 retitle 544356 Fails to initialize on kfreebsd thanks
On Fri, Sep 11, 2009 at 11:01:38PM +0200, Jordà Polo wrote: > Jānis Rūcis (parasti), Neverball developer, told me at on IRC: > > «running a small test program on a kFreeBSD live CD gives "no such > file or directory" as the error when physfs init fails (i.e., running > from PATH not with relative/absolute name); readlink /proc/self/exe > prints out "unknown"» > > I'm still not able to reproduce it, but wanted to keep you updated. I have finally been able to reproduce the problem using an up-to-date kfreebsd, and can confirm it is a bug in libphysfs and not in neverball. PHYSFS_init() fails to guess the path of the binary on kfreebsd. To reproduce it, compile the attached code (gcc physfs-init.c -lphysfs) and invoke it as follows: $ ./a.out ok $ PATH=$(pwd):$PATH a.out not ok: No such file or directory I'm now reassigning this bug to libphysfs.
#include <stdio.h> #include <physfs.h> int main(int argc, char *argv[]) { if (PHYSFS_init(argv[0])) printf("ok\n"); else printf("not ok: %s\n", PHYSFS_getLastError()); }