[MacPorts] #23303: procfs fails to compile under Snow Leopard
#23303: procfs fails to compile under Snow Leopard ------------------------------------------+--------------------------------- Reporter: hans.ekkehard.plesser@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: procfs ------------------------------------------+--------------------------------- procfs fails to compile under Snow Leopard (OSX 10.6) with several errors in procfs.cc. I get the following error messages: {{{ DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_procfs/work/procfs-2.0" && /usr/bin/make -j2 all' g++ -c -Wall -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 -O -g -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include -o procfs.o procfs.cc procfs.cc: In function 'kern_return_t sms_getOrientation_hardware_apple(MotionSensorData_t*)': procfs.cc:103: error: 'IOConnectMethodStructureIStructureO' was not declared in this scope }}} {{{ procfs.cc: In function 'int procfs_open_proc__windows__identify(procfs_dispatcher_entry*, const char**, const char*, fuse_file_info*)': procfs.cc:1234: error: jump to label 'bail' procfs.cc:1226: error: from here procfs.cc:1228: error: crosses initialization of 'int npid' procfs.cc: In function 'int procfs_read_default_file_finder_info(procfs_dispatcher_entry*, const char**, char*, size_t, off_t, fuse_file_info*)': procfs.cc:1918: warning: comparison between signed and unsigned integer expressions procfs.cc: In function 'int procfs_read_system__firmware__variables(procfs_dispatcher_entry*, const char**, char*, size_t, off_t, fuse_file_info*)': procfs.cc:1950: warning: comparison between signed and unsigned integer expressions procfs.cc:1955: error: jump to label 'done' procfs.cc:1944: error: from here procfs.cc:1947: error: crosses initialization of 'const UInt8* tmpbuf' }}} The complete debugging output is attached. My system is a fresh install with all current updates, i.e. OSX 10.6.2 and XCode 3.2.1. One thing I am a bit surprised about is that procfs seems to be built using MacOSX10.5.sdk. -- Ticket URL: <http://trac.macports.org/ticket/23303> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23303: procfs fails to compile under Snow Leopard ------------------------------------------+--------------------------------- Reporter: hans.ekkehard.plesser@… | Owner: eridius@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: procfs ------------------------------------------+--------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => eridius@… Comment: Please remember to cc the maintainer. -- Ticket URL: <http://trac.macports.org/ticket/23303#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23303: procfs fails to compile under Snow Leopard ------------------------------------------+--------------------------------- Reporter: hans.ekkehard.plesser@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: procfs ------------------------------------------+--------------------------------- Changes (by jmr@…): * owner: eridius@… => macports-tickets@… -- Ticket URL: <http://trac.macports.org/ticket/23303#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23303: procfs fails to compile under Snow Leopard ------------------------------------------+--------------------------------- Reporter: hans.ekkehard.plesser@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: procfs ------------------------------------------+--------------------------------- Comment(by hans.ekkehard.plesser@…): This error persists under OSX 10.6.4 with XCode 3.2.3, MacPorts version 1.9.1 and procfs version 2.0. I have identified the following issues: * The Makefile for procfs has `g++` hardcoded. Thus, procfs is compiled with the currently active compiler, not with the MacPorts default compiler as it should. * procfs code compiles only if I select g++ 4.0.1. With 4.2.1 (which should be used according to Macports rules) or 4.4 (which I commonly use), several issues occur: - g++ 4.4 barfs at `-arch` options and does not compile anything; - g++ 4.2 does not accept `goto` instructions crossing variable initializations (in functions `OPEN_HANDLER(proc__windows__identify)` and `READ_HANDLER(system__firmware__variables)` - the system calls `IOConnectMethodStructureIStructureO()` and `IOConnectMethodScalarIScalarO()` are not known when using g++ 4.2, even with the 10.5 SDK; they were deprecated for 10.5 and have been removed from 10.6, see [http://developer.apple.com/mac/library/documentation/Darwin/Conceptual/64bit... Apple Developer Documentation]; they are replaced by `IOConnectCallStructMethod()` and `IOConnectCallScalarMethod()`, but I feel out of my depth here and have not tried to adapt the code. * Using g++ 4.0.1, compilation goes through, but the resulting code cannot be linked against pcre, which has been built (properly) using 4.2.1. I hope someone who knows more about MacPorts and OSX internals can fix the Makefiles/Portfile to respect MacPorts conventions about using the default system compiler (ie 4.2.1 for 10.6) and fix those system calls. -- Ticket URL: <http://trac.macports.org/ticket/23303#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23303: procfs fails to compile under Snow Leopard -------------------------------------------+-------------------------------- Reporter: hans.ekkehard.plesser@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: wontfix | Keywords: Port: procfs | -------------------------------------------+-------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => wontfix Comment: This port was deleted in r83482. -- Ticket URL: <https://trac.macports.org/ticket/23303#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts