macosforge / darwinbuild

Darwinbuild is a collection of tools that assist compilation of the many projects contained in Darwin, the open source base of Apple's macOS operating system.
https://macosforge.github.io/darwinbuild/
Other
125 stars 54 forks source link

gdb has a dependency on Carbon #59

Open macosforgebot opened 15 years ago

macosforgebot commented 15 years ago

stuart@… originally submitted this as ticket:61


The file gdb/gdb-768/src/gdb/macosx/macosx-tdep.c attempts to include <Carbon/Carbon.h> at line 454. (See attached log.)

Files.h from CarbonCore provides some of the symbols needed, but the others are drawn from Apple Events and Launch Services. The code in question supports gdb's "open" command. It queries LS for the application used to open a file of the type provided, and then opens that file.

Throwing an #if 0 ... #endif around lines 454 to ~672 and defining a dummy open_file() function allows the code to compile (but then fails to link due to "-framework CoreFoundation" not being passed to ld... but that's beside the point.)

macosforgebot commented 15 years ago

stuart@… originally submitted this as attachment:gdb-768.log~2.zip:⁠ticket:61


Log of "darwinbuild gdb" showing errors.