This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: pangp


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]