[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] Gcc 4.4.3 Linking problems (libmath)



Hello again,

sorry to post another question, but this seems to be something I can't
resolve myself... :/

Links errors:
build-FreeMiNT-framebuffer/render_html_redraw.o: In function
`_html_redraw_inline_background':
/d/root/netsurf/netsurf/render/html_redraw.c:1877: undefined reference to
`_ceilf'
build-FreeMiNT-framebuffer/render_html_redraw.o: In function
`_html_redraw_box':
/d/root/netsurf/netsurf/render/html_redraw.c:1730: undefined reference to
`_ceilf'
/d/root/netsurf/netsurf/render/html_redraw.c:1729: undefined reference to
`_ceilf'
build-FreeMiNT-framebuffer/render_layout.o: In function `_layout_table':
/d/root/netsurf/netsurf/render/layout.c:3202: undefined reference to `_ceil'
/d/root/netsurf/netsurf/render/layout.c:3038: undefined reference to `_ceil'
/d/usr/bin/../lib/gcc/m68k-atari-mint/4.4.3/../../../libxml2.a(xpath.o)(.text+0x1c02):
undefined reference to `_log10'
/d/usr/bin/../lib/gcc/m68k-atari-mint/4.4.3/../../../libxml2.a(xpath.o)(.text+0x85d4):
undefined reference to `_pow'
/d/usr/bin/../lib/gcc/m68k-atari-mint/4.4.3/../../../libxml2.a(xpath.o)(.text+0x881e):
undefined reference to `_pow'
/d/usr/bin/../lib/gcc/m68k-atari-mint/4.4.3/../../../libpng.a(pngrtran.o)(.text+0xff0):
undefined reference to `_pow'
/d/usr/bin/../lib/gcc/m68k-atari-mint/4.4.3/../../../libpng.a(pngrtran.o)(.text+0x161e):
undefined reference to `_pow'
/d/usr/bin/../lib/gcc/m68k-atari-mint/4.4.3/../../../libpng.a(pngrtran.o)(.text+0x1748):
undefined reference to `_pow'
/d/usr/bin/../lib/gcc/m68k-atari-mint/4.4.3/../../../libpng.a(pngrtran.o)(.text+0x108a):
more undefined references to `_pow' follow
collect2: ld returned 1 exit status
make: *** [nsfb] Error 1


Here's the invoke of cc, I'll post the whole bunch..., sorry for missing
line breaks:
    LINK: nsfb
cc -o nsfb
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_caret_image.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_hand_image.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_left_arrow.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_left_arrow_g.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_menu_image.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_pointer_image.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_progress_image.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_reload.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_reload_g.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_right_arrow.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_right_arrow_g.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_scrolld.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_scrolll.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_scrollr.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_scrollu.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_stop_image.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_stop_image_g.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_throbber0.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_throbber1.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_throbber2.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_throbber3.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_throbber4.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_throbber5.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_throbber6.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_throbber7.o
build-FreeMiNT-framebuffer/build-FreeMiNT-framebuffer_throbber8.o
build-FreeMiNT-framebuffer/content_content.o
build-FreeMiNT-framebuffer/content_fetch.o
build-FreeMiNT-framebuffer/content_fetchers_fetch_curl.o
build-FreeMiNT-framebuffer/content_fetchers_fetch_data.o
build-FreeMiNT-framebuffer/content_hlcache.o
build-FreeMiNT-framebuffer/content_llcache.o
build-FreeMiNT-framebuffer/content_urldb.o
build-FreeMiNT-framebuffer/css_css.o build-FreeMiNT-framebuffer/css_dump.o
build-FreeMiNT-framebuffer/css_internal.o
build-FreeMiNT-framebuffer/css_select.o
build-FreeMiNT-framebuffer/css_utils.o
build-FreeMiNT-framebuffer/desktop_browser.o
build-FreeMiNT-framebuffer/desktop_download.o
build-FreeMiNT-framebuffer/desktop_frames.o
build-FreeMiNT-framebuffer/desktop_history_core.o
build-FreeMiNT-framebuffer/desktop_knockout.o
build-FreeMiNT-framebuffer/desktop_netsurf.o
build-FreeMiNT-framebuffer/desktop_options.o
build-FreeMiNT-framebuffer/desktop_plot_style.o
build-FreeMiNT-framebuffer/desktop_print.o
build-FreeMiNT-framebuffer/desktop_save_complete.o
build-FreeMiNT-framebuffer/desktop_save_text.o
build-FreeMiNT-framebuffer/desktop_scroll.o
build-FreeMiNT-framebuffer/desktop_search.o
build-FreeMiNT-framebuffer/desktop_searchweb.o
build-FreeMiNT-framebuffer/desktop_selection.o
build-FreeMiNT-framebuffer/desktop_textarea.o
build-FreeMiNT-framebuffer/desktop_textinput.o
build-FreeMiNT-framebuffer/desktop_tree.o
build-FreeMiNT-framebuffer/desktop_version.o
build-FreeMiNT-framebuffer/framebuffer_bitmap.o
build-FreeMiNT-framebuffer/framebuffer_fbtk.o
build-FreeMiNT-framebuffer/framebuffer_fbtk_widget_scroll.o
build-FreeMiNT-framebuffer/framebuffer_filetype.o
build-FreeMiNT-framebuffer/framebuffer_findfile.o
build-FreeMiNT-framebuffer/framebuffer_font_internal.o
build-FreeMiNT-framebuffer/framebuffer_framebuffer.o
build-FreeMiNT-framebuffer/framebuffer_gui.o
build-FreeMiNT-framebuffer/framebuffer_history.o
build-FreeMiNT-framebuffer/framebuffer_hotlist.o
build-FreeMiNT-framebuffer/framebuffer_login.o
build-FreeMiNT-framebuffer/framebuffer_misc.o
build-FreeMiNT-framebuffer/framebuffer_nsfont_bold.o
build-FreeMiNT-framebuffer/framebuffer_nsfont_italic.o
build-FreeMiNT-framebuffer/framebuffer_nsfont_italic_bold.o
build-FreeMiNT-framebuffer/framebuffer_nsfont_regular.o
build-FreeMiNT-framebuffer/framebuffer_save.o
build-FreeMiNT-framebuffer/framebuffer_schedule.o
build-FreeMiNT-framebuffer/framebuffer_thumbnail.o
build-FreeMiNT-framebuffer/framebuffer_tree.o
build-FreeMiNT-framebuffer/image_bmp.o
build-FreeMiNT-framebuffer/image_gif.o
build-FreeMiNT-framebuffer/image_ico.o
build-FreeMiNT-framebuffer/image_jpeg.o
build-FreeMiNT-framebuffer/image_mng.o
build-FreeMiNT-framebuffer/image_nssprite.o
build-FreeMiNT-framebuffer/image_png.o
build-FreeMiNT-framebuffer/image_rsvg.o
build-FreeMiNT-framebuffer/image_svg.o
build-FreeMiNT-framebuffer/render_box.o
build-FreeMiNT-framebuffer/render_box_construct.o
build-FreeMiNT-framebuffer/render_box_normalise.o
build-FreeMiNT-framebuffer/render_directory.o
build-FreeMiNT-framebuffer/render_favicon.o
build-FreeMiNT-framebuffer/render_font.o
build-FreeMiNT-framebuffer/render_form.o
build-FreeMiNT-framebuffer/render_html.o
build-FreeMiNT-framebuffer/render_html_redraw.o
build-FreeMiNT-framebuffer/render_hubbub_binding.o
build-FreeMiNT-framebuffer/render_imagemap.o
build-FreeMiNT-framebuffer/render_layout.o
build-FreeMiNT-framebuffer/render_list.o
build-FreeMiNT-framebuffer/render_table.o
build-FreeMiNT-framebuffer/render_textplain.o
build-FreeMiNT-framebuffer/utils_base64.o
build-FreeMiNT-framebuffer/utils_filename.o
build-FreeMiNT-framebuffer/utils_hashtable.o
build-FreeMiNT-framebuffer/utils_http.o
build-FreeMiNT-framebuffer/utils_locale.o
build-FreeMiNT-framebuffer/utils_messages.o
build-FreeMiNT-framebuffer/utils_talloc.o
build-FreeMiNT-framebuffer/utils_url.o
build-FreeMiNT-framebuffer/utils_useragent.o
build-FreeMiNT-framebuffer/utils_utf8.o
build-FreeMiNT-framebuffer/utils_utils.o -ljpeg -lz -lxml2 -lm -liconv
-lcurl -lssl -lcrypto -L/usr/local/lib -lnsfb -lhubbub -lpng
-L/usr/local/lib -lrosprite    -L/usr/local/lib -lnsbmp   
-L/usr/local/lib -lnsgif    -Wl,--whole-archive  -Wl,--no-whole-archive  
-L/usr/local/lib -lcss -lparserutils -lwapcaplet

The only thing which I find to be suspicious is the usage of
-Wl,--no-whole-archive  flags... does anybody could see the reason why
this error happens? As far as I know I should not even need to link
explictly againt libmath, because gcc figures it out for itself?

greets... ( hopefully this will be the last question about gcc usage
topic...) &  thanks :)