Opened 16 years ago

Last modified 16 years ago

#19335 closed defect

build cgit fails on missing libiconv Mac OS X 10.4 Tiger — at Version 1

Reported by: vulcan_@… Owned by: sfiera@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: cgit

Description (last modified by skymoo (Adam Mercer))

i am using Porticus to install git and cgit on my macbook. see attached file for system info dump the cgit install fails i see this in the log

/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
_libiconv
_libiconv_close
_libiconv_open
collect2: ld returned 1 exit status
make: *** [cgit] Error 1

so i know it is missing the libiconv

i look at the Makefile and see

ifdef NEEDS_LIBICONV
        EXTLIBS += -liconv
endif

so i define

NEEDS_LIBICONV = yes

at the top of the Makefile and rerun the make install DESTROOT=blah blah and it works. back to porticus to retry the cgit install .. now it fails because there is no cgitrc file in the destroot dir I hand edit a cgitrc based on the cgitrc.in.txt and restart the install in porticus it works

Change History (3)

Changed 16 years ago by vulcan_@…

Attachment: cgit build.rtf added

partial logfile showing problem

Changed 16 years ago by vulcan_@…

Attachment: cgit solved.txt added

showing how i changed the Makefile to work

comment:1 Changed 16 years ago by skymoo (Adam Mercer)

Description: modified (diff)
Owner: changed from macports-tickets@… to sfiera@…
Port: cgit added
Note: See TracTickets for help on using tickets.