New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21684 (closed defect: fixed)

Opened 2 years ago

Last modified 21 months ago

Error building GDM / gdm-session-worker.c

Reported by: lefsky@… Owned by: devans@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: snowleopard Cc: cavinsays@…, sgaragagghu@…, sawtdk@…, thedoobs@…, fabianacossavella@…
Port: gdm

Description (last modified by macsforever2000@…) (diff)

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

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

Change History

  Changed 2 years ago by lefsky@…

  • cc lefsky@… added

Cc Me!

  Changed 2 years ago by macsforever2000@…

  • owner changed from macports-tickets@… to devans@…
  • cc lefsky@… removed
  • description modified (diff)
  • keywords gdm removed

  Changed 2 years ago by jmr@…

Needs debug output.

follow-up: ↓ 7   Changed 2 years ago by jmr@…

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

Changed 2 years ago by cavinsays@…

  Changed 2 years ago by cavinsays@…

  • cc cavinsays@… added

Cc Me!

  Changed 2 years ago by sgaragagghu@…

  • cc sgaragagghu@… added

Cc Me!

in reply to: ↑ 4 ; follow-up: ↓ 9   Changed 2 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??

  Changed 2 years ago by sawtdk@…

  • cc sawtdk@… added

Cc Me!

in reply to: ↑ 7 ; follow-up: ↓ 10   Changed 2 years ago by 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.

in reply to: ↑ 9 ; follow-up: ↓ 13   Changed 2 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> "

  Changed 2 years ago by sgaragagghu@…

yes, it works

  Changed 22 months ago by thedoobs@…

  • cc thedoobs@… added

Cc Me!

in reply to: ↑ 10   Changed 22 months 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

  Changed 22 months ago by fabianacossavella@…

  • cc fabianacossavella@… added

Cc Me!

  Changed 21 months ago by jmr@…

  • status changed from new to closed
  • keywords snowleopard added
  • resolution set to fixed
Note: See TracTickets for help on using tickets.