Burton M. Strauss III wrote:

> ntop should resolve to the 2.0.1 (libgd.so) version and should ignore
> 1.8.4, but with both 1.8.4 and 2.0.1 libraries installed, you're
> asking for trouble.
> 
[...]
> $ nm /usr/lib/libgd.so | grep gdImageCreateFromGd
> 000069da T gdImageCreateFromGd
> 00006fc2 T gdImageCreateFromGd2
> 00007008 T gdImageCreateFromGd2Ctx
> 00007296 T gdImageCreateFromGd2Part
> 000072f8 T gdImageCreateFromGd2PartCtx
> 00006a20 T gdImageCreateFromGdCtx

ntop:~# nm /usr/lib/libgd.so
nm: /usr/lib/libgd.so: no symbols
ntop:~# nm /usr/lib/libgd.so.2
nm: /usr/lib/libgd.so.2: no symbols
ntop:~# nm /usr/lib/libgd.so.2.0.1
nm: /usr/lib/libgd.so.2.0.1: no symbols
ntop:~#

Now I am completely confused... :(

> The call to this is in myrrd - so
> 
> 1) Check the Makefile in the myrrd directory and make sure it too is
> including -lgd from /usr/lib at compile time.

ntop:~/ntop/myrrd# cat ./Makefile
CC=gcc
LIBRRD=libmyrrd.a
OBJECTS=gdlucidab10.o  gdlucidab12l2.o  gdlucidan10.o    gdlucidan12.o  gdpng.o    
parsetime.o  rrd_create.o  rrd_fetch.o  rrd_open.o gdlucidab12.o  gdlucidab14.o    
gdlucidan10l2.o  gdlucidan14.o  gifsize.o  pngsize.o    rrd_error.o   rrd_graph.o  
rrd_update.o rrd_format.o rrd_last.o  rrd_diff.o dummy.o
SOURCES=gdlucidab10.c  gdlucidab12l2.c  gdlucidan10.c    gdlucidan12.c  gdpng.c    
parsetime.c  rrd_create.c  rrd_fetch.c  rrd_open.c gdlucidab12.c  gdlucidab14.c    
gdlucidan10l2.c  gdlucidan14.c  gifsize.c  pngsize.c    rrd_error.c   rrd_graph.c  
rrd_update.c  rrd_format.c rrd_last.c rrd_diff.c dummy.c

all: $(LIBRRD)

install:
        @echo "Done. myrrd does not need to be installed."

$(LIBRRD): $(OBJECTS)
        ar rs $(LIBRRD) $(OBJECTS)

.c.o:
        $(CC) -c -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith 
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs  -fPIC -I. -I..  
-I/root/ntop/myrrd -DHAVE_CONFIG_H $<

clean:
        /bin/rm -f $(OBJECTS) $(LIBRRD)
ntop:~/ntop/myrrd#
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to