Opened 7 years ago

Closed 7 years ago

#54060 closed defect (fixed)

gss @1.0.3: Undefined symbols: _getline

Reported by: josephsacco Owned by: kencu (Ken)
Priority: Normal Milestone:
Component: ports Version:
Keywords: leopard snowleopard haspatch Cc: rlhamil
Port: gss

Description

gss does not build on Leopard or Snow Leopard because of getline(), which is called from gettrimline() in src/gss.c, is is not available in the OSX system library for 10.6 and earler.

A work-around is to replace the missing getline() function in gss.c. I "borrowed" code to do this from #53359 and created a patch file that allowed gss to build.

-Joseph

Attachments (2)

Portfile.diff (329 bytes) - added by josephsacco 7 years ago.
Portfile diff
patch-src-gss.diff (1.7 KB) - added by josephsacco 7 years ago.
patch to add getline() to src/gss.c

Download all attachments as: .zip

Change History (7)

Changed 7 years ago by josephsacco

Attachment: Portfile.diff added

Portfile diff

Changed 7 years ago by josephsacco

Attachment: patch-src-gss.diff added

patch to add getline() to src/gss.c

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

Keywords: leopard snowleopard haspatch added; gss Leopard Snow Leopard removed
Summary: gss-1.0.3 does not build on Leopard or Snow Leopardgss @1.0.3: Undefined symbols: _getline

The developers of gss should fix this.

The problem was reported to them here: http://lists.gnu.org/archive/html/help-gss/2017-04/msg00000.html

Perhaps you'd like to report your fix to them there as well.

comment:2 in reply to:  1 Changed 7 years ago by josephsacco

Replying to ryandesign:

The developers of gss should fix this.

The problem was reported to them here: http://lists.gnu.org/archive/html/help-gss/2017-04/msg00000.html

Perhaps you'd like to report your fix to them there as well.

Done...

-Joseph

comment:3 Changed 7 years ago by rlhamil

Cc: rlhamil added

comment:5 Changed 7 years ago by kencu (Ken)

Owner: set to kencu
Resolution: fixed
Status: newclosed

In 98b23d68bd007593ac7dc3affb43475e49329b39/macports-ports:

gss: fix error for missing getline()

add PortGroup snowleopard_fixes
closes: #54060

Note: See TracTickets for help on using tickets.