Bug 191904

Summary: kdm/backend/sessreg.c fails with incomplete struct/union/enum
Product: [Unmaintained] kdm Reporter: tropikhajma <tropikhajma>
Component: generalAssignee: kdm bugs tracker <kdm-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: patch

Description tropikhajma 2009-05-07 14:11:08 UTC
Version:           4.2.3 (using Devel)
Compiler:          Sun Studio 12 
OS:                Solaris
Installed from:    Compiled sources

building kdebase-workspace on opensolaris and Sun Studio12 fails with:
...
pkgbuild: "/export/home/test/packages/BUILD/kdebase-workspace-4.2.3/kdm/backend/sessreg.c", line 119: error: incomplete struct/union/enum lastlog: ll
pkgbuild: "/export/home/test/packages/BUILD/kdebase-workspace-4.2.3/kdm/backend/sessreg.c", line 286: error: undefined struct/union member: ll_time
pkgbuild: "/export/home/test/packages/BUILD/kdebase-workspace-4.2.3/kdm/backend/sessreg.c", line 287: error: undefined struct/union member: ll_line
pkgbuild: "/export/home/test/packages/BUILD/kdebase-workspace-4.2.3/kdm/backend/sessreg.c", line 287: error: improper member use: ll_line
pkgbuild: "/export/home/test/packages/BUILD/kdebase-workspace-4.2.3/kdm/backend/sessreg.c", line 287: warning: improper pointer/integer combination: arg #1
pkgbuild: "/export/home/test/packages/BUILD/kdebase-workspace-4.2.3/kdm/backend/sessreg.c", line 288: error: undefined struct/union member: ll_host
pkgbuild: "/export/home/test/packages/BUILD/kdebase-workspace-4.2.3/kdm/backend/sessreg.c", line 288: error: improper member use: ll_host
Comment 1 tropikhajma 2009-05-07 14:12:34 UTC
Created attachment 33429 [details]
patch

this patch comes from the kde-solaris project, author is probably adriaan de groot
it may be not universal, though, i cannot tell
Comment 2 Oswald Buddenhagen 2009-05-24 15:25:30 UTC
i don't understand where the error comes from.
config-kdm.h is included indirectly by dm.h => greet.h.
the check for lastlog.h is as straight-forward as it gets, so i have no idea why it would fail. please investigate and report back.
Comment 3 tropikhajma 2009-06-01 00:52:23 UTC
this seems to be a bug in the lastlog.h file provided in OpenSolaris. I've filed bug there http://defect.opensolaris.org/bz/show_bug.cgi?id=9245