Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am VERY new to Linux and am trying to install gd. I already installed ZLIB and PNG, which I think are prerequisites. When I get to the "make install" I get the following message:
[root@sandbox gd]# make install
gcc -fPIC -I. -I/usr/include/freetype2 -I/usr/include/X11
-I/usr/X11R6/include/X11 -I/usr/local/include -g -DHAVE_LIBPNG
-DHAVE_LIBZ -DHAVE_LIBJPEG -DHAVE_MALLOC_H -DHAVE_LIBFREETYPE
-DHAVE_LIBXPM -c -o gdxpm.o gdxpm.c
gdxpm.c:28:21: X11/xpm.h: No such file or directory
gdxpm.c: In function `gdImageCreateFromXpm':
gdxpm.c:32: error: `XpmInfo' undeclared (first use in this function)
gdxpm.c:32: error: (Each undeclared identifier is reported only once
gdxpm.c:32: error: for each function it appears in.)
gdxpm.c:32: error: syntax error before "info"
gdxpm.c:33: error: `XpmImage' undeclared (first use in this function)
gdxpm.c:42: error: `image' undeclared (first use in this function)
gdxpm.c:42: error: `info' undeclared (first use in this function)
gdxpm.c:43: error: `XpmSuccess' undeclared (first use in this function)
make: *** [gdxpm.o] Error 1
After doing some Internet searching, it seems I have to install XPM.
This may not be correct--please let me know if it is not. Anyway, I am
trying to install XPM. I downloaded the xpm-3.4k.tar.gz, created a
directory for it, and when I type "make -f Makefile.noX" I get the
following:
making all in ./lib...
make[1]: Entering directory `/usr/local/lib/xpm-3.4k/lib'
make[1]: *** No rule to make target `xpm.h', needed by `../X11/xpm.h'.
Stop.
make[1]: Leaving directory `/usr/local/lib/xpm-3.4k/lib'
making all in ./sxpm...
make[1]: Entering directory `/usr/local/lib/xpm-3.4k/sxpm'
make[1]: *** No rule to make target `../lib/xpm.h', needed by `sxpm.o'.
Stop.
make[1]: Leaving directory `/usr/local/lib/xpm-3.4k/sxpm'
making all in ./cxpm...
make[1]: Entering directory `/usr/local/lib/xpm-3.4k/cxpm'
cc -O -I.. -c -o cxpm.o cxpm.c
In file included from cxpm.c:36:
../lib/XpmI.h:45:17: xpm.h: No such file or directory
In file included from cxpm.c:36:
../lib/XpmI.h:180: error: syntax error before "int"
../lib/XpmI.h:181: error: syntax error before "int"
../lib/XpmI.h:187: error: syntax error before "void"
../lib/XpmI.h:189: error: syntax error before "void"
../lib/XpmI.h:191: error: syntax error before "void"
../lib/XpmI.h:193: error: syntax error before "void"
../lib/XpmI.h:195: error: syntax error before "void"
../lib/XpmI.h:196: error: syntax error before "void"
../lib/XpmI.h:197: error: syntax error before "void"
../lib/XpmI.h:201: error: syntax error before "void"
../lib/XpmI.h:204: error: syntax error before "void"
../lib/XpmI.h:224: error: syntax error before "int"
../lib/XpmI.h:225: error: syntax error before "void"
../lib/XpmI.h:226: error: syntax error before "xpmHashAtom"
../lib/XpmI.h:227: error: syntax error before "int"
../lib/XpmI.h:235: error: syntax error before "int"
../lib/XpmI.h:236: error: syntax error before "int"
../lib/XpmI.h:237: error: syntax error before "int"
../lib/XpmI.h:243: error: syntax error before "unsigned"
../lib/XpmI.h:245: error: syntax error before "int"
../lib/XpmI.h:246: error: syntax error before "int"
../lib/XpmI.h:247: error: syntax error before "int"
../lib/XpmI.h:253: error: syntax error before "int"
../lib/XpmI.h:257: error: syntax error before "int"
../lib/XpmI.h:262: error: syntax error before "int"
../lib/XpmI.h:263: error: syntax error before "char"
../lib/XpmI.h:265: error: syntax error before "void"
../lib/XpmI.h:271: error: syntax error before "void"
../lib/XpmI.h:273: error: syntax error before "void"
../lib/XpmI.h:340: error: syntax error before "unsigned"
In file included from cxpm.c:77:
../lib/data.c: In function `xpmGetString':
../lib/data.c:304: error: `XpmNoMemory' undeclared (first use in this
function)
../lib/data.c:304: error: (Each undeclared identifier is reported only
once
../lib/data.c:304: error: for each function it appears in.)
../lib/data.c:313: error: `XpmFileInvalid' undeclared (first use in
this function)
../lib/data.c:364: error: `XpmSuccess' undeclared (first use in this
function)
../lib/data.c: In function `xpmParseHeader':
../lib/data.c:420: error: `XpmFileInvalid' undeclared (first use in
this function)
../lib/data.c:478: error: `XpmSuccess' undeclared (first use in this
function)
In file included from cxpm.c:78:
../lib/parse.c: At top level:
../lib/parse.c:44: error: syntax error before "int"
../lib/parse.c: In function `xpmParseValues':
../lib/parse.c:75: error: `XpmFileInvalid' undeclared (first use in
this function)
../lib/parse.c:100: error: `Bool' undeclared (first use in this
function)
../lib/parse.c:100: error: syntax error before "got_one"
../lib/parse.c:112: error: `got_one' undeclared (first use in this
function)
../lib/parse.c:112: error: `False' undeclared (first use in this
function)
../lib/parse.c:119: error: `saw_width' undeclared (first use in this
function)
../lib/parse.c:123: error: `True' undeclared (first use in this
function)
../lib/parse.c:127: error: `saw_height' undeclared (first use in this
function)
../lib/parse.c:135: error: `saw_ncolors' undeclared (first use in this
function)
../lib/parse.c:144: error: `saw_chars_per_pixel' undeclared (first use
in this function)
../lib/parse.c:164: error: `XpmSuccess' undeclared (first use in this
function)
../lib/parse.c: In function `xpmParseColors':
../lib/parse.c:172: error: syntax error before "XpmColor"
../lib/parse.c:181: error: `XpmColor' undeclared (first use in this
function)
../lib/parse.c:181: error: `color' undeclared (first use in this
function)
../lib/parse.c:182: error: `colorTable' undeclared (first use in this
function)
../lib/parse.c:186: error: syntax error before ')' token
../lib/parse.c:188: error: `XpmNoMemory' undeclared (first use in this
function)
../lib/parse.c:212: error: `XpmSuccess' undeclared (first use in this
function)
../lib/parse.c:248: error: `XpmFileInvalid' undeclared (first use in
this function)
../lib/parse.c:323: error: invalid type argument of `unary *'
../lib/parse.c: In function `ParsePixels':
../lib/parse.c:334: error: syntax error before "XpmColor"
../lib/parse.c:353: error: `XpmNoMemory' undeclared (first use in this
function)
../lib/parse.c:366: error: subscripted value is neither array nor
pointer
../lib/parse.c:377: error: `XpmFileInvalid' undeclared (first use in
this function)
../lib/parse.c:398: error: subscripted value is neither array nor
pointer
../lib/parse.c:408: error: subscripted value is neither array nor
pointer
../lib/parse.c:451: warning: assignment makes pointer from integer
without a cast
../lib/parse.c:466: error: subscripted value is neither array nor
pointer
../lib/parse.c:480: error: `XpmSuccess' undeclared (first use in this
function)
../lib/parse.c: In function `xpmParseExtensions':
../lib/parse.c:486: error: syntax error before "XpmExtension"
../lib/parse.c:489: error: `XpmExtension' undeclared (first use in this
function)
../lib/parse.c:489: error: `exts' undeclared (first use in this
function)
../lib/parse.c:489: error: `ext' undeclared (first use in this
function)
../lib/parse.c:496: error: syntax error before ')' token
../lib/parse.c:499: error: `XpmSuccess' undeclared (first use in this
function)
../lib/parse.c:518: error: syntax error before ')' token
../lib/parse.c:523: error: `XpmNoMemory' undeclared (first use in this
function)
../lib/parse.c:588: error: invalid type argument of `unary *'
../lib/parse.c: In function `xpmParseData':
../lib/parse.c:607: error: syntax error before "XpmImage"
../lib/parse.c:613: error: `XpmColor' undeclared (first use in this
function)
../lib/parse.c:613: error: `colorTable' undeclared (first use in this
function)
../lib/parse.c:623: error: invalid type argument of `->'
../lib/parse.c:623: error: `XpmReturnComments' undeclared (first use in
this function)
../lib/parse.c:629: error: `XpmSuccess' undeclared (first use in this
function)
../lib/parse.c:696: error: invalid type argument of `->'
../lib/parse.c:696: error: `XpmReturnExtensions' undeclared (first use
in this function)
../lib/parse.c:698: error: invalid type argument of `->'
../lib/parse.c:699: error: invalid type argument of `->'
../lib/parse.c:703: error: invalid type argument of `->'
../lib/parse.c:704: error: invalid type argument of `->'
../lib/parse.c:710: error: invalid type argument of `->'
../lib/parse.c:711: error: invalid type argument of `->'
../lib/parse.c:712: error: invalid type argument of `->'
../lib/parse.c:713: error: invalid type argument of `->'
../lib/parse.c:714: error: invalid type argument of `->'
../lib/parse.c:715: error: invalid type argument of `->'
../lib/parse.c:719: error: invalid type argument of `->'
../lib/parse.c:720: error: invalid type argument of `->'
../lib/parse.c:721: error: invalid type argument of `->'
../lib/parse.c:724: error: invalid type argument of `->'
../lib/parse.c:725: error: invalid type argument of `->'
../lib/parse.c:726: error: invalid type argument of `->'
../lib/parse.c:726: error: `XpmHotspot' undeclared (first use in this
function)
In file included from cxpm.c:79:
../lib/RdFToI.c: At top level:
../lib/RdFToI.c:47: error: syntax error before "int"
../lib/RdFToI.c:48: error: syntax error before "void"
../lib/RdFToI.c: In function `OpenReadFile':
../lib/RdFToI.c:147: error: `XpmOpenFailed' undeclared (first use in
this function)
../lib/RdFToI.c:201: error: `XpmSuccess' undeclared (first use in this
function)
In file included from cxpm.c:80:
../lib/hashtab.c: At top level:
../lib/hashtab.c:38: error: syntax error before "xpmHashAtom"
../lib/hashtab.c:39: error: syntax error before "int"
../lib/hashtab.c:108: error: conflicting types for 'xpmHashSlot'
../lib/parse.c:451: error: previous implicit declaration of
'xpmHashSlot' was here
../lib/hashtab.c: In function `HashTableGrows':
../lib/hashtab.c:149: error: `XpmNoMemory' undeclared (first use in
this function)
../lib/hashtab.c:160: error: `XpmSuccess' undeclared (first use in this
function)
../lib/hashtab.c: In function `xpmHashIntern':
../lib/hashtab.c:179: error: `XpmNoMemory' undeclared (first use in
this function)
../lib/hashtab.c:183: error: `XpmSuccess' undeclared (first use in this
function)
../lib/hashtab.c: In function `xpmHashTableInit':
../lib/hashtab.c:209: error: `XpmNoMemory' undeclared (first use in
this function)
../lib/hashtab.c:213: error: `XpmSuccess' undeclared (first use in this
function)
../lib/hashtab.c: At top level:
../lib/hashtab.c:222: error: conflicting types for 'xpmHashTableFree'
../lib/parse.c:662: error: previous implicit declaration of
'xpmHashTableFree' was here
In file included from cxpm.c:81:
../lib/misc.c:58: error: conflicting types for 'xpmatoui'
../lib/data.c:280: error: previous implicit declaration of 'xpmatoui'
was here
../lib/misc.c: In function `XpmGetErrorString':
../lib/misc.c:86: error: `XpmColorError' undeclared (first use in this
function)
../lib/misc.c:88: error: `XpmSuccess' undeclared (first use in this
function)
../lib/misc.c:90: error: `XpmOpenFailed' undeclared (first use in this
function)
../lib/misc.c:92: error: `XpmFileInvalid' undeclared (first use in this
function)
../lib/misc.c:94: error: `XpmNoMemory' undeclared (first use in this
function)
../lib/misc.c:96: error: `XpmColorFailed' undeclared (first use in this
function)
../lib/misc.c: In function `XpmLibraryVersion':
../lib/misc.c:110: error: `XpmIncludeVersion' undeclared (first use in
this function)
In file included from cxpm.c:82:
../lib/Attrib.c: At top level:
../lib/Attrib.c:38: error: syntax error before "int"
../lib/Attrib.c:41: error: syntax error before "void"
../lib/Attrib.c:48: error: syntax error before "XpmColor"
../lib/Attrib.c:48: warning: data definition has no type or storage
class
../lib/Attrib.c:50: error: syntax error before '*' token
../lib/Attrib.c:50: warning: data definition has no type or storage
class
../lib/Attrib.c:51: error: syntax error before '{' token
../lib/Attrib.c:55: error: `XpmColor' undeclared here (not in a
function)
../lib/Attrib.c:55: error: syntax error before ')' token
../lib/Attrib.c:62: error: conflicting types for 'oldct'
../lib/Attrib.c:50: error: previous declaration of 'oldct' was here
../lib/Attrib.c:62: warning: initialization makes pointer from integer
without a cast
../lib/Attrib.c:62: error: initializer element is not constant
../lib/Attrib.c:62: warning: data definition has no type or storage
class
../lib/Attrib.c:63: error: syntax error before "return"
../lib/Attrib.c:68: error: syntax error before "XpmColor"
../lib/Attrib.c:68: error: conflicting types for 'colorTable'
../lib/Attrib.c:55: error: previous definition of 'colorTable' was here
../lib/Attrib.c:68: warning: data definition has no type or storage
class
../lib/Attrib.c:70: error: syntax error before '{' token
../lib/Attrib.c:72: warning: data definition has no type or storage
class
../lib/Attrib.c:75: error: syntax error before "if"
../lib/Attrib.c:81: error: syntax error before '*' token
../lib/Attrib.c:81: error: conflicting types for 'XpmFree'
../lib/misc.c:122: error: previous definition of 'XpmFree' was here
../lib/Attrib.c:81: warning: data definition has no type or storage
class
../lib/Attrib.c:82: warning: parameter names (without types) in
function declaration
../lib/Attrib.c:82: warning: data definition has no type or storage
class
../lib/Attrib.c:83: error: syntax error before '}' token
../lib/Attrib.c:93: error: syntax error before "XpmColor"
../lib/Attrib.c:93: error: conflicting types for 'colorTable'
../lib/Attrib.c:68: error: previous declaration of 'colorTable' was
here
../lib/Attrib.c:93: error: conflicting types for 'colorTable'
../lib/Attrib.c:68: error: previous declaration of 'colorTable' was
here
../lib/Attrib.c:93: warning: data definition has no type or storage
class
../lib/Attrib.c:95: error: syntax error before '{' token
../lib/Attrib.c:97: error: conflicting types for 'color'
../lib/Attrib.c:72: error: previous declaration of 'color' was here
../lib/Attrib.c:97: warning: data definition has no type or storage
class
../lib/Attrib.c:100: error: syntax error before "if"
../lib/Attrib.c:106: warning: parameter names (without types) in
function declaration
../lib/Attrib.c:106: warning: data definition has no type or storage
class
../lib/Attrib.c:107: error: syntax error before '}' token
../lib/Attrib.c:115: error: syntax error before "XpmExtension"
../lib/Attrib.c:115: warning: data definition has no type or storage
class
../lib/Attrib.c:117: error: syntax error before '{' token
../lib/Attrib.c:119: warning: data definition has no type or storage
class
../lib/Attrib.c:122: error: syntax error before "if"
../lib/Attrib.c:126: error: request for member `nlines' in something
not a structure or union
../lib/Attrib.c:126: warning: data definition has no type or storage
class
../lib/Attrib.c:127: error: syntax error before "for"
../lib/Attrib.c:133: warning: parameter names (without types) in
function declaration
../lib/Attrib.c:133: warning: data definition has no type or storage
class
../lib/Attrib.c:134: error: syntax error before '}' token
../lib/Attrib.c: In function `XpmAttributesSize':
../lib/Attrib.c:144: error: `XpmAttributes' undeclared (first use in
this function)
../lib/Attrib.c: At top level:
../lib/Attrib.c:152: error: syntax error before "XpmAttributes"
../lib/Attrib.c:152: warning: data definition has no type or storage
class
../lib/Attrib.c:153: error: syntax error before '{' token
../lib/Attrib.c:180: error: syntax error before "XpmAttributes"
../lib/Attrib.c:180: warning: data definition has no type or storage
class
../lib/Attrib.c:181: error: syntax error before '*' token
../lib/Attrib.c:181: warning: data definition has no type or storage
class
../lib/Attrib.c:182: error: syntax error before '*' token
../lib/Attrib.c:182: warning: data definition has no type or storage
class
../lib/Attrib.c:183: error: syntax error before '{' token
../lib/Attrib.c:196: error: request for member `colorTable' in
something not a structure or union../lib/Attrib.c:196: error: request
for member `ncolors' in something not a structure or union
../lib/Attrib.c:197: error: syntax error before ')' token
../lib/Attrib.c:198: error: request for member `colorTable' in
something not a structure or union../lib/Attrib.c:198: error:
initializer element is not constant
../lib/Attrib.c:198: warning: data definition has no type or storage
class
../lib/Attrib.c:201: error: syntax error before "if"
../lib/Attrib.c:250: error: syntax error before "XpmAttributes"
../lib/Attrib.c:250: warning: data definition has no type or storage
class
../lib/Attrib.c:251: error: syntax error before '{' token
In file included from cxpm.c:83:
../lib/Image.c:42: error: syntax error before "XpmImage"
../lib/Image.c:42: warning: data definition has no type or storage
class
../lib/Image.c:43: error: syntax error before '{' token
../lib/Image.c:54: error: syntax error before "XpmImage"
../lib/Image.c:54: warning: data definition has no type or storage
class
../lib/Image.c:55: error: syntax error before '{' token
cxpm.c: In function `ErrorMessage':
cxpm.c:94: error: `XpmSuccess' undeclared (first use in this function)
cxpm.c:96: error: `XpmOpenFailed' undeclared (first use in this
function)
cxpm.c:99: error: `XpmFileInvalid' undeclared (first use in this
function)
cxpm.c:102: error: `XpmNoMemory' undeclared (first use in this
function)
cxpm.c:105: error: `XpmColorFailed' undeclared (first use in this
function)
cxpm.c: In function `main':
cxpm.c:124: error: `XpmImage' undeclared (first use in this function)
cxpm.c:124: error: syntax error before "image"
cxpm.c:141: error: `XpmSuccess' undeclared (first use in this function)
make[1]: *** [cxpm.o] Error 1
make[1]: Leaving directory `/usr/local/lib/xpm-3.4k/cxpm'
make: *** [all] Error 2
I do not have imake so I cannot go that way. I can try and figure out
how to configure imake, though that would probably be a whole other
undertaking. I know it said I might have to change either the main
makefile.noX or one of the makefile.noX's in the subdirectories, but I
am not sure how to change it. It just seems to list directories in
which files will be installed, as well as other stuff which I don't
think I want to mess with. I also searched for xpm.h on my system and
it doesn't seem to be located anywhere. I read elsewhere on the
Internet about installing some kind of development packages, but I
can't seem to find which ones. I installed xorg-x11-sdk though I am
not sure whether that is relevant.
First, what distro are you using and can you install GD from that distro's repositories?
This is from the GD manual
Quote:
If you want to use the Xpm color bitmap loading support, you must also have the X Window System and the Xpm library installed (Xpm is often included in modern X distributions). Most of the time you won't need Xpm.
This indicates to me that there is a switch that can be passed to the configure script to NOT build the xpm stuff in GD. If you don't need it, don't build it and the problem is solved(?).
Assuming that you do want the xpm stuff, you would need to install the development stuff for X Windows provided by your distro. This would be called something like xorg-dev or xorg-devel. The package you installed, xorg-x11-sdk, is for building external drivers and does not, AFAIK, provide the headers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.