| Summary: | x11-apps/sessreg-1.0.2 fix for missing declaration on Gentoo/FreeBSD | ||
|---|---|---|---|
| Product: | Gentoo/Alt | Reporter: | MT <toffanin.mauro> |
| Component: | FreeBSD | Assignee: | 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 |
||
Created attachment 122272 [details, diff]
sessreg-1.0.2-fbsd.patch
Created attachment 122279 [details, diff]
sessreg-1.0.2-fbsd.patch
a more portable source code (as required by @lavajoe)
Created attachment 122285 [details, diff]
sessreg-1.0.2.ebuild
ebuild incorporating Toffanin's patch.
This now builds on x86 & x85-fbsd. Thanks Toffanin!
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 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. Err, this is actually a duplicate. Duplicate. *** This bug has been marked as a duplicate of bug 157916 *** |
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