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

Bug 182264

Summary: x11-apps/sessreg-1.0.2 fix for missing declaration on Gentoo/FreeBSD
Product: Gentoo/Alt Reporter: MT <toffanin.mauro>
Component: FreeBSDAssignee: Gentoo X packagers <x11>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bsd+disabled
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: sessreg-1.0.2-fbsd.patch
sessreg-1.0.2-fbsd.patch
sessreg-1.0.2.ebuild

Description MT 2007-06-16 21:58:42 UTC
sessionreg compilation fail on g/fbsd:

gmake  all-am
gmake[1]: Entering directory `/var/tmp/portage/x11-apps/sessreg-1.0.2/work/sessreg-1.0.2'
if i686-gentoo-freebsd6.2-gcc -DHAVE_CONFIG_H -I. -I. -I.    -D_THREAD_SAFE   -march=i486 -O2 -pipe -MT sessreg-sessreg.o -MD -MP -MF ".deps/sessreg-sessreg.Tpo" -c -o sessreg-sessreg.o `test -f 'sessreg.c' || echo './'`sessreg.c; \
        then mv -f ".deps/sessreg-sessreg.Tpo" ".deps/sessreg-sessreg.Po"; else rm -f ".deps/sessreg-sessreg.Tpo"; exit 1; fi
In file included from sessreg.h:59,
                 from sessreg.c:77:
/usr/include/utmp.h:54: error: expected specifier-qualifier-list before 'int32_t'
/usr/include/utmp.h:63: error: expected specifier-qualifier-list before 'int32_t'
sessreg.c: In function 'set_utmp':
sessreg.c:421: error: 'struct utmp' has no member named 'ut_time'
gmake[1]: *** [sessreg-sessreg.o] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/x11-apps/sessreg-1.0.2/work/sessreg-1.0.2'
gmake: *** [all] Error 2

!!! ERROR: x11-apps/sessreg-1.0.2 failed.
Call stack:
  ebuild.sh, line 1629:   Called dyn_compile
  ebuild.sh, line 975:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  ebuild.sh, line 1314:   Called x-modular_src_compile
  x-modular.eclass, line 342:   Called x-modular_src_make
  x-modular.eclass, line 337:   Called die


due to the missing declaration for <sys/type.h> into sessreg.h
attached a patch to fix the problem.
as AT i have tested the ebuild and compile/work correctly.

Reproducible: Always
Comment 1 MT 2007-06-16 21:59:13 UTC
Created attachment 122272 [details, diff]
sessreg-1.0.2-fbsd.patch
Comment 2 MT 2007-06-16 22:41:00 UTC
Created attachment 122279 [details, diff]
sessreg-1.0.2-fbsd.patch

a more portable source code (as required by @lavajoe)
Comment 3 Joe Peterson (RETIRED) gentoo-dev 2007-06-17 00:02:05 UTC
Created attachment 122285 [details, diff]
sessreg-1.0.2.ebuild

ebuild incorporating Toffanin's patch.

This now builds on x86 & x85-fbsd.  Thanks Toffanin!
Comment 4 Joe Peterson (RETIRED) gentoo-dev 2007-06-17 00:05:15 UTC
Hi X11 herd,

The attached patch submitted by Toffanin enables this version to compile on Gentoo/FreeBSD.  Can you send this upstream and also check it in?  Let me know if you want me to check it in instead.

Thanks, Joe
Comment 5 Joshua Baergen (RETIRED) gentoo-dev 2007-06-18 00:36:36 UTC
Toffanin, could you please file this upstream at https://bugs.freedesktop.org with your patch?  We'll include it here as soon as it's accepted upstream.
Comment 6 Joshua Baergen (RETIRED) gentoo-dev 2007-06-18 00:38:03 UTC
Err, this is actually a duplicate.
Comment 7 Joshua Baergen (RETIRED) gentoo-dev 2007-06-18 00:38:25 UTC
Duplicate.

*** This bug has been marked as a duplicate of bug 157916 ***