Building GD in YDL

Everett Littles eslittles at ucdavis.edu
Fri Feb 4 08:51:16 MST 2005


I am trying to build GD in YDL 4 and running into roadblocks.  Does 
anyone have a list of instructions on how to build this on YDL apart 
from the standard readmes?

When I run the ./configure for GD, I get the following:

** Configuration summary for gd 2.0.33:

    Support for PNG library:          yes
    Support for JPEG library:         no
    Support for Freetype 2.x library: yes
    Support for Fontconfig library:   no
    Support for Xpm library:          no
    Support for pthreads:             yes

So when I try to build the JPEG library, I get the following when 
running make install:
/usr/bin/install -c cjpeg /usr/local/bin/cjpeg
/usr/bin/install -c djpeg /usr/local/bin/djpeg
/usr/bin/install -c jpegtran /usr/local/bin/jpegtran
/usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom
/usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom
/usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1
/usr/bin/install: cannot create regular file 
`/usr/local/man/man1/cjpeg.1': No such file or directory

I can't seem to get past this.

So I moved on to Xpm .  I ran a make on the Makefile.noX and it is much 
worse.  The following appears;

making all in ./lib...
make[1]: Entering directory `/root/src/xpm-3.4k/lib'
cc -O     -c -o data.o data.c
In file included from XpmI.h:45,
                  from data.c:42:
xpm.h:76:24: X11/Xlib.h: No such file or directory
xpm.h:77:25: X11/Xutil.h: No such file or directory
In file included from XpmI.h:45,
                  from data.c:42:
