delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/06/23/08:37:16

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <20080623173202 DOT 2572 AT blackhawk> <004001c8d50d$0be88ca0$2708a8c0 AT CAM DOT ARTIMI DOT COM> <20080623212037 DOT 2088 AT blackhawk>
Subject: RE: pangp
Date: Mon, 23 Jun 2008 13:36:55 +0100
Message-ID: <006101c8d52d$d22761a0$2708a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <20080623212037.2088@blackhawk>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

d.henman wrote on 23 June 2008 13:21:

> Dave, thanks for your response.
> 
>  None of the symbols:
> `__pango_win32_font_get_type',      `__pango_win32_font_map_get_type',
> `__pango_win32_fontmap_cache_remove', and
> `__pango_win32_make_matching_logfontw' 
> 
>                  are not in: "libpangowin32-1.0.dll.a" 's symbol table, or
>                 are they in: "cygpangowin32-1.0-0.dll.def", or any other
>            .def file. but, they are in: "cygpangowin32-1.0-0.dll"  as "T"
> symbols. 

  So, they're in the DLL itself, but for some reason not marked as exports
in the DEF file, and hence no available stubs for them in the import .a
library.

  A simple workaround might be to build with --disable-shared
--enable-static instead.

> I wish I new more about the mechanics of this.  Maybe a simple export in
> the file they are defined in would suffice to cure the problem? 

  The DEF file is generated at this point in your make.out log:


generating symbol list for `libpangowin32-1.0.la'
/bin/nm -B  .libs/module-defs-win32.o .libs/pangowin32.o
.libs/pangowin32-fontcache.o .libs/pangowin32-fontmap.o  | sed -n -e 's/^.*[
]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ 	][
]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | /bin/sed -e '/^[BCDGRS][
]/s/.*[ ]\([^ ]*\)/\1 DATA/' -e '/^[AITW][ ]/s/.*[ ]//' | sort | uniq >
.libs/libpangowin32-1.0.exp
/bin/grep -E -e "^pango_.*" ".libs/libpangowin32-1.0.exp" >
".libs/libpangowin32-1.0.expT"
mv -f ".libs/libpangowin32-1.0.expT" ".libs/libpangowin32-1.0.exp"
if test "x`/bin/sed 1q .libs/libpangowin32-1.0.exp`" = xEXPORTS; then cp
.libs/libpangowin32-1.0.exp .libs/cygpangowin32-1.0-0.dll.def; else echo
EXPORTS > .libs/cygpangowin32-1.0-0.dll.def; cat .libs/libpangowin32-1.0.exp
>> .libs/cygpangowin32-1.0-0.dll.def; fi
 /usr/local/bin/gcc -shared .libs/cygpangowin32-1.0-0.dll.def
.libs/module-defs-win32.o .libs/pangowin32.o .libs/pangowin32-fontcache.o
.libs/pangowin32-fontmap.o  ./.libs/libpango-1.0.dll.a -L/usr/lib
/usr/lib/libgobject-2.0.dll.a /usr/lib/libgmodule-2.0.dll.a
/usr/lib/libglib-2.0.dll.a /usr/lib/libintl.dll.a /usr/lib/libiconv.dll.a
-lgdi32  -o .libs/cygpangowin32-1.0-0.dll -Wl,--enable-auto-image-base
-Xlinker --out-implib -Xlinker .libs/libpangowin32-1.0.dll.a
Creating library file: .libs/libpangowin32-1.0.dll.a


  You could take a look in the .libs/libpangowin32-1.0.exp; probably it
doesn't contain anything that isn't also in
.libs/cygpangowin32-1.0-0.dll.def, but it would be intersteing if it didn't.
And it might be interesting to compare the nm output from those .o files
before and after it gets passed through that sed|sort|uniq pipeline.

  Also, you should check that nothing went wrong at configure time that
caused it to disable font support in the built code - maybe it couldn't find
a dependency it needed.


  Hmmm.  There's various pango and pang-devel packages in the distro.  Do
you have any/all/none of those installed?  Is this a source build from the
distro source tarballs, or are you trying the upstream sources?


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019