Nie istotne co masz w Makefile ale co masz Makefile.in gdyz. po wydaniu polecenia ./configure plk Makefile jest generowany z Makefile.in
Makefile.in SOURCES = almsd.c db.c util.c SOURCES += iniparser/iniparser.c iniparser/dictionary.c iniparser/strlib.c OBJECTS = ${SOURCES:.c=.o} OUT = almsd
all: $(OUT) xmodules
xmodules: make -C modules
$(OUT): ${OBJECTS} gcc $(OBJECTS) -o $(OUT) $(LDFLAGS) $(LIBS) -g -ggdb
install: mkdir -p -m 755 $(INSTALLDIR) install -c -m 700 almsd $(INSTALLDIR)/
remove: rm -f $(INSTALLDIR)/almsd
clean: rm -f $(OBJECTS) make -C modules clean
gdb -d=/usr/local/apache/htdocs/lms/daemon/ ./almsd GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"... (no debugging symbols found)...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Nadal masz usunie;te symbole debugowania!
a teraz?
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"... (gdb) run Starting program: /usr/local/lms/almsd
Program received signal SIGSEGV, Segmentation fault. 0x4202b0fa in __strtol_internal () from /lib/tls/libc.so.6 (gdb) bt #0 0x4202b0fa in __strtol_internal () from /lib/tls/libc.so.6 #1 0x42028839 in atoi () from /lib/tls/libc.so.6 #2 0x0804944b in main () #3 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6 (gdb)