Opened 12 years ago

Closed 12 years ago

#35883 closed defect (fixed)

pidgin-encryption: #error "Only <glib.h> can be included directly."

Reported by: ailinca.marius@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: rsync@…
Port: pidgin-encryption

Description (last modified by ryandesign (Ryan Carsten Schmidt))

pidgin-encryption failes building with the message:

#error "Only <glib.h> can be included directly."

Manually editing rsa_nss.c and modifiying:

- #include "glib/gmain.h" to:
+ #include "glib.h"

solves the issue.

Change History (2)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: rsync@… added
Description: modified (diff)
Owner: changed from macports-tickets@… to ryandesign@…
Port: pidgin-encryption added
Status: newassigned
Summary: pidgin-encryption fails buildingpidgin-encryption: #error "Only <glib.h> can be included directly."

Yes this is the usual manifestation of glib 2.32+ incompatibility we've seen in many other ports already, and what you've suggested is basically the way it should be fixed.

The script I usually use to fix these errors did not find anything to fix in pidgin-encryption, because this include is written improperly using "quotation marks" when system headers should be included with <angle brackets> instead.

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.