Opened 15 years ago

Closed 14 years ago

#21684 closed defect (fixed)

Error building GDM / gdm-session-worker.c

Reported by: lefsky@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: snowleopard Cc: cavinsays@…, sgaragagghu@…, sawtdk@…, thedoobs@…, fabianacossavella@…
Port: gdm

Description (last modified by mf2k (Frank Schima))

While installing GDM, I received the following error related to the definition of a GdmSessionWorkerPrivate in gdm-session-worker.c

sudo port install gdm

--->  Computing dependencies for gdm
--->  Building gdm
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gdm/work/gdm-2.26.1" && /usr/bin/make -j2 all " returned error 2
Command output: gdm-session-worker.c: In function 'gdm_session_worker_constructor':
gdm-session-worker.c:2589: error: 'GdmSessionWorkerPrivate' has no member named 'server_address'
gdm-session-worker.c:2592: error: 'GdmSessionWorkerPrivate' has no member named 'connection'
gdm-session-worker.c:2592: error: 'GdmSessionWorkerPrivate' has no member named 'server_address'
gdm-session-worker.c:2593: error: 'GdmSessionWorkerPrivate' has no member named 'connection'
gdm-session-worker.c:2603: error: 'GdmSessionWorkerPrivate' has no member named 'connection'
gdm-session-worker.c:2604: error: 'GdmSessionWorkerPrivate' has no member named 'connection'
gdm-session-worker.c:2606: error: 'GdmSessionWorkerPrivate' has no member named 'connection'
gdm-session-worker.c: In function 'gdm_session_worker_init':
gdm-session-worker.c:2640: error: 'GdmSessionWorkerPrivate' has no member named 'environment'
gdm-session-worker.c: In function 'gdm_session_worker_unwatch_child':
gdm-session-worker.c:2649: error: 'GdmSessionWorkerPrivate' has no member named 'child_watch_id'
gdm-session-worker.c:2652: error: 'GdmSessionWorkerPrivate' has no member named 'child_watch_id'
gdm-session-worker.c:2653: error: 'GdmSessionWorkerPrivate' has no member named 'child_watch_id'
gdm-session-worker.c: In function 'gdm_session_worker_finalize':
gdm-session-worker.c:2671: error: 'GdmSessionWorkerPrivate' has no member named 'username'
gdm-session-worker.c:2672: error: 'GdmSessionWorkerPrivate' has no member named 'username'
gdm-session-worker.c:2673: error: 'GdmSessionWorkerPrivate' has no member named 'username'
gdm-session-worker.c:2676: error: 'GdmSessionWorkerPrivate' has no member named 'arguments'
gdm-session-worker.c:2677: error: 'GdmSessionWorkerPrivate' has no member named 'arguments'
gdm-session-worker.c:2678: error: 'GdmSessionWorkerPrivate' has no member named 'arguments'
gdm-session-worker.c:2681: error: 'GdmSessionWorkerPrivate' has no member named 'environment'
gdm-session-worker.c:2682: error: 'GdmSessionWorkerPrivate' has no member named 'environment'
gdm-session-worker.c:2683: error: 'GdmSessionWorkerPrivate' has no member named 'environment'
make[3]: *** [gdm-session-worker.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/test-session.Tpo .deps/test-session.Po
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Attachments (1)

gdmdebug.txt (217.7 KB) - added by cavinsays@… 15 years ago.

Download all attachments as: .zip

Change History (16)

comment:1 Changed 15 years ago by lefsky@…

Cc: lefsky@… added

Cc Me!

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Cc: lefsky@… removed
Description: modified (diff)
Keywords: gdm removed
Owner: changed from macports-tickets@… to devans@…

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Needs debug output.

comment:4 Changed 15 years ago by jmroot (Joshua Root)

According to someone on the mailing list it's just a matter of including <pam/pam_appl.h> vs <security/pam_appl.h>.

Changed 15 years ago by cavinsays@…

Attachment: gdmdebug.txt added

comment:5 Changed 15 years ago by cavinsays@…

Cc: cavinsays@… added

Cc Me!

comment:6 Changed 15 years ago by sgaragagghu@…

Cc: sgaragagghu@… added

Cc Me!

comment:7 in reply to:  4 ; Changed 15 years ago by sawtdk@…

Replying to jmr@…:

According to someone on the mailing list it's just a matter of including <pam/pam_appl.h> vs <security/pam_appl.h>.

Can you explain how you would do that??

comment:8 Changed 15 years ago by sawtdk@…

Cc: sawtdk@… added

Cc Me!

comment:9 in reply to:  7 ; Changed 15 years ago by pope (K. Adam Christensen)

Replying to sawtdk@…:

Replying to jmr@…:

According to someone on the mailing list it's just a matter of including <pam/pam_appl.h> vs <security/pam_appl.h>.

Can you explain how you would do that??

So for 10.6, the correct header is <security/pam_appl.h>. However, a couple of patch files with the gdm are changing security/pam_appl.h to pam/appl.h to make it work with 10.5. I don't know what the right solution is other than to conditionally set what the patch files should be between OSes, but I just created a copy of the gdm port as a local project with my changes. It's ugly, but it worked for me to just get it done.

comment:10 in reply to:  9 ; Changed 15 years ago by sawtdk@…

Replying to pope@…:

Replying to sawtdk@…:

Replying to jmr@…:

According to someone on the mailing list it's just a matter of including <pam/pam_appl.h> vs <security/pam_appl.h>.

Can you explain how you would do that??

So for 10.6, the correct header is <security/pam_appl.h>. However, a couple of patch files with the gdm are changing security/pam_appl.h to pam/appl.h to make it work with 10.5. I don't know what the right solution is other than to conditionally set what the patch files should be between OSes, but I just created a copy of the gdm port as a local project with my changes. It's ugly, but it worked for me to just get it done.

Ahh it worked! I searched for the gdm-session-worker.c file; and changed the line " #include <pam/pam_appl.h> " to " #include <security/pam_appl.h> "

comment:11 Changed 15 years ago by sgaragagghu@…

yes, it works

comment:12 Changed 15 years ago by thedoobs@…

Cc: thedoobs@… added

Cc Me!

comment:13 in reply to:  10 Changed 15 years ago by fabianacossavella@…

Replying to sawtdk@…:

Replying to pope@…:

Replying to sawtdk@…:

Replying to jmr@…:

According to someone on the mailing list it's just a matter of including <pam/pam_appl.h> vs <security/pam_appl.h>.

Can you explain how you would do that??

So for 10.6, the correct header is <security/pam_appl.h>. However, a couple of patch files with the gdm are changing security/pam_appl.h to pam/appl.h to make it work with 10.5. I don't know what the right solution is other than to conditionally set what the patch files should be between OSes, but I just created a copy of the gdm port as a local project with my changes. It's ugly, but it worked for me to just get it done.

Ahh it worked! I searched for the gdm-session-worker.c file; and changed the line " #include <pam/pam_appl.h> " to " #include <security/pam_appl.h> "

Hi, I have the same problem. Since I am not really an expert, where do I find this gdm-session-worker.c? I tried to locate it, but nothing happened.

Fabiana

comment:14 Changed 15 years ago by fabianacossavella@…

Cc: fabianacossavella@… added

Cc Me!

comment:15 Changed 14 years ago by jmroot (Joshua Root)

Keywords: snowleopard added
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.