No subject


Thu Nov 22 16:31:42 UTC 2012


// These are internal fltk symbols that are necessary or useful for
// calling Xlib.  You should include this file if (and ONLY if) you
// need to call Xlib directly.  These symbols may not exist on non-X
// systems.

There are macros further on that use XCreatePixmap in their definition:

#   define fl_create_offscreen(w,h) \
  XCreatePixmap(fl_display, \
              (Fl_Surface_Device::surface()->class_name() ==
Fl_Display_Device::class_id ? \
              fl_window : fl_xid(Fl::first_window()) ) , \
              w, h, fl_visual->depth)

So I'd say that fltk apps that use this header really do need to specify
-lX11 in their own LDFLAGS as they will need these symbols directly.

So it's an flrig bug.

It's easy to work around:

$ LDFLAGS="-lX11" ./configure && make
[...]
$ ldd src/flrig
	linux-vdso.so.1 =>  (0x00007fffccb82000)
	libX11.so.6 => /lib64/libX11.so.6 (0x0000003c77600000)
[...]

I couldn't see where to report bugs on w1hkj.com...

Regards,
Bryn.

So why does this bug not show itself on Suse, and any of the Debian based builds?

vk4tux

--=-Nq6aH3fTRlrxGUtw2jDM
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.1">
</HEAD>
<BODY>
<BR>
<BR>
-----Original Message-----<BR>
<B>From</B>: Bryn M. Reeves &lt;<A HREF="mailto:%22Bryn%20M.%20Reeves%22%20%3cbmr at redhat.com%3e">bmr at redhat.com</A>&gt;<BR>
<B>Reply-to</B>: Development discussions related to Fedora &lt;devel at lists.fedoraproject.org&gt;<BR>
<B>To</B>: Development discussions related to Fedora &lt;<A HREF="mailto:Development%20discussions%20related%20to%20Fedora%20%3cdevel at lists.fedoraproject.org%3e">devel at lists.fedoraproject.org</A>&gt;<BR>
<B>Cc</B>: Miloslav Trma&#269; &lt;<A HREF="mailto:Miloslav%20%3d%3fUTF-8%3fQ%3fTrma%3dC4%3d8D%3f%3d%20%3cmitr at volny.cz%3e">mitr at volny.cz</A>&gt;<BR>
<B>Subject</B>: Re: fltk<BR>
<B>Date</B>: Wed, 19 Dec 2012 18:01:40 +0000<BR>
<BR>
<PRE>
On 19/12/12 17:30, Miloslav Trma&#269; wrote:
<FONT COLOR="#737373">&gt; On Wed, Dec 19, 2012 at 6:27 PM, Bryn M. Reeves &lt;<A HREF="mailto:bmr at redhat.com">bmr at redhat.com</A>&gt; wrote:</FONT>
<FONT COLOR="#737373">&gt;&gt; On Fedora the following command fails:</FONT>
<FONT COLOR="#737373">&gt;&gt;</FONT>
<FONT COLOR="#737373">&gt;&gt; g++ -I/usr/include/freetype2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE</FONT>
<FONT COLOR="#737373">&gt;&gt; -D_THREAD_SAFE -D_REENTRANT -pipe -Wall -fexceptions -O2 -ffast-math</FONT>
<FONT COLOR="#737373">&gt;&gt; -finline-functions -fomit-frame-pointer   -DNDEBUG -g -O2   -o flrig</FONT>
<FONT COLOR="#737373">&gt;&gt; [...] -Wl,-Bsymbolic-functions -lfltk_images -lfltk  -ldl  -lrt  -lpthread</FONT>
<FONT COLOR="#737373">&gt;&gt;</FONT>
<FONT COLOR="#737373">&gt;&gt; While on Ubuntu it works (run in a similarly prep'ed source tree);</FONT>
<FONT COLOR="#737373">&gt;&gt; something appears to be &quot;magically&quot; adding -lX11 during the link step on</FONT>
<FONT COLOR="#737373">&gt;&gt; Ubuntu</FONT>
<FONT COLOR="#737373">&gt; Probably <A HREF="http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking">http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking</A></FONT>
<FONT COLOR="#737373">&gt;    Mirek</FONT>
<FONT COLOR="#737373">&gt; </FONT>

So it seems to be down to the fact that flrig includes &lt;FL/x.H&gt;:

$ fgrep 'FL/x.H' rig.cxx
#include &lt;FL/x.H&gt;
#include &lt;FL/x.H&gt;



More information about the devel mailing list