[MacPorts] #33988: glib2: Undefined symbols: .objc_class_name_NSArray etc.
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: glib2 -------------------------------------+-------------------------------------- {{{ :info:build /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols: :info:build .objc_class_name_NSArray :info:build .objc_class_name_NSAutoreleasePool :info:build .objc_class_name_NSData :info:build .objc_class_name_NSDictionary :info:build .objc_class_name_NSMutableArray :info:build .objc_class_name_NSMutableDictionary :info:build .objc_class_name_NSNumber :info:build .objc_class_name_NSString :info:build .objc_class_name_NSUserDefaults :info:build _objc_msgSend :info:build _objc_msgSend_fpret :info:build collect2: ld returned 1 exit status }}} -- Ticket URL: <https://trac.macports.org/ticket/33988> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: glib2 -------------------------------------+-------------------------------------- Comment(by ryandesign@…): This log is from i386 but I see the same issue on ppc. -- Ticket URL: <https://trac.macports.org/ticket/33988#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: glib2 -------------------------------------+-------------------------------------- Comment(by jeremyhu@…): Try with configure.compiler=apple-gcc-4.2 with port:ld64 installed... -- Ticket URL: <https://trac.macports.org/ticket/33988#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: glib2 -------------------------------------+-------------------------------------- Comment(by Peter_Dyballa@…): Replying to [comment:2 jeremyhu@…]:
Try with configure.compiler=apple-gcc-4.2 with port:ld64 installed...
This made it! But be aware that gdk-pixbuf2 2.24.0_1 now needs {{{ checking for GLIB - version >= 2.27.2... no }}} which is not recorded in gdk-pixbuf2 2.24.0_1. (Bug report #http://trac.macports.org/ticket/33994.) -- Ticket URL: <https://trac.macports.org/ticket/33988#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: glib2 -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Replying to [comment:2 jeremyhu@…]:
Try with configure.compiler=apple-gcc-4.2 with port:ld64 installed...
I was afraid you were going to suggest that. If that ends up being necessary, then there really is no reason not to make apple-gcc-4.2 the default compiler for everything on Tiger, as we've been discussing separately, since glib2 is a dependency of pkg-config, and pkg-config is a dependency (indirectly at least) of probably at least half of the other ports in MacPorts. -- Ticket URL: <https://trac.macports.org/ticket/33988#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: glib2 -------------------------------------+-------------------------------------- Comment(by ultrajoe@…): Replying to [comment:2 jeremyhu@…]:
Try with configure.compiler=apple-gcc-4.2 with port:ld64 installed...
Unacceptable. apple-gcc-4.2 does not build on PPC Tiger, claiming it needs i86 capabilities that are beyond XCode 4.0's capabilities (at least as far as I know). I have not tried ld64, as I didn't know about it. I am well aware that Tiger & PPC are no longer supported by anybody except those of us who still need it. If that's the case, then I suggest an update to MacPorts to tell us "old-timers" to FO on any invocation of any command other than "echo". -- Ticket URL: <https://trac.macports.org/ticket/33988#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: glib2 -------------------------------------+-------------------------------------- Changes (by ryandesign@…): * cc: ultrajoe@… (added) Comment: Replying to [comment:6 ultrajoe@…]:
apple-gcc-4.2 does not build on PPC Tiger, claiming it needs i86 capabilities that are beyond XCode 4.0's capabilities (at least as far as I know). I have not tried ld64, as I didn't know about it.
apple-gcc42 builds on PowerPC Tiger for myself and Peter, as reported in #33939, so please do install ld64, clean apple-gcc42 and try again, and file a new ticket if that still doesn't work. Jeremy has been very helpful in resolving Tiger build issues for apple-gcc42 and many other ports recently, some of which have been broken for years, so I'm very grateful to him for his help in making MacPorts more useful on Tiger again. The above idea of just using apple-gcc42 and ld64 for all ports on Tiger is also designed to increase the number of ports that can be successfully built on Tiger. There may (continue to) be some things broken on Tiger for a short while as we work out what we want to do for Tiger and how best to do it. If things are working for you on Tiger, you may want to hold off on upgrading any ports on Tiger for the time being until it's sorted out. -- Ticket URL: <https://trac.macports.org/ticket/33988#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: glib2 -------------------------------------+-------------------------------------- Comment(by ultrajoe@…): Replying to [comment:7 ryandesign@…]:
Replying to [comment:6 ultrajoe@…]:
apple-gcc-4.2 does not build on PPC Tiger, claiming it needs i86 capabilities that are beyond XCode 4.0's capabilities (at least as far as I know). I have not tried ld64, as I didn't know about it.
apple-gcc42 builds on PowerPC Tiger for myself and Peter, as reported in #33939, so please do install ld64, clean apple-gcc42 and try again, and file a new ticket if that still doesn't work.
OK, I must've gone dopey somewhere … or my interrupting the build of gcc-42 caused more troubles than I had anticipated. Built & installed ld64 and apple-gcc42 just fine overnight. Sorry for the panic. Trying the build of glib2 as above as I type this. -- Ticket URL: <https://trac.macports.org/ticket/33988#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: glib2 -------------------------------------+-------------------------------------- Comment(by Peter_Dyballa@…): Replying to [comment:2 jeremyhu@…]:
Try with configure.compiler=apple-gcc-4.2 with port:ld64 installed...
With the new apple-gcc42 and ld64 I have now on PPC Tiger/Mac OS X 10.4.11 installed {{{ glib2 @2.32.1_0 (active) gdk-pixbuf2 @2.24.0_1 (active) }}} so this bug can be closed. -- Ticket URL: <https://trac.macports.org/ticket/33988#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: glib2 -------------------------------------+-------------------------------------- Comment(by ryandesign@…): I don't think the bug can be closed until users who don't have apple-gcc42 or ld64 installed can successfully install glib2 on Tiger again, either by making glib2 compatible with the system compiler again, or by ensuring that apple-gcc42 and ld64 are automatically installed for the user. -- Ticket URL: <https://trac.macports.org/ticket/33988#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: glib2 -------------------------------------+-------------------------------------- Comment(by xizzix22@…): Hi, I'm very new to MacPorts and am having this problem as well. If I'm reading this right, installing ld64 and cleaning apple-gcc42 fixes this..? How exactly do I do this using the terminal? -- Ticket URL: <https://trac.macports.org/ticket/33988#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: glib2 -------------------------------------+-------------------------------------- Comment(by xizzix22@…): Replying to [comment:11 xizzix22@…]:
Hi, I'm very new to MacPorts and am having this problem as well. If I'm reading this right, installing ld64 and cleaning apple-gcc42 fixes this..? How exactly do I do this using the terminal?
Okay, I just found the guide here (I was directed to this thread directly by the person helping me troubleshoot). I think I can figure out the terminal code from that, but could someone please check it before I enter it? The code I came up with is: "sudo port install ld64" then "sudo port clean apple-gcc42" without quotes of course. Also I need to know if ld64 is a capital i or lowercase L. Any help would be appreciated! -- Ticket URL: <https://trac.macports.org/ticket/33988#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: glib2 -------------------------------------+-------------------------------------- Comment(by xizzix22@…): Er, sorry. What does the CC Me thing do? I clicked it by accident then undid it, it seems to have added replies here. My bad. -- Ticket URL: <https://trac.macports.org/ticket/33988#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: glib2 -------------------------------------+-------------------------------------- Changes (by ryandesign@…): * cc: xizzix22@… (added) Comment: Welcome. This should work: {{{ sudo port clean ld64 apple-gcc42 glib2 sudo port install ld64 apple-gcc42 sudo port install glib2 configure.compiler=apple-gcc-4.2 }}} The l in ld64 is a lowercase L. You can just copy and paste the above lines into your terminal if you like. The Cc Me button adds you to the Cc list for this ticket, or removes you from it. I'm adding you to it again so you receive an email about this message. -- Ticket URL: <https://trac.macports.org/ticket/33988#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: glib2 -------------------------------------+-------------------------------------- Comment(by xizzix22@…): Thank you! That worked! -- Ticket URL: <https://trac.macports.org/ticket/33988#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33988: glib2: Undefined symbols: .objc_class_name_NSArray etc. ---------------------------+-------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: fixed | Keywords: tiger Port: glib2 | ---------------------------+-------------------------- Changes (by jeremyhu@…): * status: new => closed * resolution: => fixed Comment: It sounds like there is nothing left to do in this bug. Closing. -- Ticket URL: <https://trac.macports.org/ticket/33988#comment:19> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts