Ticket #17606 (closed defect: fixed)
Default variant of vim doesn't build due to X11 dependency
| Reported by: | pgijnxn02@… | Owned by: | raimue@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.7.0 |
| Keywords: | Xsetlocale X11 | Cc: | messi@…, blb@… |
| Port: | vim |
Description (last modified by ryandesign@…) (diff)
I failed to build vim with no variants.
The configure log shows --enable-gui=no --without-x but the linker fails with this message:
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols: __Xsetlocale
Adding -lX11 to the linker command line enabled it to build and I was able to continue.
Attachments
Change History
comment:1 in reply to: ↑ description Changed 4 years ago by pgijnxn02@…
My setup:
Macports Trunk vim @7.2.065_0 OS X Tiger 10.4.11 Mac Mini PPC
comment:3 Changed 4 years ago by macsforever2000@…
- Keywords vim removed
- Port changed from editors/vim to vim
comment:5 follow-up: ↓ 6 Changed 4 years ago by messi@…
This problem comes with --enable-multibyte. Replacing it with --disable-multibyte also fixes the problem. No libX11 needed.
Vim feature +multi_byte is activated again if i.e. variant +huge is specified.
comment:6 in reply to: ↑ 5 ; follow-up: ↓ 7 Changed 4 years ago by raimue@…
Replying to messi@…:
This problem comes with --enable-multibyte. Replacing it with --disable-multibyte also fixes the problem. No libX11 needed.
Thanks for tracking this down. Strange enough that multibyte support needs X. How should I change this? Should I move multibyte in its own variant, as it was until some time ago?
comment:7 in reply to: ↑ 6 Changed 4 years ago by messi@…
Replying to raimue@…:
Replying to messi@…:
This problem comes with --enable-multibyte. Replacing it with --disable-multibyte also fixes the problem. No libX11 needed.
Thanks for tracking this down. Strange enough that multibyte support needs X. How should I change this? Should I move multibyte in its own variant, as it was until some time ago?
Good question. I think you should take a look at ./src/auto/configure:15458 first. When you allow --enable-multibyte to be set (globally or by variant) you should make sure that $x_includes is empty if X11 is not installed. Otherwise configure tries to link the check program against libX11.
Changed 4 years ago by blb@…
- Attachment patch-src_auto_configure.diff added
diff to src/auto/configure
comment:9 Changed 4 years ago by blb@…
- Cc blb@… added
Adding this patch to the port should get it to work properly; a similar one against src/configure.in should probably be sent upstream.
comment:10 Changed 4 years ago by raimue@…
- Status changed from new to assigned
I applied the patch to both vim and vim-app in r45697. I will look into sending a patch against configure.in to upstream.
comment:12 Changed 4 years ago by raimue@…
- Status changed from assigned to closed
- Resolution set to fixed
The patch has been accepted upstream as 7.2.159.

