Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363271 - [drop KEYWORDS] app-portage/portage-utils-0.5 fails to compile on Gentoo/FBSD
Summary: [drop KEYWORDS] app-portage/portage-utils-0.5 fails to compile on Gentoo/FBSD
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: new-fbsd-stage
  Show dependency tree
 
Reported: 2011-04-12 10:28 UTC by Yuta SATOH
Modified: 2011-05-30 02:19 UTC (History)
2 users (show)

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


Attachments
complete build.log (build.log,8.44 KB, text/x-log)
2011-05-22 02:10 UTC, Naohiro Aota
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2011-04-12 10:28:44 UTC
FreeBSD is not supporting O_CLOEXEC now. 
it will be supported by 8.3 or 9.0. 

http://svn.freebsd.org/viewvc/base?view=revision&revision=219999

so, please drop ~x86-fbsd from portage-utils-0.5. 


The following message is displayed and fails to compile on Gentoo/FBSD.

i686-gentoo-freebsd8.0-gcc -DEPREFIX=\"/\" -DVERSION=\"0.5\" -DAPPLET_q -DAPPLET_qatom -DAPPLET_qcache -DAPPLET_qcheck -DAPPLET_qdepends -DAPPLET_qfile -DAPPLET_qgrep -DAPPLET_qlist -DAPPLET_qlop -DAPPLET_qmerge -DAPPLET_qpkg -DAPPLET_qsearch -DAPPLET_qsize -DAPPLET_qtbz2 -DAPPLET_quse -DAPPLET_qxpak -O2 -march=i686 -mtune=i686 -pipe -std=gnu99 -MM main.c > .depend
: q : qatom : qcache : qcheck : qdepends : qfile : qgrep : qlist : qlop : qmerge : qpkg : qsearch : qsize : qtbz2 : quse : qxpak :
i686-gentoo-freebsd8.0-gcc -O2 -march=i686 -mtune=i686 -pipe -std=gnu99 -Wl,-O1 -Wl,--as-needed main.c -o q -lkvm
In file included from libq/compat.c:36,
                 from libq/libq.c:21,
                 from main.c:94:
/usr/include/sys/dir.h:39:2: warning: #warning "The information in this file should be obtained from <dirent.h>"
/usr/include/sys/dir.h:40:2: warning: #warning "and is provided solely (and temporarily) for backward compatibility."
In file included from libq/libq.c:27,
                 from main.c:94:
libq/xmkdir.c: In function 'rm_rf_at':
libq/xmkdir.c:46: error: 'O_CLOEXEC' undeclared (first use in this function)
libq/xmkdir.c:46: error: (Each undeclared identifier is reported only once
libq/xmkdir.c:46: error: for each function it appears in.)
In file included from libq/libq.c:37,
                 from main.c:94:
libq/profile.c: In function 'q_profile_walk_at':
libq/profile.c:13: error: 'O_CLOEXEC' undeclared (first use in this function)

<snip>

Reproducible: Always

Steps to Reproduce:
1. emerge app-portage/portage-utils
2.
3.
Comment 2 Naohiro Aota gentoo-dev 2011-05-22 02:10:49 UTC
Created attachment 274243 [details]
complete build.log

Still failed with the patch.

main.c:224: error: static declaration of 'getline' follows non-static declaration

qmerge.c: In function 'merge_tree_at':
qmerge.c:615: error: 'struct stat' has no member named 'st_mtim'
qmerge.c:616: error: 'struct stat' has no member named 'st_mtim'
qmerge.c:617: warning: implicit declaration of function 'futimens'
qmerge.c:617: warning: nested extern declaration of 'futimens'
qmerge.c:658: error: 'struct stat' has no member named 'st_mtim'
qmerge.c:659: error: 'struct stat' has no member named 'st_mtim'

and so many warnings.

(Drop ~x86-fbsd for now)
Comment 3 SpanKY gentoo-dev 2011-05-30 02:19:32 UTC
different issues.  new issue -> new bug.  this isnt a general "whenever it fails on bsd, re-open the bug".