Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#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)

main.log (17.6 KB) - added by ballapete (Peter "Pete" Dyballa) 8 years ago.

Download all attachments as: .zip

Change History (11)

Changed 8 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

comment:1 Changed 8 years ago by dbevans (David B. Evans)

Cc: khindenburg@… removed
Owner: set to kurthindenburg
Status: newassigned

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.

comment:2 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

In 6811f437/macports-ports:

moreutils: try to fix build on 10.6 remove is_utf8

see #53359

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 Changed 8 years ago by ballapete (Peter "Pete" Dyballa)

moreutils 0.60_0 built!

comment:6 in reply to:  5 ; Changed 8 years ago by neverpanic (Clemens Lang)

Replying to ballapete:

moreutils 0.60_0 built!

So this can be closed?

comment:7 in reply to:  6 Changed 8 years ago by ballapete (Peter "Pete" Dyballa)

Replying to neverpanic:

So this can be closed?

IMO: Yes!

comment:8 Changed 8 years ago by neverpanic (Clemens Lang)

Resolution: worksforme
Status: assignedclosed

Closing as requested.

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

In 439de2da5754c78f9764190f8d63ff56750622f0/macports-ports:

moreutils: Re-enable building on Leopard and Tiger

Building on Tiger was disabled because parallel failed to build.
Now that we no longer include parallel in moreutils, this is no
longer a problem.

See: #24279

No reason was given why building on Leopard was disabled in
1f118454893940ec44023e64246b3f9af5ade936. It builds fine for me
when the Snow Leopard patch is added.

See: #53359

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

In 23ce992b1499d4a50dfd9dda3d0b9b47ba3a091c/macports-ports:

moreutils: Don't exclude isutf8 on Snow Leopard and earlier

See: #53359

Note: See TracTickets for help on using tickets.