Opened 12 years ago

Closed 11 years ago

#35879 closed defect (wontfix)

gnuplot: workaround for non-C99-compliant compiler (_Bool)

Reported by: mojca (Mojca Miklavec) Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: one2001boy@…
Port: gnuplot

Description

Following a report on the mailing list (gnuplot doesn't compile on Mac OS X 10.6 with Xcode 4.2 which doesn't have C99-compliant compiler) here's a patch that should solve the problem for that platform (and I hope that it will be applied upstream).

If anyone else was bitten by this, please report.

In file included from ./plot.h:46,

                 from wxterminal/wxt_gui.h:113,
                 from wxterminal/wxt_gui.cpp:96:
./mouse.h:189: error: variable or field 'set_ruler' declared void
./mouse.h:189: error: '_Bool' was not declared in this scope
./mouse.h:189: error: expected primary-expression before 'int'
./mouse.h:189: error: expected primary-expression before 'int'
./mouse.h:197: error: '_Bool' has not been declared

In file included from wxterminal/wxt_gui.h:113,
                 from wxterminal/wxt_gui.cpp:96:
./plot.h:53: error: '_Bool' does not name a type
./plot.h:54: error: '_Bool' does not name a type
./plot.h:55: error: '_Bool' does not name a type

https://sourceforge.net/tracker/index.php?func=detail&aid=3562307&group_id=2055&atid=302055

Disclaimer: I'm not able to test this patch since I don't have access to old Xcode on 10.6.

Attachments (1)

gnuplot-bool.patch (1.2 KB) - added by mojca (Mojca Miklavec) 12 years ago.
Patch for _Bool on 10.6 with Xcode 4.2

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by mojca (Mojca Miklavec)

Attachment: gnuplot-bool.patch added

Patch for _Bool on 10.6 with Xcode 4.2

comment:1 Changed 11 years ago by mojca (Mojca Miklavec)

Owner: changed from macports-tickets@… to mojca@…

comment:2 Changed 11 years ago by mojca (Mojca Miklavec)

Resolution: wontfix
Status: newclosed

I'm closing this ticket. If anyone happen to be bitten by this problem and is able to test the patch, please speak up. If nobody has a problem with this, it doesn't make sense to patch anything.

Note: See TracTickets for help on using tickets.