Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377141 - dev-libs/ptexenc-1.2.0_p20110705 failed to compile with undefined symbol _kpse_var_value
Summary: dev-libs/ptexenc-1.2.0_p20110705 failed to compile with undefined symbol _kps...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-31 06:57 UTC by MATSUI Tetsushi
Modified: 2011-08-27 19:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild (ptexenc-1.2.0_p20110705.ebuild,1.23 KB, text/plain)
2011-07-31 07:05 UTC, MATSUI Tetsushi
Details
diff (ptexenc-1.2.0_p20110705-kpathsea.patch,877 bytes, patch)
2011-08-27 05:58 UTC, MATSUI Tetsushi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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