Compiling problem with xrender-0.8.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hallo.

Meanwhile I thought that the problem may be caused by gcc 2.95.2.1,
unfortunately, it was installed not with the GNU ld but with the SUN ld.
So when configuring I get a message :

*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
*** create self contained shared libraries on Solaris systems, without
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
*** -no-undefined support, which will at least allow you to build shared
*** libraries.  However, you may find that when you link such libraries
*** into an application without using GCC, you have to manually add
*** `gcc --print-libgcc-file-name` to the link command.  We urge you to
*** upgrade to a newer version of GCC.  Another option is to rebuild your
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.



I added '--print-libgcc-file-name' manually to the Makefile,
namely :
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) --print-libgcc-file-name
$(DEFS) $(DEFAULT_INCLUDES) \
	$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) --print-libgcc-file-name
$(AM_CFLAGS) $(CFLAGS) \
	$(AM_LDFLAGS) $(LDFLAGS) -o $@


This change let the error, mentioned in my previous mail, no more occur,
however, it lead (?) to other errors:
Output of make:

a0634@campfire$ $MAKE 2>&1 | tee LOG_make
/vol/gnu/bin/gmake  all-am
gmake[1]: Entering directory
`/afs/.rrz.uni-koeln.de/vol/src/sun4-s2/graphics/xrender-0.8.3'
source='Color.c' object='Color.lo' libtool=yes \
depfile='.deps/Color.Plo' tmpdepfile='.deps/Color.TPlo' \
depmode=gcc /bin/ksh ./depcomp \
/bin/ksh ./libtool --mode=compile /vol/gnu/bin/gcc295
--print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
   -I/vol/graphics/include   -I/usr/include/X11 -g -O2 -c -o Color.lo
`test -f 'Color.c' || echo './'`Color.c
mkdir .libs
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Color.c
-Wp,-MD,.deps/Color.TPlo  -fPIC -o .libs/Color.o
/vol/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2.1/libgcc.a
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Color.c
-Wp,-MD,.deps/Color.TPlo -o Color.o >/dev/null 2>&1
./depcomp[103]: .deps/Color.TPlo: cannot open
./depcomp[111]: .deps/Color.TPlo: cannot open
source='Composite.c' object='Composite.lo' libtool=yes \
depfile='.deps/Composite.Plo' tmpdepfile='.deps/Composite.TPlo' \
depmode=gcc /bin/ksh ./depcomp \
/bin/ksh ./libtool --mode=compile /vol/gnu/bin/gcc295
--print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
   -I/vol/graphics/include   -I/usr/include/X11 -g -O2 -c -o Composite.lo
`test -f 'Composite.c' || echo './'`Composite.c
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Composite.c
-Wp,-MD,.deps/Composite.TPlo  -fPIC -o .libs/Composite.o
/vol/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2.1/libgcc.a
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Composite.c
-Wp,-MD,.deps/Composite.TPlo -o Composite.o >/dev/null 2>&1
./depcomp[103]: .deps/Composite.TPlo: cannot open
./depcomp[111]: .deps/Composite.TPlo: cannot open
source='Cursor.c' object='Cursor.lo' libtool=yes \
depfile='.deps/Cursor.Plo' tmpdepfile='.deps/Cursor.TPlo' \
depmode=gcc /bin/ksh ./depcomp \
/bin/ksh ./libtool --mode=compile /vol/gnu/bin/gcc295
--print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
   -I/vol/graphics/include   -I/usr/include/X11 -g -O2 -c -o Cursor.lo
`test -f 'Cursor.c' || echo './'`Cursor.c
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Cursor.c
-Wp,-MD,.deps/Cursor.TPlo  -fPIC -o .libs/Cursor.o
/vol/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2.1/libgcc.a
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Cursor.c
-Wp,-MD,.deps/Cursor.TPlo -o Cursor.o >/dev/null 2>&1
./depcomp[103]: .deps/Cursor.TPlo: cannot open
./depcomp[111]: .deps/Cursor.TPlo: cannot open
source='FillRect.c' object='FillRect.lo' libtool=yes \
depfile='.deps/FillRect.Plo' tmpdepfile='.deps/FillRect.TPlo' \
depmode=gcc /bin/ksh ./depcomp \
/bin/ksh ./libtool --mode=compile /vol/gnu/bin/gcc295
--print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
   -I/vol/graphics/include   -I/usr/include/X11 -g -O2 -c -o FillRect.lo
`test -f 'FillRect.c' || echo './'`FillRect.c
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c FillRect.c
-Wp,-MD,.deps/FillRect.TPlo  -fPIC -o .libs/FillRect.o
/vol/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2.1/libgcc.a
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c FillRect.c
-Wp,-MD,.deps/FillRect.TPlo -o FillRect.o >/dev/null 2>&1
./depcomp[103]: .deps/FillRect.TPlo: cannot open
./depcomp[111]: .deps/FillRect.TPlo: cannot open
source='FillRects.c' object='FillRects.lo' libtool=yes \
depfile='.deps/FillRects.Plo' tmpdepfile='.deps/FillRects.TPlo' \
depmode=gcc /bin/ksh ./depcomp \
/bin/ksh ./libtool --mode=compile /vol/gnu/bin/gcc295
--print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
   -I/vol/graphics/include   -I/usr/include/X11 -g -O2 -c -o FillRects.lo
`test -f 'FillRects.c' || echo './'`FillRects.c
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c FillRects.c
-Wp,-MD,.deps/FillRects.TPlo  -fPIC -o .libs/FillRects.o
/vol/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2.1/libgcc.a
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c FillRects.c
-Wp,-MD,.deps/FillRects.TPlo -o FillRects.o >/dev/null 2>&1
./depcomp[103]: .deps/FillRects.TPlo: cannot open
./depcomp[111]: .deps/FillRects.TPlo: cannot open
source='Filter.c' object='Filter.lo' libtool=yes \
depfile='.deps/Filter.Plo' tmpdepfile='.deps/Filter.TPlo' \
depmode=gcc /bin/ksh ./depcomp \
/bin/ksh ./libtool --mode=compile /vol/gnu/bin/gcc295
--print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
   -I/vol/graphics/include   -I/usr/include/X11 -g -O2 -c -o Filter.lo
`test -f 'Filter.c' || echo './'`Filter.c
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Filter.c
-Wp,-MD,.deps/Filter.TPlo  -fPIC -o .libs/Filter.o
/vol/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2.1/libgcc.a
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Filter.c
-Wp,-MD,.deps/Filter.TPlo -o Filter.o >/dev/null 2>&1
./depcomp[103]: .deps/Filter.TPlo: cannot open
./depcomp[111]: .deps/Filter.TPlo: cannot open
source='Glyph.c' object='Glyph.lo' libtool=yes \
depfile='.deps/Glyph.Plo' tmpdepfile='.deps/Glyph.TPlo' \
depmode=gcc /bin/ksh ./depcomp \
/bin/ksh ./libtool --mode=compile /vol/gnu/bin/gcc295
--print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
   -I/vol/graphics/include   -I/usr/include/X11 -g -O2 -c -o Glyph.lo
`test -f 'Glyph.c' || echo './'`Glyph.c
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Glyph.c
-Wp,-MD,.deps/Glyph.TPlo  -fPIC -o .libs/Glyph.o
/vol/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2.1/libgcc.a
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Glyph.c
-Wp,-MD,.deps/Glyph.TPlo -o Glyph.o >/dev/null 2>&1
./depcomp[103]: .deps/Glyph.TPlo: cannot open
./depcomp[111]: .deps/Glyph.TPlo: cannot open
source='Picture.c' object='Picture.lo' libtool=yes \
depfile='.deps/Picture.Plo' tmpdepfile='.deps/Picture.TPlo' \
depmode=gcc /bin/ksh ./depcomp \
/bin/ksh ./libtool --mode=compile /vol/gnu/bin/gcc295
--print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
   -I/vol/graphics/include   -I/usr/include/X11 -g -O2 -c -o Picture.lo
`test -f 'Picture.c' || echo './'`Picture.c
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Picture.c
-Wp,-MD,.deps/Picture.TPlo  -fPIC -o .libs/Picture.o
/vol/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2.1/libgcc.a
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Picture.c
-Wp,-MD,.deps/Picture.TPlo -o Picture.o >/dev/null 2>&1
./depcomp[103]: .deps/Picture.TPlo: cannot open
./depcomp[111]: .deps/Picture.TPlo: cannot open
source='Poly.c' object='Poly.lo' libtool=yes \
depfile='.deps/Poly.Plo' tmpdepfile='.deps/Poly.TPlo' \
depmode=gcc /bin/ksh ./depcomp \
/bin/ksh ./libtool --mode=compile /vol/gnu/bin/gcc295
--print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
   -I/vol/graphics/include   -I/usr/include/X11 -g -O2 -c -o Poly.lo `test
-f 'Poly.c' || echo './'`Poly.c
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Poly.c
-Wp,-MD,.deps/Poly.TPlo  -fPIC -o .libs/Poly.o
/vol/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2.1/libgcc.a
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Poly.c
-Wp,-MD,.deps/Poly.TPlo -o Poly.o >/dev/null 2>&1
./depcomp[103]: .deps/Poly.TPlo: cannot open
./depcomp[111]: .deps/Poly.TPlo: cannot open
source='Trap.c' object='Trap.lo' libtool=yes \
depfile='.deps/Trap.Plo' tmpdepfile='.deps/Trap.TPlo' \
depmode=gcc /bin/ksh ./depcomp \
/bin/ksh ./libtool --mode=compile /vol/gnu/bin/gcc295
--print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
   -I/vol/graphics/include   -I/usr/include/X11 -g -O2 -c -o Trap.lo `test
-f 'Trap.c' || echo './'`Trap.c
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Trap.c
-Wp,-MD,.deps/Trap.TPlo  -fPIC -o .libs/Trap.o
/vol/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2.1/libgcc.a
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Trap.c
-Wp,-MD,.deps/Trap.TPlo -o Trap.o >/dev/null 2>&1
./depcomp[103]: .deps/Trap.TPlo: cannot open
./depcomp[111]: .deps/Trap.TPlo: cannot open
source='Tri.c' object='Tri.lo' libtool=yes \
depfile='.deps/Tri.Plo' tmpdepfile='.deps/Tri.TPlo' \
depmode=gcc /bin/ksh ./depcomp \
/bin/ksh ./libtool --mode=compile /vol/gnu/bin/gcc295
--print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
   -I/vol/graphics/include   -I/usr/include/X11 -g -O2 -c -o Tri.lo `test
-f 'Tri.c' || echo './'`Tri.c
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Tri.c
-Wp,-MD,.deps/Tri.TPlo  -fPIC -o .libs/Tri.o
/vol/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2.1/libgcc.a
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Tri.c
-Wp,-MD,.deps/Tri.TPlo -o Tri.o >/dev/null 2>&1
./depcomp[103]: .deps/Tri.TPlo: cannot open
./depcomp[111]: .deps/Tri.TPlo: cannot open
source='Xrender.c' object='Xrender.lo' libtool=yes \
depfile='.deps/Xrender.Plo' tmpdepfile='.deps/Xrender.TPlo' \
depmode=gcc /bin/ksh ./depcomp \
/bin/ksh ./libtool --mode=compile /vol/gnu/bin/gcc295
--print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
   -I/vol/graphics/include   -I/usr/include/X11 -g -O2 -c -o Xrender.lo
`test -f 'Xrender.c' || echo './'`Xrender.c
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Xrender.c
-Wp,-MD,.deps/Xrender.TPlo  -fPIC -o .libs/Xrender.o
/vol/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2.1/libgcc.a
 /vol/gnu/bin/gcc295 --print-libgcc-file-name -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -I/usr/include/X11 -g -O2 -c Xrender.c
-Wp,-MD,.deps/Xrender.TPlo -o Xrender.o >/dev/null 2>&1
./depcomp[103]: .deps/Xrender.TPlo: cannot open
./depcomp[111]: .deps/Xrender.TPlo: cannot open
/bin/ksh ./libtool --mode=link /vol/gnu/bin/gcc295
--print-libgcc-file-name -I/vol/graphics/include   -I/usr/include/X11 -g
-O2   -o libXrender.la -rpath /vol/graphics/lib -version-number 1:2:2
Color.lo Composite.lo Cursor.lo FillRect.lo FillRects.lo Filter.lo
Glyph.lo Picture.lo Poly.lo Trap.lo Tri.lo Xrender.lo -L/usr/lib
-R/usr/lib -lX11
creating reloadable object files...
creating a temporary reloadable object file: .libs/libXrender.la-12.o
/usr/ccs/bin/ld -r -o .libs/libXrender.la-1.o .libs/Color.o
ld: fatal: file .libs/Color.o: open failed: No such file or directory
gmake[1]: *** [libXrender.la] Error 1
gmake[1]: Leaving directory
`/afs/.rrz.uni-koeln.de/vol/src/sun4-s2/graphics/xrender-0.8.3'
gmake: *** [all] Error 2


What have I done here uncorrectly ?
Is it really only a matter of a newer X11R6 ? We' ve got here SunOS  5.6
Generic_105181-25 sun4u sparc SUNW,Ultra-Enterprise .

Thanks in advance.

Boris Skegin
Computer Center
University of Cologne
Germany




On Aug 23, 10:49, Alan Coopersmith wrote:
> Subject: Re: Compiling problem with xrender-0.8.3
> <X11/Xfuncproto.h> should #define _Xconst to either "const" or nothing
> depending on whether or not it detects an ANSI-C-compatible compiler.
>
> What SunOS version are you trying to build on?  If not a recent 5.x (aka
> Solaris), you may need to install a recent X11R6 first.
>
>          -Alan Coopersmith-         alan.coopersmith@xxxxxxx
>           Sun Microsystems, Inc.    -     Sun Software Group
>           User Experience Engineering: G11N: X Window System
>
> a0634@xxxxxxxxxxxx wrote:
> > Hallo,
> >
> > i have  aproblem when compiling xrender-0.8.3 on SunOS  with gcc295:
> >
> >
> > /vol/gnu/bin/gmake  all-am
> > gmake[1]: Entering directory `/afs/.rrz.uni-koeln.de/vol/src/sun4-
> > s2/graphics/xrender-0.8.3'
> > source='Color.c' object='Color.lo' libtool=yes \
> > depfile='.deps/Color.Plo' tmpdepfile='.deps/Color.TPlo' \
> > depmode=gcc /bin/ksh ./depcomp \
> > /bin/ksh ./libtool --mode=compile /vol/gnu/bin/gcc295 -DHAVE_CONFIG_H
-I. -I. -
> > I.    -I/vol/graphics/include    -g -O2 -c -o Color.lo `test -f
'Color.c' ||
> > echo './'`Color.c
> > mkdir .libs
> >  /vol/gnu/bin/gcc295 -DHAVE_CONFIG_H -I. -I. -I.
-I/vol/graphics/include -g -
> > O2 -c Color.c -Wp,-MD,.deps/Color.TPlo  -fPIC -o .libs/Color.o
> > In file included from Xrenderint.h:35,
> >                  from Color.c:25:
> > Xrender.h:101: parse error before `_Xconst'
> > Xrender.h:101: warning: no semicolon at end of struct or union
> > Xrender.h:105: parse error before `}'
> > Xrender.h:105: warning: data definition has no type or storage class
> > Xrender.h:109: parse error before `_Xconst'
> > Xrender.h:109: warning: no semicolon at end of struct or union
> > Xrender.h:113: parse error before `}'
> > Xrender.h:113: warning: data definition has no type or storage class
> > Xrender.h:117: parse error before `_Xconst'
> > Xrender.h:117: warning: no semicolon at end of struct or union
> > Xrender.h:121: parse error before `}'
> > Xrender.h:121: warning: data definition has no type or storage class
> > Xrender.h:187: parse error before `_Xconst'
> > Xrender.h:192: parse error before `_Xconst'
> > Xrender.h:208: parse error before `_Xconst'
> > Xrender.h:214: parse error before `_Xconst'
> > Xrender.h:222: parse error before `_Xconst'
> > Xrender.h:229: parse error before `_Xconst'
> > Xrender.h:262: parse error before `_Xconst'
> > Xrender.h:273: parse error before `_Xconst'
> > Xrender.h:282: parse error before `_Xconst'
> > Xrender.h:290: parse error before `_Xconst'
> > Xrender.h:304: parse error before `_Xconst'
> > Xrender.h:318: parse error before `_Xconst'
> > Xrender.h:332: parse error before `_Xconst'
> > Xrender.h:345: parse error before `_Xconst'
> > Xrender.h:358: parse error before `_Xconst'
> > Xrender.h:370: parse error before `_Xconst'
> > Xrender.h:380: parse error before `_Xconst'
> > Xrender.h:389: parse error before `_Xconst'
> > Xrender.h:400: parse error before `_Xconst'
> > Xrender.h:411: parse error before `_Xconst'
> > Xrender.h:422: parse error before `_Xconst'
> > Xrender.h:433: parse error before `_Xconst'
> > gmake[1]: *** [Color.lo] Error 1
> > gmake[1]: Leaving directory `/afs/.rrz.uni-koeln.de/vol/src/sun4-
> > s2/graphics/xrender-0.8.3'
> > gmake: *** [all] Error 2
> >
> >
> > So, what can be wrong with _Xconst ?
> >
> > Thanks in advance for your help.
> >
> > Boris
> >
> > _______________________________________________
> > Fontconfig mailing list
> > Fontconfig@xxxxxxxxxxxxxx
> > http://mail.fontconfig.org/mailman/listinfo/fontconfig
>
>
>
>
>-- End of excerpt from Alan Coopersmith




[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux