[MacPorts] #17606: Default variant of vim doesn't build due to X11 dependency
#17606: Default variant of vim doesn't build due to X11 dependency --------------------------------------+------------------------------------- Reporter: pgijnxn02@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: vim Xsetlocale X11 | Port: editors/vim --------------------------------------+------------------------------------- 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. -- Ticket URL: <http://trac.macports.org/ticket/17606> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17606: Default variant of vim doesn't build due to X11 dependency --------------------------------------+------------------------------------- Reporter: pgijnxn02@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: vim Xsetlocale X11 | Port: editors/vim --------------------------------------+------------------------------------- Comment(by pgijnxn02@…): My setup: Macports Trunk vim @7.2.065_0 OS X Tiger 10.4.11 Mac Mini PPC -- Ticket URL: <http://trac.macports.org/ticket/17606#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17606: Default variant of vim doesn't build due to X11 dependency --------------------------------------+------------------------------------- Reporter: pgijnxn02@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: vim Xsetlocale X11 | Port: editors/vim --------------------------------------+------------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => raimue@… -- Ticket URL: <http://trac.macports.org/ticket/17606#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17606: Default variant of vim doesn't build due to X11 dependency --------------------------------------+------------------------------------- Reporter: pgijnxn02@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: Xsetlocale X11 | Port: vim --------------------------------------+------------------------------------- Changes (by macsforever2000@…): * keywords: vim Xsetlocale X11 => Xsetlocale X11 * port: editors/vim => vim -- Ticket URL: <http://trac.macports.org/ticket/17606#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17606: Default variant of vim doesn't build due to X11 dependency --------------------------------------+------------------------------------- Reporter: pgijnxn02@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: Xsetlocale X11 | Port: vim --------------------------------------+------------------------------------- Description changed by ryandesign@…: Old description:
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.
New description: 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. -- -- Ticket URL: <http://trac.macports.org/ticket/17606#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17606: Default variant of vim doesn't build due to X11 dependency --------------------------------------+------------------------------------- Reporter: pgijnxn02@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: Xsetlocale X11 | Port: vim --------------------------------------+------------------------------------- Comment(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. -- Ticket URL: <http://trac.macports.org/ticket/17606#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17606: Default variant of vim doesn't build due to X11 dependency --------------------------------------+------------------------------------- Reporter: pgijnxn02@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: Xsetlocale X11 | Port: vim --------------------------------------+------------------------------------- Comment(by raimue@…): Replying to [comment:5 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? -- Ticket URL: <http://trac.macports.org/ticket/17606#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17606: Default variant of vim doesn't build due to X11 dependency --------------------------------------+------------------------------------- Reporter: pgijnxn02@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: Xsetlocale X11 | Port: vim --------------------------------------+------------------------------------- Comment(by messi@…): Replying to [comment:6 raimue@…]:
Replying to [comment:5 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.
-- Ticket URL: <http://trac.macports.org/ticket/17606#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17606: Default variant of vim doesn't build due to X11 dependency --------------------------------------+------------------------------------- Reporter: pgijnxn02@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: Xsetlocale X11 | Port: vim --------------------------------------+------------------------------------- Changes (by blb@…): * cc: blb@… (added) Comment: Adding this patch to the port should get it to work properly; a similar one against src/configure.in should probably be sent upstream. -- Ticket URL: <http://trac.macports.org/ticket/17606#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17606: Default variant of vim doesn't build due to X11 dependency --------------------------------------+------------------------------------- Reporter: pgijnxn02@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: Xsetlocale X11 | Port: vim --------------------------------------+------------------------------------- Changes (by raimue@…): * status: new => assigned Comment: I applied the patch to both vim and vim-app in r45697. I will look into sending a patch against configure.in to upstream. -- Ticket URL: <http://trac.macports.org/ticket/17606#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17606: Default variant of vim doesn't build due to X11 dependency ---------------------------------------+------------------------------------ Reporter: pgijnxn02@… | Owner: raimue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: Xsetlocale X11 Port: vim | ---------------------------------------+------------------------------------ Changes (by raimue@…): * status: assigned => closed * resolution: => fixed Comment: The patch has been accepted upstream as 7.2.159. -- Ticket URL: <http://trac.macports.org/ticket/17606#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts