Hi On 2013-10-30 14:18:24, IOhannes m zmoelnig wrote: > hi, > > On 2013-10-28 22:08, Sebastian Ramacher wrote: > > > > pd-iemambi fails to build on kfreebsd-* with: | /usr/bin/make -C > > src CFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 > > -Wformat -Werror=format-security -Wall" CXXFLAGS="-g -O2 > > -fstack-protector --param=ssp-buffer-size=4 -Wformat > > -Werror=format-security -Wall" CPPFLAGS="-D_FORTIFY_SOURCE=2" > > LDFLAGS="-Wl,-z,relro" | make[1]: Entering directory > > `/«PKGBUILDDIR»/src' | cc -DPD -DUNIX -W -Wno-unused > > -Wno-parentheses -Wno-switch -funroll-loops -fomit-frame-pointer > > -fno-strict-aliasing -DDL_OPEN -fPIC -g -O2 -fstack-protector > > --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall > > -I. -I/usr/local/src/pd/src -c -o ambi_decode.o ambi_decode.c | In > > file included from ambi_decode.c:7:0: | iemlib.h:69:2: error: > > #error No byte order defined | #error No byte order defined | ^ > > | make[1]: *** [ambi_decode.o] Error 1 > > > > > > Full build log is available at > > https://buildd.debian.org/status/fetch.php?pkg=pd-iemambi&arch=kfreebsd-amd64&ver=0.2-1&stamp=1373234505. > > thanks > > > for the bug-report. > > i tried to tackle down the problem and installed a kfreebsd-amd64 > system in VirtualBox. > for whatever reasons i'm unable to reproduce the FTBFS. > > the problematic code looks like: > > <snip> > #if defined(__FreeBSD__) || defined(__APPLE__) || > defined(__FreeBSD_kernel__) > # include <machine/endian.h> > #endif > > #if defined(__unix__) || defined(__APPLE__) > # if !defined(BYTE_ORDER) || !defined(LITTLE_ENDIAN) > # error No byte order defined > # endif > #endif > </snip> > > afaict (using `cpp -dM /dev/null`) both "__FreeBSD_kernel__" and > "__unix__" are defined by default on kfreebsd-amd64. > after including <machine/endian.h> BYTE_ORDER is also defined (at > least according to `cpp -dM /usr/include/machine/endian.h`), so i do > not know how error can be triggered. > > could anybody please confirm that it pd-iemambi does (not) build on > their kfreebsd-* systems?
I confirmed the build failure on fischer.d.o. Note that /usr/include/machine/endian.h guards the definition of BYTE_ORDER and LITTLE_ENDIAN with #if __BSD_VISIBLE. __BSD_VISIBLE is not defined and hence only the versions with leading underscores are available. Regards -- Sebastian Ramacher
signature.asc
Description: Digital signature