Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 377141

Summary: dev-libs/ptexenc-1.2.0_p20110705 failed to compile with undefined symbol _kpse_var_value
Product: Gentoo/Alt Reporter: MATSUI Tetsushi <VED03370>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal CC: tex
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild
diff

Description MATSUI Tetsushi 2011-07-31 06:57:45 UTC
dev-libs/ptexenc-1.2.0_p20110705 (unmasked by keywording) failed to compile with undefined symbol _kpse_var_value on x86-macos.  The symbol should obviously be provided from kpathsea library.

Reproducible: Always

Steps to Reproduce:
1. emerge ptexenc

Actual Results:  
libtool: link: i686-apple-darwin9-gcc -dynamiclib  -o .libs/libptexenc.1.dylib  .libs/libptexenc_la-kanjicnv.o .libs/libptexenc_la-ptexenc.o .libs/libptexenc_la-unicode-jp.o .libs/libptexenc_la-unicode.o    -O2 -march=nocona -Wl,-dead_strip_dylibs   -install_name  /Users/tetsushi/Gentoo/usr/lib/libptexenc.1.dylib -compatibility_version 4 -current_version 4.0 -Wl,-single_module
Undefined symbols:
  "_kpse_var_value", referenced from:
      _nkf_open in libptexenc_la-ptexenc.o
  "_kpse_readable_file", referenced from:
      _nkf_open in libptexenc_la-ptexenc.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libptexenc.la] Error 1
emake failed


Expected Results:  
>>> Source compiled.


The version of ptexenc is not keyworded x86-macos, but it is one of the depends of texlive:

#required by app-text/texlive-core-2011[cjk], required by dev-texlive/texlive-pictures-2011, required by dev-texlive/texlive-latexextra-2011, required by dev-texlive/texlive-xetex-2011, required by app-text/texlive-2010-r1[xetex], required by texlive (argument)
>=dev-libs/ptexenc-1.2.0_p20110705 **
Comment 1 MATSUI Tetsushi 2011-07-31 07:05:35 UTC
Created attachment 281645 [details]
ebuild

This is my current trial version; it uses @KPATHSEA_LIBS@ explicitly, and pass --with-system-kpathsea to configure.  I can emerge the package with it.
Comment 2 Fabian Groffen gentoo-dev 2011-08-26 20:23:04 UTC
do you happen to have the diff between the original ebuild and your changed one?
Comment 3 MATSUI Tetsushi 2011-08-27 05:58:20 UTC
Created attachment 284771 [details, diff]
diff

Here you're, the diff against ebuild of July 31st.
Comment 4 Fabian Groffen gentoo-dev 2011-08-27 07:45:04 UTC
@tex herd: what do you think about MATSUI's patch?  Is it ok with you to apply it to a -r1?
Comment 5 Alexis Ballier gentoo-dev 2011-08-27 17:58:31 UTC
(In reply to comment #4)
> @tex herd: what do you think about MATSUI's patch?  Is it ok with you to apply
> it to a -r1?

yep; its not macos specific, it seems to be underlinked on linux too
Comment 6 Fabian Groffen gentoo-dev 2011-08-27 19:50:35 UTC
ok, patch committed, MATSUI, thanks