Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254952 - net-misc/ntpclient-2007.365 does not build with sys-libs/uclibc-0.9.30 - can't find __adjtimex()
Summary: net-misc/ntpclient-2007.365 does not build with sys-libs/uclibc-0.9.30 - can'...
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: solar (RETIRED)
URL: http://mailman.uclinux.org/pipermail/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-14 12:24 UTC by Anthony Giorgio
Modified: 2009-01-15 12:49 UTC (History)
0 users

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


Attachments
Updated ebuild (ntpclient-2007.365-r1.ebuild,905 bytes, text/plain)
2009-01-14 12:35 UTC, Anthony Giorgio
Details
Patch for ntpclient to compile with uclibc-0.9.30 (ntpclient-2007-uclibc.patch,645 bytes, patch)
2009-01-14 12:35 UTC, Anthony Giorgio
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Giorgio 2009-01-14 12:24:46 UTC
ntpclient is looking for __adjtimex(), which is no longer provided with uclibc-0.9.30.

>>> Compiling source in /var/tmp/portage/net-misc/ntpclient-2007.365/work/ntpcli
ent-2007 ...
make -j2
armeb-softfloat-linux-uclibc-gcc -march=armv5t -mtune=xscale -Os -std=c99 -W -Wa
ll -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Waggregate-return -Wnested
-externs -Winline -Wwrite-strings -Wstrict-prototypes  -DENABLE_DEBUG -DENABLE_R
EPLAY   -c -o ntpclient.o ntpclient.c
armeb-softfloat-linux-uclibc-gcc -march=armv5t -mtune=xscale -Os -std=c99 -W -Wa
ll -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Waggregate-return -Wnested
-externs -Winline -Wwrite-strings -Wstrict-prototypes  -DENABLE_DEBUG -DENABLE_R
EPLAY   -c -o phaselock.o phaselock.c
armeb-softfloat-linux-uclibc-gcc -Wl,-O1  ntpclient.o phaselock.o  -lrt -o ntpclient
ntpclient.o: In function `set_freq':
ntpclient.c:(.text+0x18): undefined reference to `__adjtimex'
ntpclient.o: In function `main':
ntpclient.c:(.text+0xc44): undefined reference to `__adjtimex'
collect2: ld returned 1 exit status
make: *** [ntpclient] Error 1
 *
 * ERROR: net-misc/ntpclient-2007.365 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2334:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed in src_compile"
 *  The die message:
 *   emake failed in src_compile
 *
 * If you need support, post the topmost build error, and the call stack if relevant.


Reproducible: Always

Steps to Reproduce:
1. emerge '=uclibc-0.9.30'
2. emerge ntp-client





# emerge --info
Portage 2.1.6.4 (uclibc/arm, gcc-3.4.6, uclibc-0.9.30-r0, 2.6.21.7 armv5teb)
=================================================================
System uname: Linux-2.6.21.7-armv5teb-XScale-IXP42x_Family_rev_1_-v5b-with-libc0
Timestamp of tree: Wed, 14 Jan 2009 06:35:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5, 1.10.2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="arm"
CBUILD="armeb-softfloat-linux-uclibc"
CFLAGS="-march=armv5t -mtune=xscale -Os"
CHOST="armeb-softfloat-linux-uclibc"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=armv5t -mtune=xscale -Os"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="arm cli cracklib crypt dri midi mudflap ncurses openmp pcre perl python readline reflection session spl ssl tcpd uclibc uclibc-compat xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Anthony Giorgio 2009-01-14 12:35:26 UTC
Created attachment 178470 [details]
Updated ebuild
Comment 2 Anthony Giorgio 2009-01-14 12:35:49 UTC
Created attachment 178472 [details, diff]
Patch for ntpclient to compile with uclibc-0.9.30
Comment 3 solar (RETIRED) gentoo-dev 2009-01-14 18:22:45 UTC
this was fixed using a simple sed statement without version bump as it introduces no new functionality. Wait a few hours then --sync

Tested on : x86-uclibc and amd64-glibc

Comment 4 Anthony Giorgio 2009-01-15 12:49:36 UTC
Looks good to me.