Bug 191904 - kdm/backend/sessreg.c fails with incomplete struct/union/enum
Summary: kdm/backend/sessreg.c fails with incomplete struct/union/enum
Status: RESOLVED NOT A BUG
Alias: None
Product: kdm
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: kdm bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-07 14:11 UTC by tropikhajma
Modified: 2009-06-01 01:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch (353 bytes, patch)
2009-05-07 14:12 UTC, tropikhajma
Details

Note You need to log in before you can comment on or make changes to this bug.
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