Wireshark-dev: Re: [Wireshark-dev] Building with libtool /epan

From: Marcel Haas <inf462@xxxxxxxxxxx>
Date: Tue, 04 Oct 2011 14:13:29 +0200
Hmm Nope..
the makefile will work without any error but at libwireshark.la "libdir=" is no entry
and i guess thats the library so i can not use my functions
and now i havent an entry at the .deps file folder
I changed it like it was before

what i have done is
at Makefile.common
________________________________________________________
LIBWIRESHARK_SRC =
        ...
        list_mh.c \
        ...
LIBWIRESHARK_INCLUDES =
         ...
         list_mh.c               \
         ...

and Makefile.in
________________________________________________________

am__objects_1 =
         libwireshark_la-list_mh.lo \

LIBWIRESHARK_SRC = \
         list_mh.c \


LIBWIRESHARK_INCLUDES = \
         list_mh.h \

@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwireshark_la-list_mh.Plo@am__quote@

libwireshark_la-list_mh.lo: list_mh.c
@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwireshark_la_CFLAGS) $(CFLAGS) -MT libwireshark_la-list_mh.lo -MD -MP -MF "$(DEPDIR)/libwireshark_la-list_mh.Tpo" -c -o libwireshark_la-list_mh.lo `test -f 'list_mh.c' || echo '$(srcdir)/'`list_mh.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libwireshark_la-list_mh.Tpo" "$(DEPDIR)/libwireshark_la-list_mh.Plo"; else rm -f "$(DEPDIR)/libwireshark_la-list_mh.Tpo"; exit 1 ; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='list_mh.c' object='libwireshark_la-list_mh.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwireshark_la_CFLAGS) $(CFLAGS) -c -o libwireshark_la-list_mh.lo `test -f 'list_mh.c' || echo '$(srcdir)/'`list_mh.c

I were doning it the same way reassemble.c /.h was find in the two files. copy paste replace "reassemble" with "list_mh"

On Tue, 4 Oct 2011 13:00:42 +0200, Anders Broman <anders.broman@xxxxxxxxxxxx> wrote:
-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Marcel Haas
Sent: den 4 oktober 2011 12:53
To: wireshark-dev@xxxxxxxxxxxxx
Subject: [Wireshark-dev] Building with libtool /epan

Hey guys..

I have written, my own functions to reassemble split packets.
Now I want to include that to wireshark more precisely wireshark/epan.
I updated the Makefile.in common .am.
If i run ./configure it works. He built me a Makefile and the ./deps file folder. I get a xxx.Plo File with content like "dummy" what is normal before make.
If i run make now he will bulit but stopps with

"libtool: link: `libwireshark_la-list_mh.lo' is not a valid libtool object"

so I dont get a .lo file and no .la .a file and in may .Plo is still only "dummy" the content Maybe someone have an >idea..

Thx and regards
Marcel

Adding the file to Makefile.common should be enough I think are you
doing any weird includes?
Regards
Anders

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe