Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141561 - app-i18n/anthy-7900 failed to compile with -Wl,--as-needed
Summary: app-i18n/anthy-7900 failed to compile with -Wl,--as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Akinori Hattori
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2006-07-24 02:54 UTC by Nguyen Thai Ngoc Duy (RETIRED)
Modified: 2006-09-06 05:29 UTC (History)
1 user (show)

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


Attachments
patch solving the problem (anthy-7900-as-needed.patch,474 bytes, patch)
2006-09-01 01:24 UTC, Rafał Mużyło
Details | Diff
anthy-7900.ebuild patch (anthy-7900.ebuild.patch,589 bytes, patch)
2006-09-01 04:50 UTC, Nguyen Thai Ngoc Duy (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2006-07-24 02:54:22 UTC
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -Os -pipe -march=pentium4 -mmmx -msse -funroll-loops -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -MT egg.o -MD -MP -MF ".deps/egg.Tpo" -c -o egg.o egg.c; \
then mv -f ".deps/egg.Tpo" ".deps/egg.Po"; else rm -f ".deps/egg.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc  -Os -pipe -march=pentium4 -mmmx -msse -funroll-loops -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long  -Wl,--as-needed -o anthy-agent  agent.o egg.o libanthyinput.la ../src-main/libanthy.la ../src-worddic/libanthydic.la
i686-pc-linux-gnu-gcc -Os -pipe -march=pentium4 -mmmx -msse -funroll-loops -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wl,--as-needed -o .libs/anthy-agent agent.o egg.o  ./.libs/libanthyinput.so ../src-main/.libs/libanthy.so -lm ../src-worddic/.libs/libanthydic.so
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_seq_ent_from_xstr'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_nr_compound_ents'
../src-main/.libs/libanthy.so: undefined reference to `anthy_xstr_dup_str'
../src-main/.libs/libanthy.so: undefined reference to `anthy_xstrcpy'
../src-main/.libs/libanthy.so: undefined reference to `anthy_dic_activate_session'
../src-main/.libs/libanthy.so: undefined reference to `anthy_xstr_hira_to_kata'
../src-main/.libs/libanthy.so: undefined reference to `anthy_dic_create_session'
../src-main/.libs/libanthy.so: undefined reference to `anthy_compound_get_nth_segment_len'
../src-main/.libs/libanthy.so: undefined reference to `anthy_cstr_to_xstr'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_nth_compound_ent'
../src-main/.libs/libanthy.so: undefined reference to `anthy_wtype_get_sv'
../src-main/.libs/libanthy.so: undefined reference to `anthy_xstrcat'
../src-main/.libs/libanthy.so: undefined reference to `anthy_dic_check_word_relation'
../src-main/.libs/libanthy.so: undefined reference to `anthy_add_unknown_word'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_index_xstr'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_seq_ent_wtype_freq'
../src-main/.libs/libanthy.so: undefined reference to `anthy_compound_get_nth_segment_xstr'
../src-main/.libs/libanthy.so: undefined reference to `anthy_select_section'
../src-main/.libs/libanthy.so: undefined reference to `anthy_lock_dic'
../src-main/.libs/libanthy.so: undefined reference to `anthy_dic_ntohl'
../src-main/.libs/libanthy.so: undefined reference to `anthy_free_xstr'
../src-main/.libs/libanthy.so: undefined reference to `anthy_truncate_section'
../src-main/.libs/libanthy.so: undefined reference to `anthy_free_xstr_str'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_nth_value'
../src-main/.libs/libanthy.so: undefined reference to `anthy_select_longest_row'
../src-main/.libs/libanthy.so: undefined reference to `anthy_dic_release_session'
../src-main/.libs/libanthy.so: undefined reference to `anthy_putxstr'
../src-main/.libs/libanthy.so: undefined reference to `anthy_dic_set_personality'
../src-main/.libs/libanthy.so: undefined reference to `anthy_compound_get_nr_segments'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_seq_ent_indep'
../src-main/.libs/libanthy.so: undefined reference to `anthy_set_nth_xstr'
../src-main/.libs/libanthy.so: undefined reference to `anthy_log'
../src-main/.libs/libanthy.so: undefined reference to `anthy_set_nth_value'
../src-main/.libs/libanthy.so: undefined reference to `anthy_wtype_include'
../src-main/.libs/libanthy.so: undefined reference to `anthy_quit_dic'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_nth_xstr'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_nth_dic_ent_str'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_nr_dic_ents'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_xchar_type'
../src-main/.libs/libanthy.so: undefined reference to `anthy_wtype_get_pos'
../src-main/.libs/libanthy.so: undefined reference to `anthy_xstrcmp'
../src-main/.libs/libanthy.so: undefined reference to `anthy_wt_none'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_nr_values'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_nth_dic_ent_wtype'
../src-main/.libs/libanthy.so: undefined reference to `anthy_mark_row_used'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_wtype_with_ct'
../src-main/.libs/libanthy.so: undefined reference to `anthy_smalloc'
../src-main/.libs/libanthy.so: undefined reference to `anthy_create_allocator'
../src-main/.libs/libanthy.so: undefined reference to `anthy_reload_record'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_seq_ent_pos'
../src-main/.libs/libanthy.so: undefined reference to `anthy_release_row'
../src-main/.libs/libanthy.so: undefined reference to `anthy_unlock_dic'
../src-main/.libs/libanthy.so: undefined reference to `anthy_do_conf_override'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_seq_flag'
../src-main/.libs/libanthy.so: undefined reference to `anthy_wtype_equal'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_wtype'
../src-main/.libs/libanthy.so: undefined reference to `anthy_init_dic'
../src-main/.libs/libanthy.so: undefined reference to `anthy_putxchar'
../src-main/.libs/libanthy.so: undefined reference to `anthy_sfree'
../src-main/.libs/libanthy.so: undefined reference to `anthy_matrix_image_peek'
../src-main/.libs/libanthy.so: undefined reference to `anthy_xstr_to_cstr'
../src-main/.libs/libanthy.so: undefined reference to `anthy_wtype_get_ct'
../src-main/.libs/libanthy.so: undefined reference to `anthy_xstr_hira_to_half_kata'
../src-main/.libs/libanthy.so: undefined reference to `anthy_init_wtype_by_name'
../src-main/.libs/libanthy.so: undefined reference to `anthy_wtype_get_scos'
../src-main/.libs/libanthy.so: undefined reference to `anthy_xstr_set_print_encoding'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_seq_ent_wtype_compound_freq'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_xstr_type'
../src-main/.libs/libanthy.so: undefined reference to `anthy_forget_unused_unknown_word'
../src-main/.libs/libanthy.so: undefined reference to `anthy_xstr_hash'
../src-main/.libs/libanthy.so: undefined reference to `anthy_traverse_record_for_prediction'
../src-main/.libs/libanthy.so: undefined reference to `anthy_select_row'
../src-main/.libs/libanthy.so: undefined reference to `anthy_get_nth_dic_ent_freq'
../src-main/.libs/libanthy.so: undefined reference to `anthy_file_dic_get_section'
../src-main/.libs/libanthy.so: undefined reference to `anthy_free_allocator'
collect2: ld returned 1 exit status
make[2]: *** [anthy-agent] Error 1
make[2]: Leaving directory `/mnt/sandbox/portage/portage/anthy-7900/work/anthy-7900/src-util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/sandbox/portage/portage/anthy-7900/work/anthy-7900'
make: *** [all] Error 2
Comment 1 Rafał Mużyło 2006-09-01 01:24:03 UTC
Created attachment 95624 [details, diff]
patch solving the problem

Add autotools to inherit
add this patch and eautomake to src_unpack
...and it works.
Comment 2 Rafał Mużyło 2006-09-01 01:27:12 UTC
Forgot to add:
Please upstream.
Comment 3 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2006-09-01 04:50:13 UTC
Created attachment 95637 [details, diff]
anthy-7900.ebuild patch

works for me. However I renamed the patch to anthy-7900-asneeded.patch to be consistent with anthy-7500b-asneeded.patch.
anthy-dev ML was informed about the patch.
Comment 4 Akinori Hattori gentoo-dev 2006-09-06 05:29:38 UTC
Fixed in CVS. Thank you for reporting.