Ticket #12241 (closed defect: fixed)
BUG: odcctools: compilation gives error: ‘x86_THREAD_STATE64_COUNT’ was not declared in this scope
| Reported by: | software@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | Cc: | stephen@… | |
| Port: | odcctools |
Description (last modified by ryandesign@…) (diff)
port install odcctools
gives an error during build:
---> Building odcctools with target default Error: Target com.apple.build returned: shell command " cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.macports.org_dpupdate_dports_devel_odcctools/work/odcctools/odcctools" && make default " returned error 2
The error is caused by "make default". I'll attach the full log.
I did a port sync; port selfupdate to make sure the error was still there in the latest version.
Attachments
Change History
Changed 6 years ago by software@…
- Attachment odcctools_error.txt added
comment:1 Changed 6 years ago by Lars.Rasmusson@…
I got exactly the same error. Turns out I was using an old version of Xcode, 2.2.1, so I upgraded to a more recent one, 2.4.1, which solved the problem. I think that the 64 bit linking was added to Xcode around version 2.3, which explains why the header files etc. were messed up.
comment:2 Changed 6 years ago by nox@…
- Priority changed from Expected to Normal
- Version 1.4.42 deleted
- Summary changed from odcctools: compilation gives error: ‘x86_THREAD_STATE64_COUNT’ was not declared in this scope to BUG: odcctools: compilation gives error: ‘x86_THREAD_STATE64_COUNT’ was not declared in this scope
- Milestone set to Port Bugs
comment:3 Changed 6 years ago by mdickens@…
The file "/Developer/SDKs/MacOSX10.4u.sdk/usr/include/mach/i386/thread_status.h" needs to include the 64-bit thread stuff. This is not yet available in Xcode 2.3 (which is what's installed on the G4 Mac I'm compiling on), so I would guess the newer file came in 2.4 (from Apple: "The Xcode 2.4 release ... adds support for 64-bit Intel based Mac computers."). Upgrading to the latest (2.4.1 as of this writing) will get a working copy of that file.
You can get odcctools to compile under Xcode 2.3 by copying a 64-bit savvy version of thread_status.h (which I'll attach as a file here) into "work/odcctools/odcctools/include/mach/i386/". I'm sure there's a way to automate this in the Portfile, but I'll leave that to someone who knows more. - MLD
Changed 6 years ago by mdickens@…
- Attachment thread_status.h added
"thread_status.h" i386-64 replacement file from Xcode 2.4.1
comment:5 Changed 4 years ago by ryandesign@…
- Port set to odcctools
- Description modified (diff)
Don't forget WikiFormatting! :)


error log