Boost logo

Boost-Build :

From: Jurko Gospodnetić (jurko.gospodnetic_at_[hidden])
Date: 2008-07-28 06:10:13


   Hi Ashutosh.

> I am trying to compile boost 1.34.1 filesystem using gcc 3.2.3 on FreeBSD 4.8.
>
> I am compiling using bjam.
>
> I have set option correctly.
> ./bjam --toolset=gcc stage --with-filesystem -a -d+2
>
> I am getting error for operations.cpp
> ---------------------------------------------
> "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_DYN_LINK=1 -I"." -c -o "bin.v2/libs/filesystem/build/gcc-3.2.3/debug/threading-multi/operations.o" "libs/filesystem/src/operations.cpp"
>
> libs/filesystem/src/operations.cpp:69:30: sys/statvfs.h: No such file or directory
> libs/filesystem/src/operations.cpp: In function
> `boost::filesystem::detail::space_pair
> boost::filesystem::detail::space_api(const std::string&)':
> libs/filesystem/src/operations.cpp:1004: aggregate `
> boost::filesystem::detail::statvfs vfs' has incomplete type and cannot be
> defined
> libs/filesystem/src/operations.cpp:1006: `::statvfs' undeclared (first use
> here)
> --------------------------------------------
>
> I have searched for this file also and this does not exists any where on FreeBSD4.8.
>
> Is there any workaround to fix this for FreeBSD4.8
>
> Any help will be highly appreciated.

   Try grepping through the system headers for this statvfs structure.
It is most likely defined in some other header.

   Also google on 'statvfs FreeBSD' might give some more clues in case a
replacement is needed on this OS.

   Hope this helps.

   Best regards,
     Jurko Gospodnetić


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk