[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Xorg 7.6: Problems getting libXfont to compile
From:       Christoph Thompson <cjsthompson () gmail ! com>
Date:       2010-12-26 2:37:11
Message-ID: AANLkTi=qbMVHqSLD6CkoKesPBymFarr_Zrk5pTBxcSFy () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I'm trying currently trying to build Xorg packages which bundle all
components together. In order for that to work, each package must find it's
dependencies from the package build root and not from already installed
components. Mostly it all revolves around setting a bunch of environment
variables so that the components know where to find their dependencies. And
it's working pretty well so far I must say. Except for one missbehaving
package, namely libXfont. I'm at a loss on how to properly fix the following
problem :

---

  make[3]: Entering directory `/var/tmp/build-JUCWCT/libXfont-1.4.3/src/fc'
  \
  # source='fserve.c' object='fserve.lo' libtool=yes
  /bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../.. -I../../include/X11/fonts -I../../include
-I/var/tmp/build-JUCWCT/package-root/usr/include -D_XOPEN_SOURCE  -Wall
-Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing
-Wbad-function-cast -Wformat=2 -Wold-style-definition -
 Wdeclaration-after-statement  -O2 -fno-strength-reduce -fomit-frame-pointer
-ffast-math -c -o fserve.lo fserve.c
  libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../..
-I../../include/X11/fonts -I../../include
-I/var/tmp/build-JUCWCT/package-root/usr/include -D_XOPEN_SOURCE -Wall
-Wpointer-arith -Wstrict-  prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing
-Wbad-function-cast -Wformat=2 -Wold-style-definition
-Wdeclaration-after-statement -O2 -fno-    strength-reduce
-fomit-frame-pointer -ffast-math -c fserve.c  -fPIC -DPIC -o .libs/fserve.o
  fserve.c: In function 'fs_block_handler':
  fserve.c:1210: error: 'fd_mask' undeclared (first use in this function)
  fserve.c:1210: error: (Each undeclared identifier is reported only once
  fserve.c:1210: error: for each function it appears in.)
  make[3]: *** [fserve.lo] Error 1
  make[3]: Leaving directory `/var/tmp/build-JUCWCT/libXfont-1.4.3/src/fc'
  make[2]: *** [all-recursive] Error 1
  make[2]: Leaving directory `/var/tmp/build-JUCWCT/libXfont-1.4.3/src'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `/var/tmp/build-JUCWCT/libXfont-1.4.3'
  make: *** [all] Error 2

---

At first, I tried adding <sys/select.h> to fc/fserve.c but that didn't work.
But then I found out that by commenting out Xpoll.h in fc/fserve.c the
compilation would work despite some warnings :

  fserve.c: In function 'fs_block_handler':
  fserve.c:1210: warning: implicit declaration of function 'XFD_ORSET'
  fserve.c:1210: warning: nested extern declaration of 'XFD_ORSET'

So I thought that might be just good enough to get it to work properly but
then when I later tried to build 'bdftopcf' I got the following 'undefined
references' at link time :

gcc -std=gnu99 -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs
-fno-strict-aliasing -Wbad-function-cast -Wformat=2 -Wold-style-definition
-Wdeclaration-after-statement  -I/usr/include/freetype2   -O2
-fno-strength-reduce -fomit-frame-pointer -ffast-math   -o bdftopcf
bdftopcf.o -lXfont
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../lib64/libXfont.so:
undefined reference to `FontEncIdentify'
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../lib64/libXfont.so:
undefined reference to `XFD_ORSET'
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../lib64/libXfont.so:
undefined reference to `FontEncFind'
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../lib64/libXfont.so:
undefined reference to `FontEncName'
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../lib64/libXfont.so:
undefined reference to `FontEncRecode'
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../lib64/libXfont.so:
undefined reference to `FontEncFromXLFD'
collect2: ld returned 1 exit status
make[1]: *** [bdftopcf] Error 1
make[1]: Leaving directory `/var/tmp/build-DDh1jO/bdftopcf-1.0.3'
make: *** [all] Error 2

When I build libXfont against components that are already installed on the
system everything works.

I'd really appreciate it if someone could give me some clues on how to fix
this.

Thanks,

[Attachment #5 (text/html)]

Hi,<div><br></div><div>I&#39;m trying currently trying to build Xorg packages which \
bundle all components together. In order for that to work, each package must find \
it&#39;s dependencies from the package build root and not from already installed \
components. Mostly it all revolves around setting a bunch of environment variables so \
that the components know where to find their dependencies. And it&#39;s working \
pretty well so far I must say. Except for one missbehaving package, namely libXfont. \
I&#39;m at a loss on how to properly fix the following problem :</div> \
<div><div><br></div><div>---</div><div><br></div><div>  make[3]: Entering directory \
`/var/tmp/build-JUCWCT/libXfont-1.4.3/src/fc&#39;</div><div>  \</div><div>  #<span \
class="Apple-tab-span" style="white-space:pre">	</span>source=&#39;fserve.c&#39; \
object=&#39;fserve.lo&#39; libtool=yes </div> <div>  /bin/sh ../../libtool  --tag=CC  \
--mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include/X11/fonts \
-I../../include   -I/var/tmp/build-JUCWCT/package-root/usr/include -D_XOPEN_SOURCE  \
-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
-Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wformat=2 \
-Wold-style-definition -  Wdeclaration-after-statement  -O2 -fno-strength-reduce \
-fomit-frame-pointer -ffast-math -c -o fserve.lo fserve.c</div> <div>  libtool: \
compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include/X11/fonts -I../../include \
-I/var/tmp/build-JUCWCT/package-root/usr/include -D_XOPEN_SOURCE -Wall \
-Wpointer-arith -Wstrict-  prototypes -Wmissing-prototypes -Wmissing-declarations \
-Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wformat=2 \
-Wold-style-definition -Wdeclaration-after-statement -O2 -fno-    strength-reduce \
-fomit-frame-pointer -ffast-math -c fserve.c  -fPIC -DPIC -o .libs/fserve.o</div> \
<div>  fserve.c: In function &#39;fs_block_handler&#39;:</div><div>  fserve.c:1210: \
error: &#39;fd_mask&#39; undeclared (first use in this function)</div><div>  \
fserve.c:1210: error: (Each undeclared identifier is reported only once</div> <div>  \
fserve.c:1210: error: for each function it appears in.)</div><div>  make[3]: *** \
[fserve.lo] Error 1</div><div>  make[3]: Leaving directory \
`/var/tmp/build-JUCWCT/libXfont-1.4.3/src/fc&#39;</div><div>  make[2]: *** \
[all-recursive] Error 1</div> <div>  make[2]: Leaving directory \
`/var/tmp/build-JUCWCT/libXfont-1.4.3/src&#39;</div><div>  make[1]: *** \
[all-recursive] Error 1</div><div>  make[1]: Leaving directory \
`/var/tmp/build-JUCWCT/libXfont-1.4.3&#39;</div><div>  make: *** [all] Error \
2</div></div><div><br></div><div>---</div><div><br></div><div>At first, I tried \
adding &lt;sys/select.h&gt; to fc/fserve.c but that didn&#39;t work. But then I found \
out that by commenting out Xpoll.h in fc/fserve.c the compilation would work despite \
some warnings :</div> <div><br></div><div><div>  fserve.c: In function \
&#39;fs_block_handler&#39;:</div><div>  fserve.c:1210: warning: implicit declaration \
of function &#39;XFD_ORSET&#39;</div><div>  fserve.c:1210: warning: nested extern \
declaration of &#39;XFD_ORSET&#39;</div> </div><div><br></div><div>So I thought that \
might be just good enough to get it to work properly but then when I later tried to \
build &#39;bdftopcf&#39; I got the following &#39;undefined references&#39; at link \
time :</div> <div><br></div><div>gcc -std=gnu99 -Wall -Wpointer-arith \
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
-fno-strict-aliasing -Wbad-function-cast -Wformat=2 -Wold-style-definition \
-Wdeclaration-after-statement  -I/usr/include/freetype2   -O2 -fno-strength-reduce \
-fomit-frame-pointer -ffast-math   -o bdftopcf bdftopcf.o -lXfont   </div> \
<div><div>/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../lib64/libXfont.so: \
undefined reference to \
`FontEncIdentify&#39;</div><div>/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../lib64/libXfont.so: \
undefined reference to `XFD_ORSET&#39;</div> \
<div>/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../lib64/libXfont.so: \
undefined reference to \
`FontEncFind&#39;</div><div>/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../lib64/libXfont.so: \
undefined reference to `FontEncName&#39;</div> \
<div>/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../lib64/libXfont.so: \
undefined reference to \
`FontEncRecode&#39;</div><div>/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../lib64/libXfont.so: \
undefined reference to `FontEncFromXLFD&#39;</div> <div>collect2: ld returned 1 exit \
status</div><div>make[1]: *** [bdftopcf] Error 1</div><div>make[1]: Leaving directory \
`/var/tmp/build-DDh1jO/bdftopcf-1.0.3&#39;</div><div>make: *** [all] Error \
2</div></div><div><br></div> <div>When I build libXfont against components that are \
already installed on the system everything works.</div><div><br></div><div>I&#39;d \
really appreciate it if someone could give me some clues on how to fix \
this.</div><div> <br></div><div>Thanks,</div>



_______________________________________________
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: freedesktop-xorg@progressive-comp.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic