<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>140794</bug_id>
          
          <creation_ts>2006-07-17 08:39 0000</creation_ts>
          <short_desc>app-i18n/scim-wnn-1.0.0 fails to compile with --as-needed</short_desc>
          <delta_ts>2006-12-30 05:01:23 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>eva@gentoo.org</reporter>
          <assigned_to>cjk@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>eva@gentoo.org</who>
            <bug_when>2006-07-17 08:39:31 0000</bug_when>
            <thetext>With or without USE=&quot;freewnn&quot;, I get this :

checking SCIM_GTKUTILS_CFLAGS... -I/usr/include/scim-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking SCIM_GTKUTILS_LIBS... -lscim-gtkutils-1.0 -lgtk-x11-2.0 -lscim-1.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
checking for crypt in -lcrypt... yes
checking for jl_yosoku_init in -lwnn7... no
libwnn7 not found.
checking for jl_yosoku_init in -lwnn... no
libwnn for Wnn7 not found.
checking for jl_optimize_fi in -lwnn6... no
libwnn6 not found.
checking for jl_optimize_fi in -lwnn... no
libwnn for Wnn6 not found.
configure: error: Wnn6 or Wnn7 library not found.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/scim-wnn-1.0.0/work/scim-wnn-1.0.0/config.log

!!! ERROR: app-i18n/scim-wnn-1.0.0 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  ebuild.sh, line 606:   Called econf
  ebuild.sh, line 541:   Called die


emerge --info :

Portage 2.1.1_pre3-r1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-suspend2-r2 i686)
=================================================================
System uname: 2.6.17-suspend2-r2 i686 Mobile Intel(R) Pentium(R) III CPU - M   800MHz
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: [Not Present]
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=pentium3 -ftree-vectorize -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf&quot;
CXXFLAGS=&quot;-O2 -march=pentium3 -ftree-vectorize -pipe&quot;
DISTDIR=&quot;/var/tmp/distfiles&quot;
FEATURES=&quot;autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://mirror.gentoo.gr.jp http://85.25.128.62 http://ftp.heanet.ie/pub/gentoo/&quot;
LANG=&quot;fr_FR.UTF-8&quot;
LDFLAGS=&quot;-Wl,--as-needed&quot;
LINGUAS=&quot;en fr ja zh&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=&apos;/distfiles&apos; --exclude=&apos;/local&apos; --exclude=&apos;/packages&apos;&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/overlays/portage /usr/portage/local/layman/sunrise /usr/portage/local/layman/gentopia /usr/portage/local/layman/liferea_overlay /usr/portage/local/layman/portage-xgl /usr/portage/local/layman/hanno-xgl&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 X acl acpi alsa avahi avi bash-completion bitmap-fonts bogofilter bzip2 cairo canna cjk cli crypt cups daap dbus dlloader dri drm eds emboss exif firefox foomaticdb freewnn fuse gaim gif glitz gnome gnutls gphoto2 gpm gstreamer gstreamer010 gtk gtk2 gtkhtml hal iproute2 ipv6 irda isdnlog jpeg kde libg++ libnotify libwww logrotate mad matroska mikmod mmx mp3 mpeg musicbrainz nautilus ncurses nls nptl nptlonly nsplugin ogg oggvorbis opengl pam pcmcia pcre pdf pdflib perl png pppd python quicktime readline reflection samba sasl sdk session spell spl sse ssl svg tcpd theora threads truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis xattr xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev input_devices_wacom kernel_linux linguas_en linguas_fr linguas_ja linguas_zh userland_GNU video_cards_i810&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eva@gentoo.org</who>
            <bug_when>2006-07-17 08:48:37 0000</bug_when>
            <thetext>just thougth it could be a --as-needed bug and was right.
Configure and compiles fine without --as-needed.
Changing the title accordingly
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eva@gentoo.org</who>
            <bug_when>2006-11-08 14:49:55 0000</bug_when>
            <thetext>Created an attachment (id=101501)
scim-wnn-1.0.0.ebuild.patch

finally had time to get my hands dirty. Looks like the whole configure is generated with LDFLAGS _before_ objects to compile (which everyone should know is bad) so here is my piece of sed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>usata@gentoo.org</who>
            <bug_when>2006-12-30 05:01:23 0000</bug_when>
            <thetext>Thanks for the patch. Fixed in CVS.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>101501</attachid>
            <date>2006-11-08 14:49 0000</date>
            <desc>scim-wnn-1.0.0.ebuild.patch</desc>
            <filename>scim-wnn-1.0.0.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHNjaW0td25uLTEuMC4wLmVidWlsZAkyMDA2LTA2LTI5IDAyOjM3OjM0LjAwMDAwMDAwMCAr
MDIwMAorKysgc2NpbS13bm4tMS4wLjAuZWJ1aWxkCTIwMDYtMTEtMDggMjM6NDI6MzcuNTg2NTIy
NzUwICswMTAwCkBAIC0yMiw2ICsyMiwxMCBAQAogCWNkICR7U30vc3JjCiAJc2VkIC1pIC1lICJz
Oi91c3IvbGliL3dubjc6L3Vzci9saWIvd25uOmciIFwKIAkJc2NpbV93bm5fZGVmLmggd25uY29u
dmVyc2lvbi5jcHAgfHwgZGllICJzZWQgZmFpbGVkIgorCisJY2QgJHtTfQorCXNlZCAtaSAtZSAi
czpcJExERkxBR1MgY29uZnRlc3QuXCRhY19leHQgXCRMSUJTOmNvbmZ0ZXN0LlwkYWNfZXh0IFwk
TElCUyBcJExERkxBR1M6ZyIgXAorCQljb25maWd1cmUgfHwgZGllICJsZGZsYWdzIHNlZCBmYWls
ZWQiCiB9CiAKIHNyY19pbnN0YWxsKCkgewo=
</data>        

          </attachment>
    </bug>

</bugzilla>