The Testing Area :: November Extensions



...sorry - don't know how I missed that:blush:
Hi all:
'xfonts-CN.tar.gz' is being worked on. It is named similarly to 'xfonts-JP.tar.gz'. Hope to submit this in a week or so.

I've tested my compile-3.3.5 extension by compiling +/-10 programs now - all but two seemed to have compiled fine, including the 2.4.31 bluetooth modules.

Both obexftp and mt-daapd give a similar error as follows:
Code Sample
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/bluez-utils/include -I.. -I../includes -I/opt/compile-3.3.5/include -g -Wall -Wmissing-declarations -Wmissing-prototypes -Wall -MT obexftp_io.lo -MD -MP -MF .deps/obexftp_io.Tpo -c obexftp_io.c  -fPIC -DPIC -o .libs/obexftp_io.o
obexftp_io.c: In function `pathcat':
obexftp_io.c:143: error: `_POSIX_PATH_MAX' undeclared (first use in this function)
obexftp_io.c:143: error: (Each undeclared identifier is reported only once
obexftp_io.c:143: error: for each function it appears in.)
obexftp_io.c: In function `open_safe':
obexftp_io.c:159: error: `_POSIX_PATH_MAX' undeclared (first use in this function)
obexftp_io.c:159: warning: unused variable `diskname'
obexftp_io.c: In function `checkdir':
obexftp_io.c:181: error: `_POSIX_PATH_MAX' undeclared (first use in this function)
obexftp_io.c:181: warning: unused variable `newpath'
make[2]: *** [obexftp_io.lo] Error 1
make[2]: Leaving directory `/KNOPPIX/usr/src/obexftp-0.10.7/obexftp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/KNOPPIX/usr/src/obexftp-0.10.7'
make: *** [all] Error 2

and

if gcc -DHAVE_CONFIG_H -I. -I. -I..   -g -Wall -DHAVE_SQL -DHOST='"i686-pc-linux-gnu"' -DNOT_HAVE_SA_LEN -I/opt/firefly/include  -I/opt/compile-3.3.5/include -MT configfile.o -MD -MP -MF ".deps/configfile.Tpo" -c -o configfile.o configfile.c; \
then mv -f ".deps/configfile.Tpo" ".deps/configfile.Po"; else rm -f ".deps/configfile.Tpo"; exit 1; fi
configfile.c: In function `config_handler':
configfile.c:282: error: `PATH_MAX' undeclared (first use in this function)
configfile.c:282: error: (Each undeclared identifier is reported only once
configfile.c:282: error: for each function it appears in.)
configfile.c:282: warning: unused variable `path'
configfile.c:283: warning: unused variable `resolved_path'
configfile.c:284: warning: unused variable `web_root'
configfile.c: In function `config_emit_conffile':
configfile.c:470: error: `PATH_MAX' undeclared (first use in this function)
configfile.c:470: warning: unused variable `fullpath'
configfile.c: In function `config_emit_include':
configfile.c:785: error: `PATH_MAX' undeclared (first use in this function)
configfile.c:785: warning: unused variable `resolved_path'
configfile.c:786: warning: unused variable `path'
configfile.c:787: warning: unused variable `web_root'
make[3]: *** [configfile.o] Error 1
make[3]: Leaving directory `/ramdisk/usr/src/mt-daapd-svn-1417/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/ramdisk/usr/src/mt-daapd-svn-1417/src'

The errors seem to be for the same reason and seem similar in type to the "make dep" error for which Curaga provided a fix (add "#include <sys/param.h>" at the beginning of ../scripts/mkdep.c). If I use gcc1-with-libs.dsl or install a compile environment from debs, the error with obexftp does not occur.

I guess the error is something to do with having the headers in /opt rather than in /usr, but so far google has not thrown up anything obvious - any ideas?

They look very similar to me - try the same thing again? Add that include to the conflicting files?
I'd tried that with obexftp and it didn't work - however with mt-daapd it did work (I had to add the line in 5-6 *.c files), thanks.

...Question is, why do I need to do this?

Next Page...
original here.