Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 409623

Summary: Keyword ~x86-fbsd on mail-filter/libsrs_alt-1.0
Product: Gentoo/Alt Reporter: Naohiro Aota <naota>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: net-mail+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 235785    
Attachments: complete build.log
libsrs_alt-1.0-ftime.patch

Description Naohiro Aota gentoo-dev 2012-03-25 11:25:48 UTC
Created attachment 306593 [details]
complete build.log

ATM, build failed with:

i686-gentoo-freebsd8.2-gcc -O2 -march=native -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--as-needed -o test test.o  src/.libs/libsrs_alt.a lib/libcompat.a
test.o: In function `main':
test.c:(.text+0x122): undefined reference to `ftime'
test.c:(.text+0x2fd): undefined reference to `ftime'
test.c:(.text+0x39b): undefined reference to `ftime'
test.c:(.text+0x4a6): undefined reference to `ftime'
collect2: ld returned 1 exit status
gmake[2]: *** [test] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/mail-filter/libsrs_alt-1.0/work/libsrs_alt-1.0'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/mail-filter/libsrs_alt-1.0/work/libsrs_alt-1.0'
gmake: *** [all] Error 2
emake failed
Comment 1 Naohiro Aota gentoo-dev 2012-04-02 12:01:29 UTC
Created attachment 307479 [details, diff]
libsrs_alt-1.0-ftime.patch

It need this patch to get built. 

ftime() is included in glibc on Linux, so AC_CHECK_LIB is not needed
for glibc machine.  OTOH it's included in libcompat on FreeBSD. It
require AC_CHECK_LIB(compat, ftime)
Comment 2 Naohiro Aota gentoo-dev 2012-04-17 11:57:31 UTC
Patch added.