Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not build #58

Closed
kangjia opened this issue Jul 10, 2012 · 6 comments
Closed

can not build #58

kangjia opened this issue Jul 10, 2012 · 6 comments

Comments

@kangjia
Copy link

kangjia commented Jul 10, 2012

error message:
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_buf_write_bytes in fileio.o
_readfile in fileio.o
_my_iconv_open in mbyte.o
_string_convert_ext in mbyte.o
(maybe you meant: _my_iconv_open)
"_iconv_close", referenced from:
_buf_write in fileio.o
_readfile in fileio.o
_my_iconv_open in mbyte.o
_convert_setup_ext in mbyte.o
"_iconv_open", referenced from:
_my_iconv_open in mbyte.o
(maybe you meant: _my_iconv_open)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [Vim] Error 1

@alloy
Copy link
Owner

alloy commented Jul 10, 2012

Looks like you have an iconv installed which is build for 32bit. The system version is for 64bit too:

$ file /usr/lib/libiconv.2.4.0.dylib 
/usr/lib/libiconv.2.4.0.dylib: Mach-O universal binary with 2 architectures
/usr/lib/libiconv.2.4.0.dylib (for architecture x86_64):    Mach-O 64-bit dynamically linked shared library x86_64
/usr/lib/libiconv.2.4.0.dylib (for architecture i386):  Mach-O dynamically linked shared library i386

@kangjia
Copy link
Author

kangjia commented Jul 10, 2012

run this command, that is result.

kangjia$ file /usr/lib/libiconv.2.4.0.dylib 
/usr/lib/libiconv.2.4.0.dylib: Mach-O universal binary with 2 architectures
/usr/lib/libiconv.2.4.0.dylib (for architecture x86_64):    Mach-O 64-bit dynamically linked shared library x86_64
/usr/lib/libiconv.2.4.0.dylib (for architecture i386):  Mach-O dynamically linked shared library i386

@alloy
Copy link
Owner

alloy commented Jul 10, 2012

Right, because that’s the version that comes with the system :) However, the version that is being used while trying to build MacVim seems to be a different one which you installed yourself. Try finding other locations with: $ mdfind libiconv.

@alloy
Copy link
Owner

alloy commented Jul 10, 2012

You can probably also find it in the config.status file. (Not 100% sure one is created, but normally it should when using configure.)

@kangjia
Copy link
Author

kangjia commented Jul 10, 2012

oh , thank u . i have changed my .bashrc . now i installed success.: )

@kangjia kangjia closed this as completed Jul 10, 2012
@alloy
Copy link
Owner

alloy commented Jul 10, 2012

Cool :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants