[Pxlib-devel] Compiling pxlib for Mac OSX 10.8.5 -> incomplete definition of type 'struct lconv'
Brought to you by:
steinm
|
From: Jaakko S. <jaa...@gm...> - 2013-10-23 13:12:43
|
Hello!
I've come across with some esoteric paradox files I'd like to convert to a
more readable form (CSV would be fine for now). I am trying to compile
pxlib from the 0.6.5 source, but end up with a couple of compiling errors
(./configure seems to work just fine). My OS is Mac OSX 10.8.5.
As it's been quite awhile since I last coded in C, I can't get the error
fixed. Any ideas?
Here's what I get:
make all-recursive
Making all in include
make[2]: Nothing to be done for `all'.
Making all in src
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I.. -I./../include -I./include
-DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -g -O2 -MT
paradox.lo -MD -MP -MF ".deps/paradox.Tpo" -c -o paradox.lo paradox.c; \
then mv -f ".deps/paradox.Tpo" ".deps/paradox.Plo"; else rm -f
".deps/paradox.Tpo"; exit 1; fi
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include
-I./include -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -g -O2 -MT
paradox.lo -MD -MP -MF .deps/paradox.Tpo -c paradox.c -fno-common -DPIC -o
.libs/paradox.o
paradox.c:2498:79: warning: format specifies type 'unsigned int' but the
argument has type 'long' [-Wformat]
...from 0x%X (block %d) to 0x%X (block %d)\n", recordpos, j,
recordoutpos,...
~~ ^~~~~~~~~
%lX
paradox.c:2498:93: warning: format specifies type 'unsigned int' but the
argument has type 'long' [-Wformat]
...(block %d) to 0x%X (block %d)\n", recordpos, j, recordoutpos, jout);
~~ ^~~~~~~~~~~~
%lX
paradox.c:2897:71: warning: comparison of unsigned expression < 0 is always
false [-Wtautological-compare]
...if(pxblob->read(pxblob, pxs, sizeof(TMbBlockHeader3), &mbblockhead) <
0...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
paradox.c:2913:74: warning: comparison of unsigned expression < 0 is always
false [-Wtautological-compare]
...if(pxblob->read(pxblob, pxs, sizeof(TMbBlockHeader3Table), &mbbhtab) <
0...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
~
paradox.c:3622:7: warning: implicit declaration of function 'localeconv' is
invalid in C99 [-Wimplicit-function-declaration]
lc = localeconv();
^
paradox.c:3622:5: warning: incompatible integer to pointer conversion
assigning
to 'struct lconv *' from 'int' [-Wint-conversion]
lc = localeconv();
^ ~~~~~~~~~~~~
paradox.c:3624:19: error: incomplete definition of type 'struct lconv'
buffer[j++] = lc->decimal_point[0];
~~^
paradox.c:3583:9: note: forward declaration of 'struct lconv'
struct lconv *lc;
^
paradox.c:4000:6: warning: incompatible integer to pointer conversion
assigning
to 'struct lconv *' from 'int' [-Wint-conversion]
lc = localeconv();
^ ~~~~~~~~~~~~
paradox.c:4002:28: error: incomplete definition of type 'struct lconv'
dpptr = strchr(value, lc->decimal_point[0]);
~~^
paradox.c:3985:9: note: forward declaration of 'struct lconv'
struct lconv *lc;
^
paradox.c:4162:88: warning: comparison of unsigned expression < 0 is always
false [-Wtautological-compare]
...pxblob->read(pxblob, pxblob->mb_stream, sizeof(TMbBlockHeader3Table),
&mbbhtab) < 0...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^ ~
8 warnings and 2 errors generated.
make[2]: *** [paradox.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
BR,
J
--
o Jaakko Särelä, PhD
o jaa...@ik... <jaa...@ik...>
o +358 44 358 9451
o http://fi.linkedin.com/in/jaakkosarela<http://fi.linkedin.com/in/jaakkosarela>
|