Problem compiling code in freeBSD 4,9 strtof related.

Eric De la Cruz Lugo eric at iteso.mx
Fri Mar 26 21:59:32 PST 2004


Hi, I am trying to compile the BhPos software (Point of Sale for Linux. 
 
But I need the strtof function , but FreeBSD 4,9 does not have this function, 
it is possible to install it taking the source code from the 5.X FreeBSD 
branch? 
 
here is my cc output: 
 
 
cc -O -pipe  -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include 
-D__DBINTERFACE_PRIVATE -DINET6 -DPOSIX_MISTAKE 
-I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DYP  -c 
/usr/src/lib/libc/../libc/stdlib/strtof.c -o strtof.o 
In file included from /usr/include/gdtoaimp.h:180, 
                 from /usr/src/lib/libc/../libc/stdlib/strtof.c:38: 
/usr/include/gdtoa.h:41: arith.h: No such file or directory 
In file included from /usr/src/lib/libc/../libc/stdlib/strtof.c:38: 
/usr/include/gdtoaimp.h:194: un-namespace.h: No such file or directory 
In file included from /usr/src/lib/libc/../libc/stdlib/strtof.c:38: 
/usr/include/gdtoaimp.h:278: syntax error before `one' 
/usr/include/gdtoaimp.h:278: syntax error before `IBM' 
/usr/include/gdtoaimp.h:281: syntax error before `}' 
*** Error code 1 
 
hope some one has a clue about how to solve this with out installing FreeBSD 
5.x 
 
thanks in advance. 
 
Eric De La Cruz Lugo 
Merida, Yucatan, Mexico. 
 

---


More information about the freebsd-questions mailing list