patches for libfpx to make it build on NetBSD
Posted: 2015-12-27T11:36:15-07:00
HI, I have been trying to build libfpx on NetBSD and made some patches to make it build.
One problem I came across was that NetBSD doesn't define __unix.
The build system defines _UNIX so I use that instead. Correct me if it is incorrectly used.
NetBSD does not have statfs but it has posix statvfs so the patches include fixes for this.
The library is not linked with c++ but with the c linker. Fix for this is included as well.
The automake manual mentions the method used.
The public header fpxlib.h includes the autoconfigurated config file. I think this should not be the case since it's definitions might conflict with
the config file used in packages that use libfpx. I can't see that any definitions in fpxlib-config.h is used in fpxlib.h.
The patches are available in the pkgsrc-wip repository. web interface to patches directory.
Regards,
Niclas
One problem I came across was that NetBSD doesn't define __unix.
The build system defines _UNIX so I use that instead. Correct me if it is incorrectly used.
NetBSD does not have statfs but it has posix statvfs so the patches include fixes for this.
The library is not linked with c++ but with the c linker. Fix for this is included as well.
The automake manual mentions the method used.
The public header fpxlib.h includes the autoconfigurated config file. I think this should not be the case since it's definitions might conflict with
the config file used in packages that use libfpx. I can't see that any definitions in fpxlib-config.h is used in fpxlib.h.
The patches are available in the pkgsrc-wip repository. web interface to patches directory.
Regards,
Niclas