[GRASS-dev] [GRASS GIS] #459: lib/cairodriver uses FontConfig but doesn't link against it

#459: lib/cairodriver uses FontConfig but doesn't link against it
---------------------+------------------------------------------------------
Reporter: glynn | Owner: glynn
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: | Platform: Unspecified
      Cpu: All |
---------------------+------------------------------------------------------
From grass-dev:

> gcc -shared -o /home/neteler/grass70/dist.x86_64-unknown-linux-
gnu/lib/libgrass_cairodriver.7.0.svn.so

> /home/neteler/grass70/dist.x86_64-unknown-linux-
gnu/lib/libgrass_cairodriver.so) OBJ.x86_64-unknown-linux-gnu/Text.o: In
function `fc_init':
> /home/neteler/grass70/lib/cairodriver/Text.c:180: undefined reference to
`!FcInit'

We need configure checks for !FontConfig.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/459&gt;
GRASS GIS <http://grass.osgeo.org>

#459: lib/cairodriver uses FontConfig but doesn't link against it
--------------------------+-------------------------------------------------
  Reporter: glynn | Owner: glynn
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Resolution: | Keywords:
  Platform: Unspecified | Cpu: All
--------------------------+-------------------------------------------------
Comment (by glynn):

Replying to [ticket:459 glynn]:

For now, I've added $(FCLIB) to EXTRA_LIBS in lib/cairodriver/Makefile.

I still need to add the configure checks etc to actually set this
variable.

AFAICT, it only matters if you use -Wl,--no-undefined; in that case you
can use e.g.
{{{
make FCLIB=-lfontconfig
}}}
until FCLIB gets defined.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/459#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#459: lib/cairodriver uses FontConfig but doesn't link against it
---------------------+------------------------------------------------------
Reporter: glynn | Owner: glynn
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: | Platform: Unspecified
      Cpu: All |
---------------------+------------------------------------------------------

Comment(by mlennert):

Is this still an issue ?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/459#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#459: lib/cairodriver uses FontConfig but doesn't link against it
---------------------+------------------------------------------------------
Reporter: glynn | Owner: glynn
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: | Platform: Unspecified
      Cpu: All |
---------------------+------------------------------------------------------

Comment(by glynn):

Replying to [comment:2 mlennert]:
> Is this still an issue ?
It may have been solved by r55040 (related to #1884).

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/459#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#459: lib/cairodriver uses FontConfig but doesn't link against it
--------------------------+-------------------------------------------------
  Reporter: glynn | Owner: glynn
      Type: defect | Status: closed
  Priority: major | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Resolution: fixed | Keywords:
  Platform: Unspecified | Cpu: All
--------------------------+-------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => fixed

Comment:

Replying to [comment:3 glynn]:
> Replying to [comment:2 mlennert]:
> > Is this still an issue ?
> It may have been solved by r55040 (related to #1884).

Appears to be solved, closing.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/459#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>