Package: gentoo
Severity: important
Tags: patch

Hi,

currently your package FTBFS on GNU/kFreeBSD with the following error:
> gcc  -Wall -Wmissing-declarations -Wmissing-prototypes 
> -Werror-implicit-function-declaration -O2 -I/usr/include/gtk-1.2 
> -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I../widgets 
> -DPATH_CFG=\"/etc\" -DPATH_GRC=\"$HOME/\" 
> -DPATH_ICN=\"/usr/share/gentoo/icons\" -DLOCALEDIR=\"/usr/share/locale\"   -o 
> gentoo   buttons.o buttonlayout.o cfg_buttons.o cfg_buttonlayout.o 
> cfg_cmdcfg.o cfg_cmdseq.o cfg_controls.o cfg_dialogs.o cfg_dirpane.o 
> cfg_errors.o cfg_menus.o cfg_mount.o cfg_paths.o cfg_styles.o cfg_types.o 
> cfg_windows.o children.o cmd_about.o cmd_activate.o cmd_chmod.o cmd_chown.o 
> cmd_configure.o cmd_copy.o cmd_copyas.o cmd_delete.o cmd_direnter.o 
> cmd_dirrescan.o cmd_dpfocus.o cmd_dpfocusisrch.o cmd_dpmisc.o cmd_file.o 
> cmd_generic.o cmd_getsize.o cmd_info.o cmd_join.o cmd_menupopup.o cmd_mkdir.o 
> cmd_move.o cmd_moveas.o cmd_parent.o cmd_quit.o cmd_rename.o cmd_renamere.o 
> cmd_renameseq.o cmd_run.o cmd_select.o cmd_split.o cmd_swap.o cmd_symlink.o 
> cmd_viewtext.o cmdarg.o cmdgr!
 ab.o cmdparse.o cmdseq.o cmdseq_config.o cmdseq_dialog.o color_dialog.o 
colorutil.o configure.o controls.o dialog.o dirhistory.o dirpane.o dpformat.o 
errors.o events.o file.o fileutil.o gfam.o gentoo.o guiutil.o hash_dialog.o 
icon_dialog.o iconutil.o keyboard.o menus.o miscutil.o mntent_wrap.o mount.o 
options.o overwrite.o progress.o queue.o sizeutil.o strutil.o style_dialog.o 
styles.o textview.o types.o userinfo.o window.o xmlutil.o  
../widgets/libwidgets.a -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule 
-lglib -ldl -lXi -lXext -lX11 -lm  -lfam 
> types.o: In function `typ_identify_end':
> types.c:(.text+0x61d): warning: the use of `tmpnam' is dangerous, better use 
> `mkstemp'
> mount.o: In function `dir_is_mounted':
> mount.c:(.text+0x3e4): undefined reference to `mne_setmntent'
> mount.c:(.text+0x404): undefined reference to `mne_getmntent'
> mount.c:(.text+0x46c): undefined reference to `mne_endmntent'
> mount.c:(.text+0x493): undefined reference to `mne_endmntent'
> mount.o: In function `mnt_init':
> mount.c:(.text+0x7e4): undefined reference to `mne_setmntent'
> mount.c:(.text+0x7f4): undefined reference to `mne_getmntent'
> mount.c:(.text+0x846): undefined reference to `mne_getmntent'
> mount.c:(.text+0x854): undefined reference to `mne_endmntent'
> collect2: ld returned 1 exit status
> make[2]: *** [gentoo] Error 1

Full build logs are available at
<http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=gentoo>.

Please find attached a tiny patch to fix this.

Cheers,

-- 
Cyril Brulebois
--- gentoo-0.11.55/src/mntent_wrap.c	2007-03-11 19:00:03.294218000 +0100
+++ gentoo-0.11.55/src/mntent_wrap.c	2007-03-11 19:00:32.000000000 +0100
@@ -24,7 +24,7 @@
 
 /* ----------------------------------------------------------------------------------------- */
 
-#if defined __CYGWIN__ || defined __linux__ || defined __sgi	/* Linux and IRIX implementation. */
+#if defined __CYGWIN__ || defined __linux__ || defined __sgi || defined __FreeBSD_kernel__	/* Linux and IRIX implementation. */
 
 #include <mntent.h>
 

Reply via email to