vm71 can not be compiled on opensolaris

5 views
Skip to first unread message

jiandong lu

unread,
Jan 11, 2008, 6:20:52 PM1/11/08
to vim...@googlegroups.com
vm71 can not be compiled on opensolaris (solaris
express developer edition ,9/07,b70).The key error
message is :

Undefined first referenced
symbol in file
XmeXpmReadFileToPixmap
objects/gui_xmebw.o
XmeXpmFreeAttributes
objects/gui_xmebw.o
XmeXpmCreatePixmapFromData
objects/gui_xmebw.o
ld: fatal: Symbol referencing errors. No output
written to vim
*** Error code 1
The following command caused the error:
LINK=" gcc -L/usr/dt/lib -R /usr/dt/lib
-L/usr/openwin/lib -R/usr/openwin/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 -lXpm -lXt -lX11 -lSM -lICE -lw -ldl -ltermlib
-lelf -lnsl -lsocket " \
MAKE="make" sh ./link.sh
make: Fatal error: Command failed for target `vim'
Current working directory
/export/home/jiandong/Desktop/vim71/src
*** Error code 1
make: Fatal error: Command failed for target `first'


hope that the problem be addressed in the next
release.

___________________________________________________________
雅虎邮箱传递新年祝福,个性贺卡送亲朋!
http://cn.mail.yahoo.com/gc/index.html?entry=5&souce=mail_mailletter_tagline

Tony Mechelynck

unread,
Jan 11, 2008, 7:07:02 PM1/11/08
to vim...@googlegroups.com

Hmm... three symbols whose names start with XmeXpm, used in gui_xmebw.c
"Enhanced Motif PushButton widget with move over behavior"... apparently in an
include file since the C file itself doesn't include those words...

1. Try removing the file auto/link.sed and recompiling. This might work if a
library which wasn't needed before (and had been removed via auto/link.sed) is
needed now. The file will be recreated if not found and the link proceeds OK.

2. If that doesn't work, try re-running configure (e.g., using "make
reconfig"). This may get you a different message about what is wrong with your
software installation.

3. If that doesn't work, and you have GTK2 installed (with "development"
package including C headers etc.), maybe you could try building with that?
(this also requires a reconfig, but possibly with different configure arguments).


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
230. You spend your Friday nights typing away at your keyboard

Bram Moolenaar

unread,
Jan 12, 2008, 8:04:53 AM1/12/08
to jiandong lu, vim...@googlegroups.com

Jiandong Lu wrote:

> vm71 can not be compiled on opensolaris (solaris
> express developer edition ,9/07,b70).The key error
> message is :
>
> Undefined first referenced
> symbol in file
> XmeXpmReadFileToPixmap
> objects/gui_xmebw.o
> XmeXpmFreeAttributes
> objects/gui_xmebw.o
> XmeXpmCreatePixmapFromData
> objects/gui_xmebw.o
> ld: fatal: Symbol referencing errors. No output
> written to vim
> *** Error code 1

There must be something wrong in your setup. The file gui_xmebw.c
contains a call to XpmReadFileToPixmap(), not XmeXpmReadFileToPixmap().
I would think this is redefined in a header file. You should then add
the corresponding library to the linker line. You can add it to
MOTIF_LIBS2, line 1132 in Makefile.


--
Why isn't there mouse-flavored cat food?

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

jiandong lu

unread,
Jan 12, 2008, 8:33:11 PM1/12/08
to vim...@googlegroups.com

--- Tony Mechelynck
<antoine.m...@gmail.com>写道:

Thanks.I have change the configure options to use
gnome .There are tow gui environments in solaris ,CDE
and JDS(a gnome port).

Tony Mechelynck

unread,
Jan 12, 2008, 8:42:02 PM1/12/08
to vim...@googlegroups.com
jiandong lu wrote:
[...]

> Thanks.I have change the configure options to use
> gnome .There are tow gui environments in solaris ,CDE
> and JDS(a gnome port).

And does it work?


Best regards,
Tony.
--
No animal should ever jump on the dining room furniture unless
absolutely certain he can hold his own in conversation.
-- Fran Lebowitz

jiandong lu

unread,
Jan 12, 2008, 11:19:08 PM1/12/08
to vim...@googlegroups.com

--- Tony Mechelynck
<antoine.m...@gmail.com>写道:

>

Yes,I compiled it successfully.

Reply all
Reply to author
Forward
0 new messages