Opened 13 years ago

Closed 13 years ago

#32553 closed defect (fixed)

libiconv: lib/utf8mac.h:30:33: fatal error: libkern/OSByteOrder.h: No such file or directory

Reported by: rudloff@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: linux Cc: ryandesign (Ryan Carsten Schmidt)
Port: libiconv

Description

libiconv won't build on Ubuntu:

/usr/bin/cc -O lib/genflags.c -o genflags
In file included from lib/converters.h:122:0,
                 from lib/genflags.c:34:
lib/utf8mac.h:30:33: fatal error: libkern/OSByteOrder.h: No such file or directory
compilation terminated.

It seems it tries to use some OSX only library.

Attachments (2)

main.log (105.1 KB) - added by rudloff@… 13 years ago.
main.2.log (108.6 KB) - added by rudloff@… 13 years ago.

Download all attachments as: .zip

Change History (10)

Changed 13 years ago by rudloff@…

Attachment: main.log added

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

Resolution: fixed
Status: newclosed

Does r88016 help?

comment:2 Changed 13 years ago by rudloff@…

Resolution: fixed
Status: closedreopened

I get another error now:

/bin/bash ../libtool --mode=compile /usr/bin/cc -I. -I. -I.. -I./.. -I../include -pipe -O2 -fvisibility=hidden  -DLIBDIR=\"/opt/local/lib\" -DBUILDING_LIBCHARSET -DBUILDING_DLL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/opt/local/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libcharset_set_relocation_prefix -Drelocate=libcharset_relocate -DHAVE_CONFIG_H -c ./relocatable.c
../libtool: line 555: CDPATH: command not found
../libtool: line 555: CDPATH: command not found
libtool: Version mismatch error.  This is libtool 2.4, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4
libtool: and run autoconf again.
make[2]: *** [localcharset.lo] Error 63
make[2]: *** Waiting for unfinished jobs....
libtool: Version mismatch error.  This is libtool 2.4, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4
libtool: and run autoconf again.
make[2]: *** [relocatable.lo] Error 63

Changed 13 years ago by rudloff@…

Attachment: main.2.log added

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: reopenedclosed

From the log:

:info:configure checking the name lister (/usr/bin/nm -B) interface... ./configure: line 6472: /usr/bin/grep: No such file or directory
:info:configure ./configure: line 9506: /usr/bin/sed: No such file or directory

You appear to be missing grep and sed. Added these dependencies in r88021.

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Actually no, that can't work, for two reasons. First, libiconv cannot depend on either the grep port or the gsed port, since both of them depend on gettext which depends on libiconv, so this would introduce a circular dependency which MacPorts cannot handle. Second, the libiconv port is specifically programmed to only use system versions of grep and sed in /usr/bin; see #30308 for why. So, sorry, you must provide a system implementation of sed and grep (and probably awk will be needed too, if not for libiconv, then for another port down the line). Undid r88021 in r88022.

comment:5 Changed 13 years ago by rudloff@…

Resolution: fixed
Status: closedreopened

I do have these but in /bin:

pierre@pierre-MacBook:~$ which sed
/bin/sed
pierre@pierre-MacBook:~$ which grep
/bin/grep

Should I add some symlinks in /usr/bin ?

comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

That ought to work. grep, sed and awk are in /usr/bin on OS X so that's where ports like libiconv that need to hardcode their locations (for reasons like #30308) are going to do it.

comment:7 Changed 13 years ago by rudloff@…

I have created the symlinks and the port builds fine. Thanks !

comment:8 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.