xpm.h:153: error: syntax error before '*' token
xpm.h:163: error: syntax error before '*' token
xpm.h:175: error: syntax error before "Visual"
xpm.h:175: warning: no semicolon at end of struct or union
xpm.h:176: warning: data definition has no type or storage class
xpm.h:207: error: syntax error before "exactColors"
xpm.h:207: warning: data definition has no type or storage class
xpm.h:219: error: syntax error before "alloc_close_colors"
xpm.h:219: warning: data definition has no type or storage class
xpm.h:231: error: syntax error before '}' token
xpm.h:231: warning: data definition has no type or storage class
xpm.h:313: error: syntax error before '*' token
xpm.h:320: error: syntax error before '*' token
xpm.h:326: error: syntax error before '*' token
xpm.h:333: error: syntax error before '*' token
xpm.h:340: error: syntax error before '*' token
xpm.h:346: error: syntax error before '*' token
xpm.h:352: error: syntax error before '*' token
xpm.h:358: error: syntax error before '*' token
xpm.h:364: error: syntax error before '*' token
xpm.h:370: error: syntax error before '*' token
xpm.h:377: error: syntax error before '*' token
xpm.h:383: error: syntax error before '*' token
xpm.h:396: error: syntax error before '*' token
xpm.h:414: error: syntax error before '*' token
xpm.h:421: error: syntax error before '*' token
xpm.h:427: error: syntax error before '*' token
xpm.h:433: error: syntax error before '*' token
In file included from data.c:42:
XpmI.h:181: error: syntax error before '*' token
XpmI.h:189: error: syntax error before '*' token
XpmI.h:195: error: syntax error before "XpmAttributes"
XpmI.h:196: error: syntax error before "XpmAttributes"
XpmI.h:197: error: syntax error before '*' token
XpmI.h:201: error: syntax error before '*' token
XpmI.h:204: error: syntax error before '*' token
XpmI.h:271: error: syntax error before '*' token
XpmI.h:273: error: syntax error before '*' token
make[1]: *** [data.o] Error 1
make[1]: Leaving directory `/root/src/xpm-3.4k/lib'
making all in ./sxpm...
make[1]: Entering directory `/root/src/xpm-3.4k/sxpm'
cc -O -I..    -c -o sxpm.o sxpm.c
sxpm.c:36:28: X11/StringDefs.h: No such file or directory
sxpm.c:37:27: X11/Intrinsic.h: No such file or directory
sxpm.c:38:28: X11/IntrinsicP.h: No such file or directory
sxpm.c:39:23: X11/Shell.h: No such file or directory
sxpm.c:44:34: X11/extensions/shape.h: No such file or directory
In file included from sxpm.c:47:
../X11/xpm.h:76:24: X11/Xlib.h: No such file or directory
../X11/xpm.h:77:25: X11/Xutil.h: No such file or directory
In file included from sxpm.c:47:
../X11/xpm.h:153: error: syntax error before '*' token
../X11/xpm.h:163: error: syntax error before '*' token
../X11/xpm.h:175: error: syntax error before "Visual"
../X11/xpm.h:175: warning: no semicolon at end of struct or union
../X11/xpm.h:176: warning: data definition has no type or storage class
../X11/xpm.h:207: error: syntax error before "exactColors"
../X11/xpm.h:207: warning: data definition has no type or storage class
../X11/xpm.h:219: error: syntax error before "alloc_close_colors"
../X11/xpm.h:219: warning: data definition has no type or storage class
../X11/xpm.h:231: error: syntax error before '}' token
../X11/xpm.h:231: warning: data definition has no type or storage class
../X11/xpm.h:313: error: syntax error before '*' token
../X11/xpm.h:320: error: syntax error before '*' token
../X11/xpm.h:326: error: syntax error before '*' token
../X11/xpm.h:333: error: syntax error before '*' token
../X11/xpm.h:340: error: syntax error before '*' token
../X11/xpm.h:346: error: syntax error before '*' token
../X11/xpm.h:352: error: syntax error before '*' token
../X11/xpm.h:358: error: syntax error before '*' token
../X11/xpm.h:364: error: syntax error before '*' token
../X11/xpm.h:370: error: syntax error before '*' token
../X11/xpm.h:377: error: syntax error before '*' token
../X11/xpm.h:383: error: syntax error before '*' token
../X11/xpm.h:396: error: syntax error before '*' token
../X11/xpm.h:414: error: syntax error before '*' token
../X11/xpm.h:421: error: syntax error before '*' token
../X11/xpm.h:427: error: syntax error before '*' token
../X11/xpm.h:433: error: syntax error before '*' token
sxpm.c:99: error: syntax error before "colormap"
sxpm.c:99: warning: data definition has no type or storage class
sxpm.c:107: error: syntax error before "widget"
sxpm.c:116: error: syntax error before "Pixmap"
sxpm.c:116: warning: no semicolon at end of struct or union
sxpm.c:117: warning: data definition has no type or storage class
sxpm.c:118: error: syntax error before "attributes"
sxpm.c:118: warning: data definition has no type or storage class
sxpm.c:119: warning: data definition has no type or storage class
sxpm.c:122: error: syntax error before "topw"
sxpm.c:122: warning: data definition has no type or storage class
sxpm.c:123: error: syntax error before "view"
sxpm.c:123: warning: data definition has no type or storage class
sxpm.c:124: error: syntax error before "options"
sxpm.c:125: warning: braces around scalar initializer
sxpm.c:125: warning: (near initialization for `options[0]')
sxpm.c:125: warning: initialization makes integer from pointer without 
a cast
sxpm.c:125: warning: excess elements in scalar initializer
sxpm.c:125: warning: (near initialization for `options[0]')
sxpm.c:125: error: `XrmoptionNoArg' undeclared here (not in a function)
sxpm.c:125: warning: excess elements in scalar initializer
sxpm.c:125: warning: (near initialization for `options[0]')
sxpm.c:125: error: `XtPointer' undeclared here (not in a function)
sxpm.c:125: warning: excess elements in scalar initializer
sxpm.c:125: warning: (near initialization for `options[0]')
sxpm.c:125: error: syntax error before string constant
sxpm.c:126: warning: braces around scalar initializer
sxpm.c:126: warning: (near initialization for `options[1]')
sxpm.c:126: warning: initialization makes integer from pointer without 
a cast
sxpm.c:126: warning: excess elements in scalar initializer
sxpm.c:126: warning: (near initialization for `options[1]')
sxpm.c:126: error: `XrmoptionSepArg' undeclared here (not in a function)
sxpm.c:126: warning: excess elements in scalar initializer
sxpm.c:126: warning: (near initialization for `options[1]')
sxpm.c:126: error: `XtPointer' undeclared here (not in a function)
sxpm.c:126: warning: excess elements in scalar initializer
sxpm.c:126: warning: (near initialization for `options[1]')
sxpm.c:127: warning: data definition has no type or storage class
sxpm.c: In function `main':
sxpm.c:149: error: `XrmValue' undeclared (first use in this function)
sxpm.c:149: error: (Each undeclared identifier is reported only once
sxpm.c:149: error: for each function it appears in.)
sxpm.c:149: error: syntax error before "val"
sxpm.c:152: error: `Arg' undeclared (first use in this function)
sxpm.c:152: error: syntax error before "args"
sxpm.c:172: error: `val' undeclared (first use in this function)
sxpm.c:185: error: `WidthValue' undeclared (first use in this function)
sxpm.c:185: error: `HeightValue' undeclared (first use in this function)
sxpm.c:195: error: `args' undeclared (first use in this function)
sxpm.c:195: error: `XtNwidth' undeclared (first use in this function)
sxpm.c:197: error: `XtNheight' undeclared (first use in this function)
sxpm.c:200: error: `XtNmappedWhenManaged' undeclared (first use in this 
function)
sxpm.c:200: error: `False' undeclared (first use in this function)
sxpm.c:202: error: `XtNinput' undeclared (first use in this function)
sxpm.c:202: error: `True' undeclared (first use in this function)
sxpm.c:224: error: `XColor' undeclared (first use in this function)
sxpm.c:224: error: syntax error before "color"
sxpm.c:226: error: `Window' undeclared (first use in this function)
sxpm.c:226: error: syntax error before "iconW"
sxpm.c:228: error: `color' undeclared (first use in this function)
sxpm.c:228: error: `junk' undeclared (first use in this function)
sxpm.c:233: error: `iconW' undeclared (first use in this function)
sxpm.c:236: error: request for member `attributes' in something not a 
structure or union
sxpm.c:237: error: request for member `pixmap' in something not a 
structure or union
sxpm.c:238: error: request for member `mask' in something not a 
structure or union
sxpm.c:238: error: request for member `attributes' in something not a 
structure or union
sxpm.c:241: error: request for member `pixmap' in something not a 
structure or union
sxpm.c:244: error: `XtNbackground' undeclared (first use in this 
function)
sxpm.c:246: error: `XtNiconWindow' undeclared (first use in this 
function)
sxpm.c:317: error: request for member `attributes' in something not a 
structure or union
sxpm.c:322: error: request for member `attributes' in something not a 
structure or union
sxpm.c:327: error: request for member `attributes' in something not a 
structure or union
sxpm.c:332: error: request for member `attributes' in something not a 
structure or union
sxpm.c:337: error: request for member `attributes' in something not a 
structure or union
sxpm.c:343: error: request for member `attributes' in something not a 
structure or union
sxpm.c:368: error: `AllocNone' undeclared (first use in this function)
sxpm.c:369: error: request for member `attributes' in something not a 
structure or union
sxpm.c:372: error: request for member `attributes' in something not a 
structure or union
sxpm.c:373: error: request for member `attributes' in something not a 
structure or union
sxpm.c:374: error: request for member `attributes' in something not a 
structure or union
sxpm.c:413: error: request for member `attributes' in something not a 
structure or union
sxpm.c:414: error: request for member `attributes' in something not a 
structure or union
sxpm.c:415: error: request for member `attributes' in something not a 
structure or union
sxpm.c:461: error: request for member `pixmap' in something not a 
structure or union
sxpm.c:461: error: request for member `mask' in something not a 
structure or union
sxpm.c:462: error: request for member `attributes' in something not a 
structure or union
sxpm.c:464: error: request for member `attributes' in something not a 
structure or union
sxpm.c:467: error: request for member `attributes' in something not a 
structure or union
sxpm.c:469: error: request for member `attributes' in something not a 
structure or union
sxpm.c:470: error: request for member `attributes' in something not a 
structure or union
sxpm.c:472: error: request for member `attributes' in something not a 
structure or union
sxpm.c:483: error: request for member `pixmap' in something not a 
structure or union
sxpm.c:483: error: request for member `mask' in something not a 
structure or union
sxpm.c:484: error: request for member `attributes' in something not a 
structure or union
sxpm.c:489: error: request for member `pixmap' in something not a 
structure or union
sxpm.c:490: error: request for member `mask' in something not a 
structure or union
sxpm.c:490: error: request for member `attributes' in something not a 
structure or union
sxpm.c:499: error: `XSizeHints' undeclared (first use in this function)
sxpm.c:499: error: syntax error before "size_hints"
sxpm.c:503: error: request for member `attributes' in something not a 
structure or union
sxpm.c:504: error: request for member `attributes' in something not a 
structure or union
sxpm.c:509: error: request for member `attributes' in something not a 
structure or union
sxpm.c:509: error: request for member `attributes' in something not a 
structure or union
sxpm.c:512: error: `size_hints' undeclared (first use in this function)
sxpm.c:512: error: `USSize' undeclared (first use in this function)
sxpm.c:512: error: `PMinSize' undeclared (first use in this function)
sxpm.c:512: error: `PResizeInc' undeclared (first use in this function)
sxpm.c:513: error: request for member `attributes' in something not a 
structure or union
sxpm.c:514: error: request for member `attributes' in something not a 
structure or union
sxpm.c:515: error: request for member `attributes' in something not a 
structure or union
sxpm.c:516: error: request for member `attributes' in something not a 
structure or union
sxpm.c:520: error: request for member `attributes' in something not a 
structure or union
sxpm.c:521: error: request for member `attributes' in something not a 
structure or union
sxpm.c:537: error: `KeyPressMask' undeclared (first use in this 
function)
sxpm.c:538: error: `XtEventHandler' undeclared (first use in this 
function)
sxpm.c:538: error: syntax error before "kinput"
sxpm.c:539: error: request for member `pixmap' in something not a 
structure or union
sxpm.c:541: error: request for member `mask' in something not a 
structure or union
sxpm.c:542: error: `ShapeBounding' undeclared (first use in this 
function)
sxpm.c:543: error: request for member `mask' in something not a 
structure or union
sxpm.c:543: error: `ShapeSet' undeclared (first use in this function)
sxpm.c: In function `Punt':
sxpm.c:631: error: request for member `pixmap' in something not a 
structure or union
sxpm.c:632: error: request for member `pixmap' in something not a 
structure or union
sxpm.c:633: error: request for member `mask' in something not a 
structure or union
sxpm.c:634: error: request for member `mask' in something not a 
structure or union
sxpm.c:637: error: request for member `attributes' in something not a 
structure or union
sxpm.c:638: error: request for member `attributes' in something not a 
structure or union
sxpm.c:640: error: request for member `attributes' in something not a 
structure or union
sxpm.c:642: error: request for member `pixmap' in something not a 
structure or union
sxpm.c:643: error: request for member `pixmap' in something not a 
structure or union
sxpm.c:644: error: request for member `mask' in something not a 
structure or union
sxpm.c:645: error: request for member `mask' in something not a 
structure or union
sxpm.c:648: error: request for member `attributes' in something not a 
structure or union
sxpm.c:649: error: request for member `attributes' in something not a 
structure or union
sxpm.c:651: error: request for member `attributes' in something not a 
structure or union
sxpm.c: At top level:
sxpm.c:658: error: syntax error before "Widget"
sxpm.c:658: warning: data definition has no type or storage class
sxpm.c:660: error: syntax error before '*' token
sxpm.c:660: warning: data definition has no type or storage class
sxpm.c:661: error: syntax error before '*' token
sxpm.c:661: warning: data definition has no type or storage class
sxpm.c:662: error: syntax error before '{' token
sxpm.c:665: error: syntax error before '&' token
make[1]: *** [sxpm.o] Error 1
make[1]: Leaving directory `/root/src/xpm-3.4k/sxpm'
making all in ./cxpm...
make[1]: Entering directory `/root/src/xpm-3.4k/cxpm'
cc -O -I..    -c -o cxpm.o cxpm.c
In file included from ../lib/XpmI.h:45,
                  from cxpm.c:36:
../lib/xpm.h:76:24: X11/Xlib.h: No such file or directory
../lib/xpm.h:77:25: X11/Xutil.h: No such file or directory
In file included from ../lib/XpmI.h:45,
                  from cxpm.c:36:
../lib/xpm.h:153: error: syntax error before '*' token
../lib/xpm.h:163: error: syntax error before '*' token
../lib/xpm.h:175: error: syntax error before "Visual"
../lib/xpm.h:175: warning: no semicolon at end of struct or union
../lib/xpm.h:176: warning: data definition has no type or storage class
../lib/xpm.h:207: error: syntax error before "exactColors"
../lib/xpm.h:207: warning: data definition has no type or storage class
../lib/xpm.h:219: error: syntax error before "alloc_close_colors"
../lib/xpm.h:219: warning: data definition has no type or storage class
../lib/xpm.h:231: error: syntax error before '}' token
../lib/xpm.h:231: warning: data definition has no type or storage class
../lib/xpm.h:313: error: syntax error before '*' token
../lib/xpm.h:320: error: syntax error before '*' token
../lib/xpm.h:326: error: syntax error before '*' token
../lib/xpm.h:333: error: syntax error before '*' token
../lib/xpm.h:340: error: syntax error before '*' token
../lib/xpm.h:346: error: syntax error before '*' token
../lib/xpm.h:352: error: syntax error before '*' token
../lib/xpm.h:358: error: syntax error before '*' token
../lib/xpm.h:364: error: syntax error before '*' token
../lib/xpm.h:370: error: syntax error before '*' token
../lib/xpm.h:377: error: syntax error before '*' token
../lib/xpm.h:383: error: syntax error before '*' token
../lib/xpm.h:396: error: syntax error before '*' token
../lib/xpm.h:414: error: syntax error before '*' token
../lib/xpm.h:421: error: syntax error before '*' token
../lib/xpm.h:427: error: syntax error before '*' token
../lib/xpm.h:433: error: syntax error before '*' token
In file included from cxpm.c:36:
../lib/XpmI.h:181: error: syntax error before '*' token
../lib/XpmI.h:189: error: syntax error before '*' token
../lib/XpmI.h:195: error: syntax error before "XpmAttributes"
../lib/XpmI.h:196: error: syntax error before "XpmAttributes"
../lib/XpmI.h:197: error: syntax error before '*' token
../lib/XpmI.h:201: error: syntax error before '*' token
../lib/XpmI.h:204: error: syntax error before '*' token
../lib/XpmI.h:271: error: syntax error before '*' token
../lib/XpmI.h:273: error: syntax error before '*' token
In file included from cxpm.c:78:
../lib/parse.c: In function `xpmParseValues':
../lib/parse.c:100: error: `Bool' undeclared (first use in this 
function)
../lib/parse.c:100: error: (Each undeclared identifier is reported only 
once
../lib/parse.c:100: error: for each function it appears in.)
../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)
In file included from cxpm.c:82:
../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:183: 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
make[1]: *** [cxpm.o] Error 1
make[1]: Leaving directory `/root/src/xpm-3.4k/cxpm'
make: *** [all] Error 2

Has anyone run into either of these?

Thanks,



More information about the yellowdog-newbie mailing list