hi,

i've just got a shiny new corei7 macbookpro with macosx-10.6.3
and i'm trying to compile an x11-motif vim-7.2.436 on it with:

>configure \
>       --disable-darwin \
>       --with-x \
>       --enable-gui=motif \
>       --enable-multibyte \
>       --with-mac-arch=current \
>       --with-features=huge

(having first installed openmotif via macports)

the configure output is attached in case it helps.

and i get the following compile error:

>  gcc -L/opt/local/lib -L/opt/local/lib -R/opt/local/lib   -L/usr/local/lib    
>  -o vim objects/buffer.o objects/charset.o objects/diff.o objects/digraph.o 
> objects/edit.o objects/eval.o objects/ex_cmds.o objects/ex_cmds2.o 
> objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/fileio.o 
> objects/fold.o objects/getchar.o objects/hardcopy.o objects/hashtab.o  
> objects/if_cscope.o objects/if_xcmdsrv.o objects/main.o objects/mark.o 
> objects/memfile.o objects/memline.o objects/menu.o objects/message.o 
> objects/misc1.o objects/misc2.o objects/move.o objects/mbyte.o 
> objects/normal.o objects/ops.o objects/option.o objects/os_unix.o 
> objects/pathdef.o objects/popupmnu.o objects/quickfix.o objects/regexp.o 
> objects/screen.o objects/search.o objects/spell.o objects/syntax.o  
> objects/tag.o objects/term.o objects/ui.o objects/undo.o objects/window.o 
> objects/gui.o objects/gui_motif.o objects/gui_x11.o objects/pty.o 
> objects/gui_beval.o objects/gui_xmdlg.o objects/gui_xmebw.o        
> objects/netbeans.o  objects/version.o  -lXp -lXmu -lXext -lXm -lXt -lSM -lICE 
> -lXt -lX11 -lXdmcp -lSM -lICE -ldl -lm -lncurses  -liconv        
>Undefined symbols:
>  "_XpmReadFileToPixmap", referenced from:
>      _check_xpm in gui_motif.o
>  "_XpmFreeAttributes", referenced from:
>      _check_xpm in gui_motif.o
>      _gui_mch_init in gui_x11.o
>  "_XpmReadFileToImage", referenced from:
>      _gui_mch_register_sign in gui_x11.o
>  "_XpmCreatePixmapFromData", referenced from:
>      _gui_mch_dialog in gui_motif.o
>      _gui_mch_init in gui_x11.o
>ld: symbol(s) not found
>collect2: ld returned 1 exit status
>make[1]: *** [vim] Error 1
>make: *** [first] Error 2

i have the following copies of libXpm:

>$ locate libXpm
>/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libXpm.4.11.0.dylib
>/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libXpm.4.dylib
>/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libXpm.dylib
>/Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libXpm.4.11.0.dylib
>/Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libXpm.4.dylib
>/Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libXpm.dylib
>/usr/X11/lib/libXpm.4.11.0.dylib
>/usr/X11/lib/libXpm.4.dylib
>/usr/X11/lib/libXpm.dylib

(although i expect that only the one in /usr/X11 matters)

and they all contain all of the missing symbols:

>$ a=/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libXpm.4.dylib
>$ b=/Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libXpm.4.dylib
>$ c=/usr/X11/lib/libXpm.4.dylib
>$ for lib in $a $b $c; do nm $lib | grep _XpmReadFileToPixmap; done
>0000000000003870 T _XpmReadFileToPixmap
>00000000000036ab T _XpmReadFileToPixmap
>00000000000036a7 T _XpmReadFileToPixmap
>$ for lib in $a $b $c; do nm $lib | grep _XpmFreeAttributes; done
>0000000000000e30 T _XpmFreeAttributes
>0000000000000e6a T _XpmFreeAttributes
>0000000000000e66 T _XpmFreeAttributes
>$ for lib in $a $b $c; do nm $lib | grep _XpmReadFileToImage; done
>0000000000003730 T _XpmReadFileToImage
>000000000000354e T _XpmReadFileToImage
>000000000000354a T _XpmReadFileToImage
>$ for lib in $a $b $c; do nm $lib | grep _XpmCreatePixmapFromData; done
>0000000000002dd0 T _XpmCreatePixmapFromData
>0000000000002ce1 T _XpmCreatePixmapFromData
>0000000000002cdd T _XpmCreatePixmapFromData

the libraries all have lots of architectures:

>$ for lib in $a $b $c; do file $lib; done
>/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libXpm.4.dylib: Mach-O universal 
>binary with 4 architectures
>/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libXpm.4.dylib (for architecture 
>ppc7400):   Mach-O dynamically linked shared library stub ppc
>/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libXpm.4.dylib (for architecture 
>ppc64):     Mach-O 64-bit dynamically linked shared library stub ppc64
>/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libXpm.4.dylib (for architecture 
>i386):      Mach-O dynamically linked shared library stub i386
>/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libXpm.4.dylib (for architecture 
>x86_64):    Mach-O 64-bit dynamically linked shared library stub x86_64
>/Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libXpm.4.dylib: Mach-O universal 
>binary with 3 architectures
>/Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libXpm.4.dylib (for architecture 
>x86_64):    Mach-O 64-bit dynamically linked shared library stub x86_64
>/Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libXpm.4.dylib (for architecture 
>i386):      Mach-O dynamically linked shared library stub i386
>/Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libXpm.4.dylib (for architecture 
>ppc7400):   Mach-O dynamically linked shared library stub ppc
>/usr/X11/lib/libXpm.4.dylib: Mach-O universal binary with 3 architectures
>/usr/X11/lib/libXpm.4.dylib (for architecture x86_64):  Mach-O 64-bit 
>dynamically linked shared library x86_64
>/usr/X11/lib/libXpm.4.dylib (for architecture i386):    Mach-O dynamically 
>linked shared library i386
>/usr/X11/lib/libXpm.4.dylib (for architecture ppc7400): Mach-O dynamically 
>linked shared library ppc

i'm assuming that i'm compiling for x86_64 by default although uname says i386:
>$ uname -a
>Darwin neddy 10.3.1 Darwin Kernel Version 10.3.1: Mon Mar 22 15:13:15 PDT 
>2010; root:xnu-1504.3.52~1/RELEASE_I386 i386

any idea what i'm doing wrong?

cheers,
raf

p.s. i also tried to install the motif variant of the vim macport
(vim @7.2.433_0+motif+x11) and it installed "successfully" but
without motif support in it.

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui