#53359 closed defect (worksforme)
moreutils @0.60 does not build on Snow Leopard, Mac OS X 10.6.8, because of "Undefined symbols for architecture x86_64"
Reported by: | ballapete (Peter "Pete" Dyballa) | Owned by: | kurthindenburg (Kurt Hindenburg) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | Peter_Dyballa@… | |
Port: | moreutils |
Description
/usr/bin/llvm-gcc-4.2 -Os -arch x86_64 -c -o is_utf8.o is_utf8.c xmllint --noout --valid sponge.docbook /usr/bin/llvm-gcc-4.2 -Os -arch x86_64 -o isutf8 main.o is_utf8.o pod2man --center=" " --release="moreutils" vidir > vidir.1; pod2man --center=" " --release="moreutils" vipe > vipe.1; xmllint --noout --valid isutf8.docbook Undefined symbols for architecture x86_64: "_getline", referenced from: _is_utf8_readline in main.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[1]: *** [isutf8] Error 1 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_moreutils/moreutils/work/moreutils-0.60/is_utf8' make: *** [isutf8] Error 2 make: *** Waiting for unfinished jobs....
-lreadline
missing?
Attachments (1)
Change History (11)
Changed 8 years ago by ballapete (Peter "Pete" Dyballa)
comment:1 Changed 8 years ago by dbevans (David B. Evans)
Cc: | khindenburg@… removed |
---|---|
Owner: | set to kurthindenburg |
Status: | new → assigned |
comment:3 Changed 8 years ago by kencu (Ken)
Kurt, I think the fix is to replace the missing getline function in is_utf8.c
instead. I've done this on a number of other ports for 10.6.
I don't know if removing utf8 will work, but I don't think that's the way to go here.
I can do this over the next couple of days sometime -- I use 10.6 all day long. -- Ken
comment:4 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)
Ok, I'll commit any patches. I'm a little hesitate on spending a lot of time on old OS versions.
comment:5 follow-up: 6 Changed 8 years ago by ballapete (Peter "Pete" Dyballa)
moreutils 0.60_0 built!
comment:6 follow-up: 7 Changed 8 years ago by neverpanic (Clemens Lang)
comment:7 Changed 8 years ago by ballapete (Peter "Pete" Dyballa)
comment:8 Changed 8 years ago by neverpanic (Clemens Lang)
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
Closing as requested.
comment:9 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
comment:10 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Note: See
TracTickets for help on using
tickets.
getline is not available in the OS X system library for 10.6 and earlier. Typical fix is to supply a replacement function for those platforms.
See gnome-session/files/patch-gnome-session-check-accelerated-gl-helper.c.diff for an example.