PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : untar und compile Problem



janvi
11.04.04, 15:32
ich habe mir den Serial Sniffer von

http://sourceforge.net/projects/ssnooper/

heruntergeladen, schaffe es aber weder auszupacken
geschweige denn zu Übersetzen. In der tar.gz Datei
befinden sich Verknküpfungen die beim Auspacken
fehlende Verzeichnisse anmotzen. Es entstehen dabei
gleichnamige *.part Dateien und auch das ./configure
script läuft nicht.Um ehrlich zu sein, habe ich weder
von tar noch autoconf wirklich eine Ahnung, mache
deshalb bestimmt einen Anfängerfehler

derguteweka
11.04.04, 16:16
Moin,

Hab' mir auch mal das Dingens gezogen, und zwar ssnooper-0.9.tar.gz Eigenartigerweise ist das bei mir anscheinend kein tar.gz Archiv, sondern nur ein tar (also nicht gegzipped) obwohl es die Endung .tar.gz hat...
Also einfach
tar xvf ssnooper-0.9.tar.gz
dann - wie ueblich -
cd ssnooper-0.9 && ./configure && make && make install
(Wenn mans unter /usr/local installiert haben will)
Hat eigentlich ohne Probleme hingehauen...

Gruss
WK

janvi
11.04.04, 16:39
Also einfach
tar xvf ssnooper-0.9.tar.gz

das geht noch ohne Probleme in der Console,
unter KDE kommt jedoch beim untar ein Fehler
wegen fehlender Verzeichnisse usr/share/automake...

dann - wie ueblich - [code]cd ssnooper-0.9 &&

./configure

bringt die Meldung:

jv@suse8:~/ssnooper-0.9> ./configure
creating cache ./config.cache
configure: error: can not find install-sh or install.sh in . ./.. ./../..
jv@suse8:~/ssnooper-0.9>

(install-sh ist die Datei welche bei mir nur als Link im tar ist)
Fehlen mir irgendwelche Tools oder Verzeichnisse die ich zuvor anlegen muss?

derguteweka
11.04.04, 16:55
Stimmt, install-sh ist ein link auf /usr/share/automake/install-sh
Das existiert bei mir. Hast du auf deinem System automake installiert , sprich: was passiert, wenn du automake --version
tippst ?
Wenn da nix vernuenftiges kommt, brauchste automake. Evtl. auch noch autoconfig, m4 und noch mehr so kryptisches Zeugs - aber schaumer erstmal...

Gruss
WK

janvi
11.04.04, 17:14
ok, kaum ist automake installiert, geht schon etwas mehr:

