New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #16718 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

objc_encoding.m does not compile

Reported by: milosh@… Owned by: toby@…
Priority: Normal Milestone: MacPorts 1.7.0
Component: base Version: 1.7.0
Keywords: Cc:
Port:

Description (last modified by blb@…) (diff)

compiling macports trunk fails with

objc_encoding.m:45:20: warning: ctypes.h: No such file or directory
objc_encoding.m: In function ‘objc_to_tclobj’:
objc_encoding.m:59: error: ‘intptr_t’ undeclared (first use in this function)
objc_encoding.m:59: error: (Each undeclared identifier is reported only once
objc_encoding.m:59: error: for each function it appears in.)
objc_encoding.m:59: error: expected ‘)’ before ‘val’
make: *** [objc_encoding.o] Error 1

Regression caused by r40058. Note: uname -a Linux 2.6.26-1-686 #1 SMP ... i686 GNU/Linux

Change History

comment:1 Changed 5 years ago by jmr@…

  • Owner changed from macports-tickets@… to toby@…

comment:2 Changed 5 years ago by blb@…

  • Description modified (diff)

Isn't intptr_t C99-only?

comment:3 Changed 5 years ago by toby@…

Linux?

comment:4 Changed 5 years ago by toby@…

Is it defined in a header on your system, perhaps stdint.h ? Seems like it'd be harmless enough to start including it. I only tested on 10.5/10.6

comment:5 Changed 5 years ago by milosh@…

Yep, adding a

#include <stdint.h>

makes intptr_t known.

comment:6 Changed 5 years ago by toby@…

  • Status changed from new to closed
  • Resolution set to fixed

Added #include <stdint.h> to objc_encoding.m and Pextlib.c in r40476

comment:7 Changed 5 years ago by toby@…

  • Milestone changed from MacPorts base bugs to MacPorts Future

Milestone MacPorts base bugs deleted

comment:8 Changed 4 years ago by jmr@…

  • Milestone changed from MacPorts Future to MacPorts 1.7.0
Note: See TracTickets for help on using tickets.