Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling for Snow Leopard #212

Open
startergo opened this issue May 13, 2024 · 0 comments
Open

Compiling for Snow Leopard #212

startergo opened this issue May 13, 2024 · 0 comments

Comments

@startergo
Copy link

startergo commented May 13, 2024

Is there anyway I can compile it for SL with Xcode 4.2 i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 or just the macserial.c?
tried even gcc5:

/opt/local/bin/gcc-mp-5 -o macserial macserial.c
Undefined symbols for architecture x86_64:
  "_main", referenced from:
      start in crt1.10.6.o
  "_IORegistryEntryCreateCFProperty", referenced from:
      _get_ioreg_entry in ccXk0B7T.o
  "_kIOMasterPortDefault", referenced from:
      _get_ioreg_entry in ccXk0B7T.o
  "_kCFAllocatorDefault", referenced from:
      _get_ioreg_entry in ccXk0B7T.o
  "_CFStringGetCStringPtr", referenced from:
      _get_ioreg_entry in ccXk0B7T.o
      _get_system_info in ccXk0B7T.o
  "_CFDataGetBytePtr", referenced from:
      _get_current_model in ccXk0B7T.o
      _get_system_info in ccXk0B7T.o
  "_pseudo_random_between", referenced from:
      _get_serial in ccXk0B7T.o
      _get_mlb in ccXk0B7T.o
  "_pseudo_random", referenced from:
      _get_production_year in ccXk0B7T.o
      _get_mlb in ccXk0B7T.o
  "_CFDataGetLength", referenced from:
      _get_current_model in ccXk0B7T.o
      _get_system_info in ccXk0B7T.o
  "_IORegistryEntryFromPath", referenced from:
      _get_ioreg_entry in ccXk0B7T.o
  "_IOObjectRelease", referenced from:
      _get_ioreg_entry in ccXk0B7T.o
  "_CFRelease", referenced from:
      _get_ioreg_entry in ccXk0B7T.o
      _get_current_model in ccXk0B7T.o
      _get_system_info in ccXk0B7T.o
  "___CFConstantStringClassReference", referenced from:
      CFString in ccXk0B7T.o
      CFString in ccXk0B7T.o
      CFString in ccXk0B7T.o
      CFString in ccXk0B7T.o
      CFString in ccXk0B7T.o
      CFString in ccXk0B7T.o
      CFString in ccXk0B7T.o
      ...
  "_CFStringGetTypeID", referenced from:
      _get_system_info in ccXk0B7T.o
  "_CFDataGetTypeID", referenced from:
      _get_current_model in ccXk0B7T.o
      _get_system_info in ccXk0B7T.o
  "_CFGetTypeID", referenced from:
      _get_ioreg_entry in ccXk0B7T.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant