[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#621880: openscenegraph: FTBFS on kfreebsd-*: Cluster.cpp:56:6: error: #error Teach me how to build on this system



Cyril Brulebois writes:

> Source: openscenegraph
> Version: 2.9.11-1
> Severity: serious
> Justification: FTBFS
> User: debian-bsd@lists.debian.org
> Usertags: kfreebsd
>
> Hi,
>
> your package no longer builds on kfreebsd-*:
> | [ 87%] Building CXX object applications/present3D/CMakeFiles/application_present3D.dir/Cluster.o
> | cd /build/buildd-openscenegraph_2.9.11-1-kfreebsd-amd64-jXKFmU/openscenegraph-2.9.11/build/osg/applications/present3D && /usr/bin/c++    -g -O2  -Wall -Wparentheses -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -fpermissive -O3 -DNDEBUG -I/build/buildd-openscenegraph_2.9.11-1-kfreebsd-amd64-jXKFmU/openscenegraph-2.9.11/OpenSceneGraph/include -I/build/buildd-openscenegraph_2.9.11-1-kfreebsd-amd64-jXKFmU/openscenegraph-2.9.11/build/osg/include   -o CMakeFiles/application_present3D.dir/Cluster.o -c /build/buildd-openscenegraph_2.9.11-1-kfreebsd-amd64-jXKFmU/openscenegraph-2.9.11/OpenSceneGraph/applications/present3D/Cluster.cpp
> | /build/buildd-openscenegraph_2.9.11-1-kfreebsd-amd64-jXKFmU/openscenegraph-2.9.11/OpenSceneGraph/applications/present3D/Cluster.cpp:56:6: error: #error Teach me how to build on this system
> | /build/buildd-openscenegraph_2.9.11-1-kfreebsd-amd64-jXKFmU/openscenegraph-2.9.11/OpenSceneGraph/applications/present3D/Cluster.cpp: In member function 'void Receiver::sync()':
> | /build/buildd-openscenegraph_2.9.11-1-kfreebsd-amd64-jXKFmU/openscenegraph-2.9.11/OpenSceneGraph/applications/present3D/Cluster.cpp:369:64: warning: invalid conversion from 'int*' to 'socklen_t*'
> | /build/buildd-openscenegraph_2.9.11-1-kfreebsd-amd64-jXKFmU/openscenegraph-2.9.11/OpenSceneGraph/applications/present3D/Cluster.cpp:374:72: warning: invalid conversion from 'int*' to 'socklen_t*'
> | make[3]: *** [applications/present3D/CMakeFiles/application_present3D.dir/Cluster.o] Error 1
>
> Full build logs:
>   https://buildd.debian.org/status/package.php?p=openscenegraph&suite=experimental
>
> Please get in touch with debian-bsd@ if you need help for porting.
>
> KiBi.

Hi,

The problem comes from a list of cascading #ifdef checks that fails
because __FreeBSD__ is not defined. I wonder if just defining
__FreeBSD__ in the Makefile is fine or if I must instead patch the
package to check, for example, if __FreeBSD_kernel__ is defined.

--
Alberto


Reply to: