Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191735 - net-fs/samba-3.0.25c-r1 fails to build on g/fbsd
Summary: net-fs/samba-3.0.25c-r1 fails to build on g/fbsd
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: x86 FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-08 18:40 UTC by Davide Pesavento
Modified: 2009-05-29 14:27 UTC (History)
1 user (show)

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


Attachments
aio.c.patch (aio.c.patch,1.01 KB, patch)
2007-09-08 18:55 UTC, Davide Pesavento
Details | Diff
build log (build.log,56.84 KB, text/plain)
2009-05-29 14:22 UTC, Dmitri Bogomolov
Details
emerge --info (emerge.info,3.17 KB, text/plain)
2009-05-29 14:23 UTC, Dmitri Bogomolov
Details
combined patch-configure.in and patch-smbd_aio.c from freebsd's port (3.0.25c-aio_fbsd.patch,8.07 KB, patch)
2009-05-29 14:27 UTC, Dmitri Bogomolov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Davide Pesavento gentoo-dev 2007-09-08 18:40:00 UTC
Compiling smbd/aio.c
smbd/aio.c: In function 'signal_handler':
smbd/aio.c:157: error: 'union sigval' has no member named 'sival_int'
smbd/aio.c: In function 'schedule_aio_read_and_X':
smbd/aio.c:254: error: 'union sigval' has no member named 'sival_int'
Compiling smbd/statvfs.c
smbd/aio.c: In function 'schedule_aio_write_and_X':
smbd/aio.c:344: error: 'union sigval' has no member named 'sival_int'
smbd/aio.c: In function 'wait_for_aio_completion':
smbd/aio.c:699: error: 'const union sigval' has no member named 'sival_int'
The following command failed:
i686-gentoo-freebsd6.2-gcc -I. -I/var/tmp/portage/net-fs/samba-3.0.25c-r1/work/samba-3.0.25c/source  -O2 -march=pentium4 -pipe -D_SAMBA_BUILD_=3  -I/var/tmp/portage/net-fs/samba-3.0.25c-r1/work/samba-3.0.25c/source/iniparser/src -Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H  -DLDAP_DEPRECATED    -I/var/tmp/portage/net-fs/samba-3.0.25c-r1/work/samba-3.0.25c/source/lib -D_SAMBA_BUILD_=3 -fPIC -DPIC -c smbd/aio.c -o smbd/aio.o
gmake: *** [smbd/aio.o] Error 1
gmake: *** Waiting for unfinished jobs....
 *
 * ERROR: net-fs/samba-3.0.25c-r1 failed.
 *

Upstream bug #2922 (https://bugzilla.samba.org/show_bug.cgi?id=2922) may be related, but it seems that the patches attached there have already been *partially* applied. In particular, see patch https://bugzilla.samba.org/attachment.cgi?id=1340 -> the first chunk has NOT been applied while some of the following ones have.


# emerge --info
Portage 2.1.3.9 (default-bsd/fbsd/6.2/x86, gcc-4.2.0, freebsd-lib-6.2-r1, 6.2-RELEASE i386)
=================================================================
System uname: 6.2-RELEASE i386 i386
Timestamp of tree: Sat, 08 Sep 2007 14:50:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.5.1-r2
sys-apps/baselayout: 2.0.0_rc4-r1
sys-apps/sandbox:    1.2.20_alpha2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.7.9-r1, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  6.2-r1
ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd"
CBUILD="i686-gentoo-freebsd6.2"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-gentoo-freebsd6.2"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks metadata-transfer parallel-fetch sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.ing.unibo.it/gentoo/              ftp://ftp.unina.it/pub/linux/distributions/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl avahi bash-completion berkdb bzip2 cli cracklib crypt dri fam ftp gdbm gnutls iconv java5 ldap libedit mailwrapper midi ncurses nls oss pam pcre ppds python radius readline reflection samba sasl session spl sqlite sqlite3 ssl tcpd threads unicode usb x86-fbsd xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="FreeBSD" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="BSD" VIDEO_CARDS="apm ark chips cirrus cyrix dummy i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis tga trident tseng vga via vmware"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Davide Pesavento gentoo-dev 2007-09-08 18:55:49 UTC
Created attachment 130361 [details, diff]
aio.c.patch

This patch plus this one -> https://bugzilla.samba.org/attachment.cgi?id=1338 should fix compilation on fbsd without breaking other platforms.
Comment 2 Dmitri Bogomolov 2009-05-29 14:15:24 UTC
Currently net-fs/samba-3.0.34 fails on FreeBSD Gentoo 6.2-r5 with same error. There is a patch in freebsd's port, but it doesn't help.
Comment 3 Dmitri Bogomolov 2009-05-29 14:22:07 UTC
Created attachment 192888 [details]
build log
Comment 4 Dmitri Bogomolov 2009-05-29 14:23:35 UTC
Created attachment 192891 [details]
emerge --info
Comment 5 Dmitri Bogomolov 2009-05-29 14:27:53 UTC
Created attachment 192894 [details, diff]
combined patch-configure.in and patch-smbd_aio.c from freebsd's port

This patches still present in latest port here http://www.freebsd.org/cgi/cvsweb.cgi/ports/net/samba3/files/ , but applying this does nothing.