Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187570 - [PATCH] www-servers/varnish-1.1 fails to link on uclibc due to missing -lm linker flag
Summary: [PATCH] www-servers/varnish-1.1 fails to link on uclibc due to missing -lm li...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
Depends on:
Reported: 2007-08-03 07:25 UTC by Natanael Copa
Modified: 2007-08-21 11:40 UTC (History)
0 users

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

varnish-1.1-libm.patch (varnish-1.1-libm.patch,636 bytes, patch)
2007-08-03 07:26 UTC, Natanael Copa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Natanael Copa 2007-08-03 07:25:56 UTC
i386-gentoo-linux-uclibc-gcc -include config.h -march=i386 -Os -pipe -fomit-frame-pointer -o .libs/varnishd varnishd-cache_acceptor.o varnishd-cache_acceptor_epoll.o varnishd-cache_acceptor_poll.o varnishd-cache_acceptor_kqueue.o varnishd-cache_backend.o varnishd-cache_ban.o varnishd-cache_center.o varnishd-cache_cli.o varnishd-cache_expire.o varnishd-cache_fetch.o varnishd-cache_hash.o varnishd-cache_http.o varnishd-cache_lru.o varnishd-cache_main.o varnishd-cache_pool.o varnishd-cache_pipe.o varnishd-cache_response.o varnishd-cache_session.o varnishd-cache_synthetic.o varnishd-cache_vary.o varnishd-cache_vcl.o varnishd-cache_vrt.o varnishd-cache_vrt_acl.o varnishd-cache_vrt_re.o varnishd-cache_ws.o varnishd-hash_simple_list.o varnishd-hash_classic.o varnishd-instance.o varnishd-mgt_child.o varnishd-mgt_cli.o varnishd-mgt_event.o varnishd-mgt_param.o varnishd-mgt_vcc.o varnishd-rfc2616.o varnishd-shmlog.o varnishd-stevedore.o varnishd-storage_file.o varnishd-storage_malloc.o varnishd-tcp.o varnishd-varnishd.o -Wl,--export-dynamic  ../../lib/libvarnish/.libs/ ../../lib/libcompat/libcompat.a ../../lib/libvcl/.libs/ -ldl -lpthread
varnishd-cache_pool.o: In function `wrk_do_one':
cache_pool.c:(.text+0x6de): undefined reference to `__isnan'
varnishd-cache_pool.o: In function `wrk_thread':
cache_pool.c:(.text+0x9ff): undefined reference to `__isnan'
collect2: ld returned 1 exit status
make[3]: *** [varnishd] Error 1
make[3]: Leaving directory `/var/tmp/portage/www-servers/varnish-1.1/work/varnish-1.1/bin/varnishd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/www-servers/varnish-1.1/work/varnish-1.1/bin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-servers/varnish-1.1/work/varnish-1.1'
make: *** [all] Error 2

Forgetting -lm is a common mistake since glibc does not require it.
Comment 1 Natanael Copa 2007-08-03 07:26:54 UTC
Created attachment 126774 [details, diff]

patch is also submitted upstream
Comment 2 Natanael Copa 2007-08-21 11:40:51 UTC
fixed upstream in 1.1.1