Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 584748 - sys-apps/findutils-4.6.0[debug]: build fails: undefined reference to 'rpl_mktime'
Summary: sys-apps/findutils-4.6.0[debug]: build fails: undefined reference to 'rpl_mkt...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 584862 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-06-01 12:31 UTC by gentoo
Modified: 2016-06-05 21:08 UTC (History)
1 user (show)

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


Attachments
emerge --info (emergeinfo,4.54 KB, text/plain)
2016-06-01 12:31 UTC, gentoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo 2016-06-01 12:31:35 UTC
Created attachment 436014 [details]
emerge --info

Important part of the build log:
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I../gl/lib -I../lib -I../gl/lib -I../intl -DLOCALEDIR=\"/usr/share/locale\"   -O2 -pipe -c -o ftsfind.o ftsfind.c
ftsfind.c: In function 'main':
ftsfind.c:705:49: warning: passing argument 1 of 'ctime' from incompatible pointer type [-Wincompatible-pointer-types]
   fprintf (stderr, "cur_day_start = %s", ctime (&options.cur_day_start));
                                                 ^
In file included from ../gl/lib/time.h:41:0,
                 from ../gl/lib/sys/stat.h:44,
                 from ftsfind.c:39:
/usr/include/time.h:264:14: note: expected 'const time_t * {aka const long int *}' but argument is of type 'struct timespec *'
 extern char *ctime (const time_t *__timer) __THROW;
              ^
rm -f libfindtools.a
x86_64-pc-linux-gnu-ar cr libfindtools.a finddata.o fstype.o parser.o pred.o exec.o tree.o util.o sharefile.o print.o 
x86_64-pc-linux-gnu-ranlib libfindtools.a
x86_64-pc-linux-gnu-gcc  -O2 -pipe  -Wl,-O1 -Wl,--as-needed -o find ftsfind.o ./libfindtools.a ../lib/libfind.a ../gl/lib/libgnulib.a       -lm -lm    
../gl/lib/libgnulib.a(parse-datetime.o): In function `parse_datetime':
parse-datetime.c:(.text+0x1e8d): undefined reference to `rpl_mktime'
parse-datetime.c:(.text+0x21cc): undefined reference to `rpl_mktime'
parse-datetime.c:(.text+0x227d): undefined reference to `rpl_mktime'
parse-datetime.c:(.text+0x233e): undefined reference to `rpl_mktime'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:1810: find] Error 1
make[3]: Leaving directory '/var/tmp/portage/sys-apps/findutils-4.6.0-r1/work/findutils-4.6.0/find'
Comment 1 Sven E. 2016-06-02 00:45:26 UTC
You should probably attach your config.log. Looks like mktime test fails and autoconf redefines to rpl_mktime (and findutils does not provide a replacement mktime)
Comment 2 Toralf Förster gentoo-dev 2016-06-02 16:00:32 UTC
debug seems not to be the culprit, failed in bug #584862 with -debug (which might be a dup ?)
Comment 3 gentoo 2016-06-03 01:27:36 UTC
The debug use flag seems to be enabled in bug #584862 . I investigated this a bit, will follow up if I get a useful data point.
Comment 4 gentoo 2016-06-03 02:08:03 UTC
I think perhaps we should just remove the debug use flag since that configuration directive is gone from upstream master.
Comment 5 SpanKY gentoo-dev 2016-06-03 02:13:43 UTC
*** Bug 584862 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2016-06-05 21:08:47 UTC
i've dropped the flag to match upstream

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84a3fd801be02b70ab41eb7b8a38cf359403e6ce