Ethereal-users: [Ethereal-users] Re: Ethereal-users digest, Vol 1 #832 - 1 msg

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Michael Felt <mamfelt@xxxxxxx>
Date: Sat, 17 Aug 2002 17:50:40 +0200
At 02:33 15/08/2002 -0500, you wrote:
Cutting all out of my last post.

It comes down to libtool being broken I expect.

The directory that fails is plugin/gryph*

The 'cut' output from make (plus some comments from me) in that directory is:
/bin/sh ../../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../..
mkdir .libs
cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/local/include -I../..
*** MAMF: packet-gryphon.o has been created
*** and gets moved away and back to itself - for what reason???
mv -f packet-gryphon.o .libs/packet-gryphon.lo
mv -f .libs/packet-gryphon.lo packet-gryphon.o
*** and for good measure - add a link to it too!
(cd . && ln -s packet-gryphon.o packet-gryphon.lo)
/bin/sh ../../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../..
rm -f .libs/packet-gryphon-static.lo
cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/local/include -I../..
*** what have we actually compiled here - shouldnt it be packet-gryphon-static.o?
*** and if not, aren't we destroying what we just compiled above?
*** what should actually be 'moved' here???
mv -f packet-gryphon.o .libs/packet-gryphon-static.lo
mv -f .libs/packet-gryphon-static.lo packet-gryphon-static.o
(cd . && ln -s packet-gryphon-static.o packet-gryphon-static.lo)
/bin/sh ../../libtool --mode=link cc -D_U_="" -g -I../.. -I../../wiret
rm -fr .libs/gryphon.la .libs/libgryphon.* .libs/libgryphon.*
*** and this 'error' is killing: packet-gryphon.o is now a symbolic link to packet-gryphon.lo
*** hence nm complains about too many symbolic links.
(cd . && ln -s packet-gryphon.lo packet-gryphon.o)
generating symbol list for `libgryphon.la'
/usr/bin/nm -B  packet-gryphon.o   | sed -n -e 's/^.*[  ]\([BCDT][BCDT]*
nm: packet-gryphon.o: 0654-200 Cannot open the specified file.
nm: Too many levels of symbolic links
cc -Wl,-bM:SRE -o .libs/libgryphon.so.0  packet-gryphon.o   -L/usr/local
cc: 1501-228 input file packet-gryphon.o not found
make: 1254-004 The error code from the last command is 252.

========
The listing is:
lrwxrwxrwx 1 root system 23 Aug 17 17:38 packet-gryphon-static.lo -> packet-gryphon-static.o -rw-r--r-- 1 root system 91273 Aug 17 17:38 packet-gryphon-static.o
-rw-rw-r--   1 500      500           63515 May 11 18:23 packet-gryphon.c
-rw-rw-r--   1 500      500           13960 May 11 18:23 packet-gryphon.h
lrwxrwxrwx 1 root system 16 Aug 17 17:38 packet-gryphon.lo -> packet-gryphon.o lrwxrwxrwx 1 root system 17 Aug 17 17:38 packet-gryphon.o -> packet-gryphon.lo

So, who knows how to fix libtool and/or the makefile here so that all runs well?

p.s. Sorry about the long output last time. It was late.