Re: trying to build synopsis for FreeBSD 4.7

[email protected] (Gilles J. Seguin)
Newsgroups gmane.comp.documentation.synopsis
Message-ID <[email protected]>
On Tue, 2004-08-17 at 16:35, Vicki Brown wrote:
> Has anyone successfully built synopsis for FreeBSD?
> If so, please contact me!
> 
> I've installed gcc 3.1
> I have gmake available.
> Now I'm getting math library errors
> Suggestions?
> 
> $ uname -a
> FreeBSD test21.eng 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Fri Dec  6 
> 13:38:10 PST 2002     root@:/usr/src/sys/compile/350-GODSPEED-4.7 
> i386
> In file included from 
> /usr/local/lib/gcc-lib/i386-portbld-freebsd4.7/3.1.1/include/g++-v3/bits/locale_facets.tcc:41,
>                   from 
> /usr/local/lib/gcc-lib/i386-portbld-freebsd4.7/3.1.1/include/g++-v3/locale:46,
>                   from 
> /usr/local/lib/gcc-lib/i386-portbld-freebsd4.7/3.1.1/include/g++-v3/bits/ostream.tcc:37,
>                   from 
> /usr/local/lib/gcc-lib/i386-portbld-freebsd4.7/3.1.1/include/g++-v3/ostream:275,
>                   from 
> /usr/local/lib/gcc-lib/i386-portbld-freebsd4.7/3.1.1/include/g++-v3/iostream:45,
>                   from 
> /usr/home/vlbrown/synopsis-0.7/Cxx-API/include/Synopsis/Python/Object.hh:14,
>                   from 
> /usr/home/vlbrown/synopsis-0.7/Cxx-API/include/Synopsis/Python/Module.hh:11,
>                   from 
> /usr/home/vlbrown/synopsis-0.7/Cxx-API/include/Synopsis/Python/Kit.hh:11,
>                   from 
> /usr/home/vlbrown/synopsis-0.7/Cxx-API/include/Synopsis/AST/ASTKit.hh:11,
>                   from 
> /usr/home/vlbrown/synopsis-0.7/Synopsis/Parsers/Cpp/cpp.cc:8:

try adding,
#include <cfloat>
before
#include <Synopsis/AST/ASTKit.hh>

that is weird, according to the trace, following should fail ??
please what is the ouput, can you check.
$ cat > foo.cc <<EOF
#include <iostream>
int main(){ std::cout << ""; }
EOF
# g++ -Wall -o foo.o -c foo.cc

> /usr/local/lib/gcc-lib/i386-portbld-freebsd4.7/3.1.1/include/g++-v3/cmath: In
>     function `float std::acos(float)':
> /usr/local/lib/gcc-lib/i386-portbld-freebsd4.7/3.1.1/include/g++-v3/cmath:99: 
> `::
>     acosf' undeclared (first use here)
> /usr/local/lib/gcc-lib/i386-portbld-freebsd4.7/3.1.1/include/g++-v3/cmath: In
>     function `float std::asin(float)':
> /usr/local/lib/gcc-lib/i386-portbld-freebsd4.7/3.1.1/include/g++-v3/cmath:119: 
> `::
>     asinf' undeclared (first use here)
> /usr/local/lib/gcc-lib/i386-portbld-freebsd4.7/3.1.1/include/g++-v3/cmath: In
>     function `float std::atan(float)':
> ...
> /usr/local/lib/gcc-lib/i386-portbld-freebsd4.7/3.1.1/include/g++-v3/cmath: In
>     function `float std::tanh(float)':
> /usr/local/lib/gcc-lib/i386-portbld-freebsd4.7/3.1.1/include/g++-v3/cmath:489: 
> `::
>     tanhf' undeclared (first use here)
> gmake: *** [cpp.o] Error 1
> gmake: Leaving directory 
> `/usr/home/vlbrown/synopsis-0.7/build/temp.freebsd-4.7-RELEASE-i386-2.3/Synopsis/Parsers/Cpp'
> error: command 'sh' failed with exit status 2
> *** Error code 1
> 
> 
> Sorry to seem so lame... I've been pretty much avoiding C coding as 
> much as possible since 1988...
> for just this sort of reason, truth be told.
> 
> p.s. adding
>    || defined(__FreeBSD__)
>   to line 78 of Synopsis/Parsers/Cpp/ucpp/eval.c solved the previous problem
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.