jv@suse8:~> automake --version
automake (GNU automake) 1.5
Written by Tom Tromey <tromey@cygnus.com>.

Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
jv@suse8:~> cd ssnooper-0.9
jv@suse8:~/ssnooper-0.9>
jv@suse8:~/ssnooper-0.9> ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... missing
checking for working automake... found
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gawk... gawk
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for poptPrintUsage in -lpopt... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for working const... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for select... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
jv@suse8:~/ssnooper-0.9> make
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ssnooper.c
ssnooper.c: In function `get_input':
ssnooper.c:278: `POPT_ARGFLAG_SHOW_DEFAULT' undeclared (first use in this function)
ssnooper.c:278: (Each undeclared identifier is reported only once
ssnooper.c:278: for each function it appears in.)
ssnooper.c:319: `POPT_TABLEEND' undeclared (first use in this function)
make: *** [ssnooper.o] Fehler 1
jv@suse8:~/ssnooper-0.9>


siehst du was noch fehlen könnte? Hast du einen anderen Compiler?

derguteweka
11.04.04, 17:19
Installier' mal noch autoconf, dann sollte es noch ein bisschen besser gehen...
(Bei mir laeuft n gcc-3.3.1, glibc-2.3.2, linux-2.4.25, sollte aber fuer ssnooper wurscht sein)

Gruss
WK

janvi
11.04.04, 17:21
autoconf hat schon was gebracht, aber was bitte
soll makeinfo sein ?

jv@suse8:~> cd ssnooper-0.9
jv@suse8:~/ssnooper-0.9> ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking for gawk... (cached) gawk
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking for poptPrintUsage in -lpopt... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for working const... (cached) yes
checking for size_t... (cached) yes
checking return type of signal handlers... (cached) void
checking for select... (cached) yes
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
jv@suse8:~/ssnooper-0.9> jv@suse8:~/ssnooper-0.9> ./configure
bash: jv@suse8:~/ssnooper-0.9: Datei oder Verzeichnis nicht gefunden
jv@suse8:~/ssnooper-0.9> loading cache ./config.cache
bash: loading: command not found
jv@suse8:~/ssnooper-0.9> checking for a BSD compatible install... (cached) /usr/bin/install -c
bash: syntax error near unexpected token `(c'
jv@suse8:~/ssnooper-0.9> checking whether build environment is sane... yes
bash: checking: command not found
jv@suse8:~/ssnooper-0.9> checking whether make sets ${MAKE}... (cached) yes
bash: syntax error near unexpected token `(c'
jv@suse8:~/ssnooper-0.9> checking for working aclocal... found
bash: checking: command not found
jv@suse8:~/ssnooper-0.9> checking for working autoconf... found
bash: checking: command not found
jv@suse8:~/ssnooper-0.9> checking for working automake... found
bash: checking: command not found
jv@suse8:~/ssnooper-0.9> checking for working autoheader... found
bash: checking: command not found
jv@suse8:~/ssnooper-0.9> checking for working makeinfo... missing
bash: checking: command not found
jv@suse8:~/ssnooper-0.9> checking for gawk... (cached) gawk
bash: syntax error near unexpected token `(c'
jv@suse8:~/ssnooper-0.9> checking for gcc... (cached) gcc
bash: syntax error near unexpected token `(c'
jv@suse8:~/ssnooper-0.9> checking whether the C compiler (gcc ) works... yes
bash: syntax error near unexpected token `(g'
jv@suse8:~/ssnooper-0.9> checking whether the C compiler (gcc ) is a cross-compiler... no

janvi
11.04.04, 17:25
oops, war etwas zu schnell abgeschickt. Es sieht so aus:

suse8:/home # cd jv
suse8:/home/jv # cd ssnooper-0.9
suse8:/home/jv/ssnooper-0.9 # ./configure
suse8:/home/jv/ssnooper-0.9 #
suse8:/home/jv/ssnooper-0.9 # make
/bin/sh ./config.status --recheck
running /bin/sh ./configure --no-create --no-recursion
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ssnooper.c
ssnooper.c: In function `get_input':
ssnooper.c:278: `POPT_ARGFLAG_SHOW_DEFAULT' undeclared (first use in this function)
ssnooper.c:278: (Each undeclared identifier is reported only once
ssnooper.c:278: for each function it appears in.)
ssnooper.c:319: `POPT_TABLEEND' undeclared (first use in this function)
make: *** [ssnooper.o] Error 1
suse8:/home/jv/ssnooper-0.9 #

derguteweka
11.04.04, 17:33
Oha, stimmt - das is noch was anderes, das hat nix mit dem ganzen autobla zu tun. Sieht aus, als ob du noch "popt" installieren musst. Das ist ne lib zum "kommandozeilenoptionenparsen".


Gruss
WK

janvi
11.04.04, 17:38
popt hatte ich bereits von Anfang an:

jv@suse8:~> rpm -q popt
popt-1.6-149
jv@suse8:~>

aber offensichtlich stimmt was mit dem Pfad nicht ?

jv@suse8:~> popt
bash: popt: command not found
jv@suse8:~>

wie kann ich das einrichten ?

derguteweka
11.04.04, 17:50
Evtl. gibts noch popt-devel oder so aehnlich, gibts bei dir die Datei /usr/include/popt.h ? Die braucht der gcc, komischerweise "meckert" er nicht, dass er sie nicht findet...Loesch' sicherheitshalber mal das ssnoper-0.9 Verzeichnis komplett und fang' nochmal mit dem "tar xvf ..." an.

Das Kommando "popt" gibts imho eh nicht. Es gibt "bloss" diese Libraries:

-rw-r--r-- 1 root root 166180 Feb 23 19:22 /usr/lib/libpopt.a
-rwxr-xr-x 1 root root 699 Feb 23 19:22 /usr/lib/libpopt.la
lrwxrwxrwx 1 root root 16 Feb 23 19:22 /usr/lib/libpopt.so -> libpopt.so.0.0.0
lrwxrwxrwx 1 root root 16 Feb 23 19:22 /usr/lib/libpopt.so.0 -> libpopt.so.0.0.0
-rwxr-xr-x 1 root root 98997 Feb 23 19:22 /usr/lib/libpopt.so.0.0.0


Gruss
WK

janvi
11.04.04, 18:16
leider immer das Gleiche. Habs jetzt auch unter /usr/local probiert.

derguteweka
11.04.04, 18:21
Gibts bei dir die Datei /usr/include/popt.h ?

janvi
11.04.04, 18:29
suse8:/usr/include # ls popt.*
popt.h
suse8:/usr/include #

saibotrebeil
11.04.04, 18:41
hi janvi


es sieht wohl so aus, alsob du etwas an der Makefile rumspielen musst.

irgendwo werden die ganzen Includeverzeichnisse deklariert da muss du dan einfach ein
-I/usr/local/include einfuegen. Dann wieder make. und wenn du glueck hast, geht es


saibotrebeil

derguteweka
11.04.04, 18:43
Hmm, streng eigenartig...Naja, fahrn wir halt mal staerkere Geschuetze auf:
Nimm 'nen Editor und geh' in die Datei ssnooper.c und schreib' in die Zeile 29 (unter #include "ssnooper.h" ) die Zeile

#include <popt.h>

dann nochmal "make" ...

Gruss
WK

janvi
12.04.04, 10:03
auch mit #include <popt.h> kommt noch die gleiche Fehlermeldung. Die makefile Pfadangabe sieht so aus:

srcdir = .
top_srcdir = .
prefix = /usr/local
exec_prefix = ${prefix}
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include

DESTDIR =
pkgdatadir = $(datadir)/ssnooper
pkglibdir = $(libdir)/ssnooper
pkgincludedir = $(includedir)/ssnooper

Komischerweise wird allerdings pkgincludedir und keines der anderen davor verschachtelten includedirs dann letztendlich irgendwo weiter im Makefile verwendet. Die meisten Automake Konstruktionen werden für mich vermutlich auch immer ein Rätsel bleiben.

saibotrebeil
12.04.04, 10:21
hi janvi
also bei mir ging das kompilieren komischerweise auf anhieb.....

naja wenn du mir mal die Makefile komplett postest, dann kann ich dir auch helfen......

das was du gepostet hast, bezieht sich nur auf die dirs, wo das prog hin installiert wird


saibotrebeil

janvi
12.04.04, 10:30
# Generated automatically from Makefile.in by configure.
# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am

# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

#
# Ed Hill
# Thu Oct 25 09:31:46 MDT 2001
#


SHELL = /bin/sh

srcdir = .
top_srcdir = .
prefix = /usr/local
exec_prefix = ${prefix}
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include

DESTDIR =

pkgdatadir = $(datadir)/ssnooper
pkglibdir = $(libdir)/ssnooper
pkgincludedir = $(includedir)/ssnooper

top_builddir = .

ACLOCAL = aclocal
AUTOCONF = autoconf
AUTOMAKE = automake
AUTOHEADER = autoheader

INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
transform = s,x,x,

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
AWK = gawk
CC = gcc
LN_S = ln -s
MAKEINFO = /usr/local/ssnooper-0.9/missing makeinfo
PACKAGE = ssnooper
VERSION = 0.9

AUTOMAKE_OPTIONS =

bindir = /usr/local/bin

bin_PROGRAMS = ssnooper

ssnooper_SOURCES = ssnooper.c
ssnooper_LDADD =
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
PROGRAMS = $(bin_PROGRAMS)


DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.
CPPFLAGS =
LDFLAGS =
LIBS = -lpopt
ssnooper_OBJECTS = ssnooper.o
ssnooper_DEPENDENCIES =
ssnooper_LDFLAGS =
CFLAGS = -g -O2
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
Makefile.am Makefile.in NEWS TODO acinclude.m4 aclocal.m4 config.h.in \
configure configure.in install-sh missing mkinstalldirs


DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TAR = gtar
GZIP_ENV = --best
DEP_FILES = .deps/ssnooper.P
SOURCES = $(ssnooper_SOURCES)
OBJECTS = $(ssnooper_OBJECTS)

all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .o .s
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
cd $(top_builddir) \
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

$(ACLOCAL_M4): configure.in acinclude.m4
cd $(srcdir) && $(ACLOCAL)

config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
cd $(srcdir) && $(AUTOCONF)

config.h: stamp-h
@if test ! -f $@; then \
rm -f stamp-h; \
$(MAKE) stamp-h; \
else :; fi
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
$(SHELL) ./config.status
@echo timestamp > stamp-h 2> /dev/null
$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
@if test ! -f $@; then \
rm -f $(srcdir)/stamp-h.in; \
$(MAKE) $(srcdir)/stamp-h.in; \
else :; fi
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOHEADER)
@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null

mostlyclean-hdr:

clean-hdr:

distclean-hdr:
-rm -f config.h

maintainer-clean-hdr:

mostlyclean-binPROGRAMS:

clean-binPROGRAMS:
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)

distclean-binPROGRAMS:

maintainer-clean-binPROGRAMS:

install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(bindir)
@list='$(bin_PROGRAMS)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
else :; fi; \
done

uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
list='$(bin_PROGRAMS)'; for p in $$list; do \
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
done

.s.o:
$(COMPILE) -c $<

.S.o:
$(COMPILE) -c $<

mostlyclean-compile:
-rm -f *.o core *.core

clean-compile:

distclean-compile:
-rm -f *.tab.c

maintainer-clean-compile:

ssnooper: $(ssnooper_OBJECTS) $(ssnooper_DEPENDENCIES)
@rm -f ssnooper
$(LINK) $(ssnooper_LDFLAGS) $(ssnooper_OBJECTS) $(ssnooper_LDADD) $(LIBS)

tags: TAGS

ID: $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
here=`pwd` && cd $(srcdir) \
&& mkid -f$$here/ID $$unique $(LISP)

TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)

mostlyclean-tags:

clean-tags:

distclean-tags:
-rm -f TAGS ID

maintainer-clean-tags:

distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)

# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
-rm -rf $(distdir)
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
mkdir $(distdir)/=build
mkdir $(distdir)/=inst
dc_install_base=`cd $(distdir)/=inst && pwd`; \
cd $(distdir)/=build \
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) dist
-rm -rf $(distdir)
@banner="$(distdir).tar.gz is ready for distribution"; \
dashes=`echo "$$banner" | sed s/./=/g`; \
echo "$$dashes"; \
echo "$$banner"; \
echo "$$dashes"
dist: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
dist-all: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
distdir: $(DISTFILES)
-rm -rf $(distdir)
mkdir $(distdir)
-chmod 777 $(distdir)
here=`cd $(top_builddir) && pwd`; \
top_distdir=`cd $(distdir) && pwd`; \
distdir=`cd $(distdir) && pwd`; \
cd $(top_srcdir) \
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done

DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)

-include $(DEP_FILES)

mostlyclean-depend:

clean-depend:

distclean-depend:
-rm -rf .deps

maintainer-clean-depend:

%.o: %.c
@echo '$(COMPILE) -c $<'; \
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
@-cp .deps/$(*F).pp .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm .deps/$(*F).pp

%.lo: %.c
@echo '$(LTCOMPILE) -c $<'; \
$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
< .deps/$(*F).pp > .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm -f .deps/$(*F).pp
info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: all-am
check: check-am
installcheck-am:
installcheck: installcheck-am
all-recursive-am: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive

install-exec-am: install-binPROGRAMS
install-exec: install-exec-am

install-data-am:
install-data: install-data-am

install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am: uninstall-binPROGRAMS
uninstall: uninstall-am
all-am: Makefile $(PROGRAMS) config.h
all-redirect: all-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs:
$(mkinstalldirs) $(DESTDIR)$(bindir)


mostlyclean-generic:

clean-generic:

distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*

maintainer-clean-generic:
mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \
mostlyclean-compile mostlyclean-tags mostlyclean-depend \
mostlyclean-generic

mostlyclean: mostlyclean-am

clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-tags \
clean-depend clean-generic mostlyclean-am

clean: clean-am

distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile \
distclean-tags distclean-depend distclean-generic \
clean-am

distclean: distclean-am
-rm -f config.status

maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS \
maintainer-clean-compile maintainer-clean-tags \
maintainer-clean-depend maintainer-clean-generic \
distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."

maintainer-clean: maintainer-clean-am
-rm -f config.status

.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile tags mostlyclean-tags distclean-tags \
clean-tags maintainer-clean-tags distdir mostlyclean-depend \
distclean-depend clean-depend maintainer-clean-depend info-am info \
dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
install-exec-am install-exec install-data-am install-data install-am \
install uninstall-am uninstall all-redirect all-am all installdirs \
mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean


# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

derguteweka
12.04.04, 10:32
Moin,

Also wenn die Zeile mit dem include <popt.h> nix bringt, dann wuerd' ich mal sagen, dass mit der popt.h Datei was nicht stimmt. Dort werden naemlich genau die #defines, die der gcc bei deinen Fehlermeldungen anmeckert, definiert. Aber anscheinend nicht bei der popt.h auf deinem System, sondern "nur" bei saibotrebeil und mir...
Kriegst du raus, welche Version von popt auf deinem System ist ? Ich hab' leider keinen Blassen, wie das geht, evtl. sagt der rpm name was aus ?

Gruss
WK

saibotrebeil
12.04.04, 10:41
hi janvi

also ich habe da unten mal deine datei, und das was ich aendern wuerde mache ich in rot....

ich hoffe es geht so..

saibotrebeil



# Generated automatically from Makefile.in by configure.
# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am

# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

#
# Ed Hill
# Thu Oct 25 09:31:46 MDT 2001
#


SHELL = /bin/sh

srcdir = .
top_srcdir = .
prefix = /usr/local
exec_prefix = ${prefix}
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include

DESTDIR =

pkgdatadir = $(datadir)/ssnooper
pkglibdir = $(libdir)/ssnooper
pkgincludedir = $(includedir)/ssnooper

top_builddir = .

ACLOCAL = aclocal
AUTOCONF = autoconf
AUTOMAKE = automake
AUTOHEADER = autoheader

INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
transform = s,x,x,

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
AWK = gawk
CC = gcc
LN_S = ln -s
MAKEINFO = /usr/local/ssnooper-0.9/missing makeinfo
PACKAGE = ssnooper
VERSION = 0.9

AUTOMAKE_OPTIONS =

bindir = /usr/local/bin

bin_PROGRAMS = ssnooper

ssnooper_SOURCES = ssnooper.c
ssnooper_LDADD =
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
PROGRAMS = $(bin_PROGRAMS)


DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I. -I/usr/local/include
CPPFLAGS =
LDFLAGS =
LIBS = -lpopt
ssnooper_OBJECTS = ssnooper.o
ssnooper_DEPENDENCIES =
ssnooper_LDFLAGS =
CFLAGS = -g -O2
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
Makefile.am Makefile.in NEWS TODO acinclude.m4 aclocal.m4 config.h.in \
configure configure.in install-sh missing mkinstalldirs


DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TAR = gtar
GZIP_ENV = --best
DEP_FILES = .deps/ssnooper.P
SOURCES = $(ssnooper_SOURCES)
OBJECTS = $(ssnooper_OBJECTS)

all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .o .s
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
cd $(top_builddir) \
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

$(ACLOCAL_M4): configure.in acinclude.m4
cd $(srcdir) && $(ACLOCAL)

config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
cd $(srcdir) && $(AUTOCONF)

config.h: stamp-h
@if test ! -f $@; then \
rm -f stamp-h; \
$(MAKE) stamp-h; \
else :; fi
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
$(SHELL) ./config.status
@echo timestamp > stamp-h 2> /dev/null
$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
@if test ! -f $@; then \
rm -f $(srcdir)/stamp-h.in; \
$(MAKE) $(srcdir)/stamp-h.in; \
else :; fi
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOHEADER)
@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null

mostlyclean-hdr:

clean-hdr:

distclean-hdr:
-rm -f config.h

maintainer-clean-hdr:

mostlyclean-binPROGRAMS:

clean-binPROGRAMS:
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)

distclean-binPROGRAMS:

maintainer-clean-binPROGRAMS:

install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(bindir)
@list='$(bin_PROGRAMS)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
else :; fi; \
done

uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
list='$(bin_PROGRAMS)'; for p in $$list; do \
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
done

.s.o:
$(COMPILE) -c $<

.S.o:
$(COMPILE) -c $<

mostlyclean-compile:
-rm -f *.o core *.core

clean-compile:

distclean-compile:
-rm -f *.tab.c

maintainer-clean-compile:

ssnooper: $(ssnooper_OBJECTS) $(ssnooper_DEPENDENCIES)
@rm -f ssnooper
$(LINK) $(ssnooper_LDFLAGS) $(ssnooper_OBJECTS) $(ssnooper_LDADD) $(LIBS)

tags: TAGS

ID: $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
here=`pwd` && cd $(srcdir) \
&& mkid -f$$here/ID $$unique $(LISP)

TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)

mostlyclean-tags:

clean-tags:

distclean-tags:
-rm -f TAGS ID

maintainer-clean-tags:

distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)

# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
-rm -rf $(distdir)
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
mkdir $(distdir)/=build
mkdir $(distdir)/=inst
dc_install_base=`cd $(distdir)/=inst && pwd`; \
cd $(distdir)/=build \
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) dist
-rm -rf $(distdir)
@banner="$(distdir).tar.gz is ready for distribution"; \
dashes=`echo "$$banner" | sed s/./=/g`; \
echo "$$dashes"; \
echo "$$banner"; \
echo "$$dashes"
dist: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
dist-all: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
distdir: $(DISTFILES)
-rm -rf $(distdir)
mkdir $(distdir)
-chmod 777 $(distdir)
here=`cd $(top_builddir) && pwd`; \
top_distdir=`cd $(distdir) && pwd`; \
distdir=`cd $(distdir) && pwd`; \
cd $(top_srcdir) \
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done

DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)

-include $(DEP_FILES)

mostlyclean-depend:

clean-depend:

distclean-depend:
-rm -rf .deps

maintainer-clean-depend:

%.o: %.c
@echo '$(COMPILE) -c $<'; \
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
@-cp .deps/$(*F).pp .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm .deps/$(*F).pp

%.lo: %.c
@echo '$(LTCOMPILE) -c $<'; \
$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
< .deps/$(*F).pp > .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm -f .deps/$(*F).pp
info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: all-am
check: check-am
installcheck-am:
installcheck: installcheck-am
all-recursive-am: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive

install-exec-am: install-binPROGRAMS
install-exec: install-exec-am

install-data-am:
install-data: install-data-am

install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am: uninstall-binPROGRAMS
uninstall: uninstall-am
all-am: Makefile $(PROGRAMS) config.h
all-redirect: all-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs:
$(mkinstalldirs) $(DESTDIR)$(bindir)


mostlyclean-generic:

clean-generic:

distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*

maintainer-clean-generic:
mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \
mostlyclean-compile mostlyclean-tags mostlyclean-depend \
mostlyclean-generic

mostlyclean: mostlyclean-am

clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-tags \
clean-depend clean-generic mostlyclean-am

clean: clean-am

distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile \
distclean-tags distclean-depend distclean-generic \
clean-am

distclean: distclean-am
-rm -f config.status

maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS \
maintainer-clean-compile maintainer-clean-tags \
maintainer-clean-depend maintainer-clean-generic \
distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."

maintainer-clean: maintainer-clean-am
-rm -f config.status

.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile tags mostlyclean-tags distclean-tags \
clean-tags maintainer-clean-tags distdir mostlyclean-depend \
distclean-depend clean-depend maintainer-clean-depend info-am info \
dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
install-exec-am install-exec install-data-am install-data install-am \
install uninstall-am uninstall all-redirect all-am all installdirs \
mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean


# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

janvi
12.04.04, 10:43
suse8:/usr/local/ssnooper-0.9 # rpm -q popt
popt-1.6-149
suse8:/usr/local/ssnooper-0.9 # ls /usr/include/popt.h
/usr/include/popt.h
suse8:/usr/local/ssnooper-0.9 #

Es tut sich also nicht mal was wenn ich popt.h in usr/local kopiere
oder wenn ich #include </usr/include/popt.h> mache. Habt ihr eine
andere popt.h wie ich ?

saibotrebeil
12.04.04, 10:50
haeng deine mal an, ich mache dann mal einen diff


suse8:/usr/local/ssnooper-0.9 # rpm -q popt
popt-1.6-149
suse8:/usr/local/ssnooper-0.9 # ls /usr/include/popt.h
/usr/include/popt.h
suse8:/usr/local/ssnooper-0.9 #

Es tut sich also nicht mal was wenn ich popt.h in usr/local kopiere
oder wenn ich #include </usr/include/popt.h> mache. Habt ihr eine
andere popt.h wie ich ?

derguteweka
12.04.04, 10:53
ALso ich hab popt-1.7installiert. In meiner popt.h lautet z.b. die Zeile 63 wie folgt:

#define POPT_ARGFLAG_SHOW_DEFAULT 0x00800000 /*!< show default value in --help */

So eine Zeile scheint in deiner popt.h nicht zu stehen, denn damit kann der gcc den Ausdruck POPT_ARGFLAG_SHOW_DEFAULT "verdauen" und das klappt bei dir ja nicht.
Die includepfade im Makefile scheinen imho bei dir zu stimmen, denn sonst haette der gcc spaetestens bei der von Hand eingefuegten include Zeile gemeckert, dass der popt.h nicht finden kann...

Gruss
WK

janvi
12.04.04, 12:07
Diesen Define gibts bei mir auch definitiv nicht, kein Wunder daß der Compiler hier meckert. Es liegt also an der popt Version die bei mir zu alt ist. Gibts irgendwo ein neueres rpm für Suse zu laden?

derguteweka
12.04.04, 12:23
Keine Ahnung, obs popt-1.7 als rpm gibt,musst' halt mal googlen. Muesst' es aber imho schon, ich glaub' sooo neu ist die Version nicht. Kann man aber auch ziemlich leicht selber bauen...sag' ich jetzt mal so...wenn nicht wieder irgendn headerfile querschiesst ;-))

Gruss
WK

saibotrebeil
12.04.04, 12:33
popt hat afaik keine hoeheren ansprueche an headern....




Keine Ahnung, obs popt-1.7 als rpm gibt,musst' halt mal googlen. Muesst' es aber imho schon, ich glaub' sooo neu ist die Version nicht. Kann man aber auch ziemlich leicht selber bauen...sag' ich jetzt mal so...wenn nicht wieder irgendn headerfile querschiesst ;-))

Gruss
WK

janvi
12.04.04, 15:07
irgendwo auf einem ftp bin ich sogar mit einem 386er rpm fündig geworden. Nachdem ich dann alles gelöscht und nochmals von vorne angefangen habe hat es auch tatsächlich mit popt 1.7 funktioniert.

Besten Dank