Ticket #35883 (closed defect: fixed)
pidgin-encryption: #error "Only <glib.h> can be included directly."
| Reported by: | ailinca.marius@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.1.2 |
| Keywords: | Cc: | rsync@… | |
| Port: | pidgin-encryption |
Description (last modified by ryandesign@…) (diff)
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
comment:1 Changed 9 months ago by ryandesign@…
- Status changed from new to assigned
- Description modified (diff)
- Cc rsync@… added
- Summary changed from pidgin-encryption fails building to pidgin-encryption: #error "Only <glib.h> can be included directly."
- Owner changed from macports-tickets@… to ryandesign@…
- Port set to pidgin-encryption
Note: See
TracTickets for help on using
tickets.


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.