The Makefile is processed from Makefile.in, with symbols resolved, e.g.
.c.o:
$(CC) -c @CFLAGS@ -I. -I.. @INCS@ -DHAVE_CONFIG_H $<
->
.c.o:
$(CC) -c -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prot
otypes -Wmissing-declarations -Wnested-externs -fPIC -I. -I.. -I/root/ntop
/myrrd -DHAVE_CONFIG_H $<
That should be fine, because the externs are just that (external) until
either linkage or loading occurs.
However, not having symbols in the .so library makes no sense (certainly
they're there in the 1.8.4 installed from gd-devel-1.8.4-9 / gd-1.8.4-9.
Quoting man nm: "GNU nm lists the symbols from object files objfile...."
Unless that is a stripped library? You may need to find another tool...
check the man pages for nm, ar, ranlib, readelf, etc. maybe you'll find
hints in there.
I don't have any other ideas here...
-----Burton
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Helmut Schneider
Sent: Thursday, October 30, 2003 6:40 AM
To: [EMAIL PROTECTED]
Subject: Re: [Ntop] Longterm data storing, memory usage (Yes, I read the
FAQ)
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-prot
otypes -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
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop