Building and Installing Software Packages for Linux: Second Example: Xloadimage
10. Second Example: XloadimageThis example poses an easier problem. The xloadimage program
seemed a useful addition to my set of graphic tools. I copied the
xloadi41.gz file directly from the source directory on the CD
included with the excellent X User Tools book, by
Mui and Quercia. As expected, tar xzvf unarchives the files.
The make, however, produces a nasty-looking error and
terminates.
gcc -c -O -fstrength-reduce -finline-functions -fforce-mem
-fforce-addr -DSYSV -I/usr/X11R6/include
-DSYSPATHFILE=\"/usr/lib/X11/Xloadimage\" mcidas.c
In file included from /usr/include/stdlib.h:32,
from image.h:23,
from xloadimage.h:15,
from mcidas.c:7:
/usr/lib/gcc-lib/i486-linux/2.6.3/include/stddef.h:215:
conflicting types for `wchar_t'
/usr/X11R6/include/X11/Xlib.h:74: previous declaration of
`wchar_t'
make[1]: *** [mcidas.o] Error 1
make[1]: Leaving directory
`/home/thegrendel/tst/xloadimage.4.1'
make: *** [default] Error 2The error message contains the essential clue.Looking at the file image.h, line 23...
#include <stdlib.h>Aha, somewhere in the source for xloadimage, wchar_t
has been redefined from what was specified in the standard include file,
stdlib.h. Let us first try commenting out line 23 in
image.h, as perhaps the stdlib.h include is
not, after all, necessary.At this point, the build proceeds without any fatal errors. The
xloadimage package functions correctly now.
"
Wyszukiwarka
Podobne podstrony:
software building 6 2ocvurnawmtlrc3nobvr5ybctyvu4z555g7oeiq 2ocvurnawmtlrc3nobvr5ybctyvu4z555g7oeiqsoftware building 8 e4uyh3qkwxjc7pme5ousvqulimbc3x5q6hwh2di e4uyh3qkwxjc7pme5ousvqulimbc3x5q6hwh2disoftware building 4 ow4u7ftjqix6ypyajyiausw6ljbnsk4lccnikpi ow4u7ftjqix6ypyajyiausw6ljbnsk4lccnikpisoftware building rk7wcyx6ll4z62ay6pxhl7zsmijpswjrdb3qt6a rk7wcyx6ll4z62ay6pxhl7zsmijpswjrdb3qt6asoftware raid 10 lzdgw3mn6ibxyru227ro7pfrcpwlnjgs7n4jppq lzdgw3mn6ibxyru227ro7pfrcpwlnjgs7n4jppqsoftware building 11 ruydodrt5a2jmrwkndrlzz4khac6w4jsqvoidyi ruydodrt5a2jmrwkndrlzz4khac6w4jsqvoidyisoftware building 2 n76ie6xpeb3tkzsblytpeqzqkz2gq3dvxytjrra n76ie6xpeb3tkzsblytpeqzqkz2gq3dvxytjrrasoftware building 3 cm4c3mvlq633x2fbs3nkewycw6by57oa3d3gvhy cm4c3mvlq633x2fbs3nkewycw6by57oa3d3gvhysoftware building 7 gvqwxnhhh6cp42g7acdoucihxzm3dxkcuizdtka gvqwxnhhh6cp42g7acdoucihxzm3dxkcuizdtkasoftware building 13 mgyrdfdbroezamwrbct7xrjmnwjih5u5euadhma mgyrdfdbroezamwrbct7xrjmnwjih5u5euadhmasoftware building 5 z4naps6edff5df6r2cjzhoabg3kkdtaiislc3za z4naps6edff5df6r2cjzhoabg3kkdtaiislc3zasoftware building 1 4mtij5nhoj6dihjrdfhj5ed4gtky4376odatrxq 4mtij5nhoj6dihjrdfhj5ed4gtky4376odatrxqsoftware building 14 wqgkthak6yuioaph52rogh75d4n2rdp5bnaqv7q wqgkthak6yuioaph52rogh75d4n2rdp5bnaqv7qsoftware building 12 zvmjr3cx2kxg2soy4tu2wczso5tyoaa2qfkxgma zvmjr3cx2kxg2soy4tu2wczso5tyoaa2qfkxgmasoftware building 9 2inhqd5wjqaqos5nqjqk7dqsszz4na7guvhab7i 2inhqd5wjqaqos5nqjqk7dqsszz4na7guvhab7i2006 10 Idle Cycles Building Distributed Applications with Boinc2009 10 Playing Fetch Building a Dedicated Download System with Rtorrent2001 10 Installing Software Form the Source2006 10 Tv in Linux Building a Home Media Center with Mythtvwięcej podobnych podstron