Hi,
humble bug report -- gtk-gnutella won't compile, see below. This is with
the latest SVN snapshot of 2006-08-19 17:51:06 UTC, but the problem has
been there since the latest release; gtk-gnutella-0.95.4 compiles fine.
My system is a dual Opteron linux 2.6.16, and the problem is related
to architecture; if I specify -m32 to force compilation at 32 bits, the
problem below goes away, but similar problems (in atoms.c) then occur.
The problem is present whether or not fast assertions are enabled.
Best,
-- Per
[EMAIL PROTECTED] gtk-gnutella]# ./configure.gnu
sh ./Configure -ds -e
First let's make sure your kit is complete. Checking...
Locating common programs...
Checking compatibility between /bin/echo and builtin echo (if any)...
Symbolic links are supported.
Checking how to test for symbolic links...
You can test for symbolic links with 'test -h'.
Good, your tr supports [:lower:] and [:upper:] to convert case.
Using [:upper:] and [:lower:] to convert case.
Operating system name? [linux]
Operating system version? [2.6.16]
Is this producing an official build [n]
Run without any GUI interface [n]
Enable remote control service [n]
Use which GTK toolkit (1 or 2) [1]
Do you expect to run these scripts and binaries on multiple machines? [n]
Installation prefix to use? (~name ok) [/usr/local]
AFS does not seem to be running...
Pathname where the public executables will reside? (~name ok)
[/usr/local/bin]
System manual is in /usr/share/man/man1.
Where do the manual pages (source) go? (~name ok)
[/usr/local/share/man/man1]
Pathname where the private library files will reside? (~name ok)
[/usr/local/lib/gtk-gnutella]
Directories to use for library searches? [/usr/local/lib /lib /usr/lib]
What is the file extension used for shared libraries? [so]
Use which C compiler? [cc]
Checking for GNU cc in disguise and/or its version number...
Now, how can we feed standard input to your C preprocessor...
What optimizer/debugger flag should be used? [-O]
Any additional cc flags? [-W -Wall -Wformat=2 -I/usr/local/include]
Let me guess what the preprocessor flags are...
Any additional ld flags (NOT including libraries)? [-L/usr/local/lib]
Checking your choice of C compiler and flags for coherency...
Checking for optional libraries...
Which libraries to use? [-lz -lresolv]
Checking for GNU C Library...
/usr/bin/nm probably won't work on the GNU C Library.
Shall I use nm to extract C symbols from the libraries? [n]
gettext() found.
Computing filename position in cpp output for #include directives...
<libintl.h> found.
You have NLS support.
Shall I enable NLS [y]
Where do you want to put the localization files? (~name ok)
[/usr/local/share/locale]
Checking whether your compiler can handle __attribute__ ...
bcopy() found.
bind_textdomain_codeset() found.
Checking to see if your C compiler knows about "const"...
Checking how we can gather information about dbus...
Enable D-Bus support [y]
Checking whether epoll() is available ...
Shall I enable "fast assertions" [n]
Checking whether getaddrinfo() can be used ...
Checking whether geteuid() is available ...
<net/if.h> found.
Checking whether getifaddrs() is available ...
getinvent() NOT found.
getdtablesize() found.
Checking whether getuid() is available ...
Checking how we can gather information about GNU TLS...
Enable GNU TLS support [y]
herror() found.
hstrerror() found.
initstate() found.
<netinet/in.h> found.
<netinet/ip.h> found.
Checking for IP TOS (Type of Service) support...
Checking whether IPv6 can be used ...
Enable IPv6 support [y]
isascii() found.
Checking whether the member "udata" of "struct kevent" is an integer ...
Checking whether kqueue() is available ...
Checking how we can gather information about libxml2...
lstat() found.
madvise() found.
memcpy() found.
Checking whether "struct msghdr" has a member "msg_flags"...
<sys/file.h> defines the O_* constants...
and you have the 3 argument form of open().
pread() found.
preadv() NOT found.
pwrite() found.
pwritev() NOT found.
random() found.
getrusage() found.
Checking whether SA_INTERRUPT is available in <signal.h>...
sendfile() found.
Checking whether setproctitle() is available ...
sigaction() found.
Checking whether socker_get() is available...
Seems like socker is missing: privileged ports won't be usable.
Checking how we can gather information about SQLite...
srandom() found.
Using <string.h> instead of <strings.h>.
strchr() found.
strlcat() NOT found.
strlcpy() NOT found.
sysctl() found.
<sys/times.h> found.
times() found.
What type is returned by times() on this system? [clock_t]
Figuring out host name...
Your host name appears to be "kitsune.qbfox.com". Right? [y]
uname() found.
usleep() found.
Checking to see if your C compiler knows about "volatile"...
vsnprintf() found.
<unistd.h> found.
Checking whether we need flags for large file support...
Checking alignment constraints...
Doubles must be aligned on a how-many-byte boundary? [8]
Checking to see how your cpp does stuff like catenate tokens...
I can't determine whether signal handler returns void or int...
What type does your signal handler return? [void]
Figuring out the flag used by open() for non-blocking I/O...
Let's see what value errno gets from read() on a O_NONBLOCK file...
Compiling for GTK 1: we'll use 'glade'.
Checking how we can gather information about glib...
Checking how we can gather information about GTK+...
Figuring out my version number...
Looking for a BSD-compatible install program...
Which install program shall I use? (~name ok) [/usr/bin/install]
Ok, let's see how we can create nested directories...
Which memory models are supported? [none]
Checking if your /usr/bin/make program sets $(MAKE)...
Checking how to generate makefile dependencies on your machine...
Name of program to make makefile dependencies? (~name ok)
[/usr/local/src/gtk-gnutella/mkdep]
Let's see whether your /usr/bin/msgmerge supports the --update flag...
Checking out function prototypes...
Checking how to generate random libraries on your machine...
Checking to see how well your C compiler groks the void type...
Which compiler compiler (byacc or yacc or bison -y) shall I use? [yacc]
Any additional yacc flags? [none]
<ifaddrs.h> found.
<inttypes.h> found.
<invent.h> NOT found.
<langinfo.h> found.
<libcharset.h> NOT found.
<netdb.h> found.
<pwd.h> found.
<sys/param.h> found.
<sys/sendfile.h> found.
<sys/sysctl.h> found.
Testing to see if we should include <time.h>, <sys/time.h> or both.
We'll include <time.h>.
We'll include <sys/time.h>.
<sys/utsname.h> found.
deflate() found.
inflate() found.
<zlib.h> found.
Checking whether we can use sendfile() with large file support...
Feature Summary (Version 0.96.2u):
-------------------------------------------------
Glib version : glib-1.x
GUI front-end : GTK1
Persistent filters : yes
Gnutella traffic compression : yes
GNU TLS support : yes
IP TOS (Type of Service) : yes
IPv6 support : yes
NLS (Native Language Support) : yes
Experimental remote control : no
Fast assertion support : no
DBus support : yes
SQLite : yes
-------------------------------------------------
Creating config.sh...
Doing variable substitutions on .SH files...
Extracting Makefile (with variable substitutions)
Extracting config.h (with variable substitutions)
Extracting extra_files/Makefile (with variable substitutions)
Extracting extra_files/el/Makefile (with variable substitutions)
Extracting extra_files/en/Makefile (with variable substitutions)
Extracting extra_files/ja/Makefile (with variable substitutions)
Extracting gtk-gnutella.spec (with variable substitutions)
Extracting install (with variable substitutions)
Extracting pixmaps/Makefile (with variable substitutions)
Extracting po/Makefile (with variable substitutions)
Extracting src/Makefile (with variable substitutions)
Extracting src/core/Makefile (with variable substitutions)
Extracting src/dht/Makefile (with variable substitutions)
Extracting src/if/Makefile (with variable substitutions)
Extracting src/if/bridge/Makefile (with variable substitutions)
Extracting src/lib/Makefile (with variable substitutions)
Extracting src/ui/Makefile (with variable substitutions)
Extracting src/ui/gtk/Makefile (with variable substitutions)
Extracting src/ui/gtk/gtk1/Makefile (with variable substitutions)
Extracting src/ui/gtk/gtk2/Makefile (with variable substitutions)
Run /usr/bin/make depend now? [y]
Depending in src...
make[1]: Entering directory `/usr/local/src/gtk-gnutella/src'
Depending in src/core...
make[2]: Entering directory `/usr/local/src/gtk-gnutella/src/core'
(/bin/sed '/^# DO NOT DELETE/q' Makefile && /usr/local/src/gtk-gnutella/mkdep
-I../.. -I.. -I/usr/include/glib-1.2 -I/usr/lib64/glib/include
-I/usr/include/libxml2 -DCORE_SOURCES -DCURDIR=src/core -W -Wall -Wformat=2
-I/usr/local/include -- alive.c ban.c bh_download.c bh_upload.c bitzi.c
bogons.c bsched.c clock.c dh.c dmesh.c downloads.c dq.c extensions.c features.c
fileinfo.c file_object.c geo_ip.c ggep.c ggep_type.c gmsg.c gnet_stats.c guid.c
gwcache.c hashtree.c hcache.c hostiles.c hosts.c hsep.c http.c huge.c ignore.c
inet.c ioheader.c matching.c move.c mq.c mq_tcp.c mq_udp.c namesize.c nodes.c
ntp.c oob.c oob_proxy.c gdb.c parq.c pcache.c pmsg.c pproxy.c qhit.c qrp.c
routing.c rx.c rx_chunk.c rx_inflate.c rx_link.c rxbuf.c search.c settings.c
share.c shell.c sockets.c spam.c sq.c tls_cache.c tls_common.c token.c tsync.c
tx.c tx_chunk.c tx_deflate.c tx_dgram.c tx_link.c udp.c uhc.c upload_stats.c
uploads.c verify.c verify_tth.c version.c vmsg.c whitelist.c | /bin/s!
ed -e 's:/usr/lib[^ ]*::g; s:/usr/include[^ ]*::g; ' -e '/: / b print'
-e '$ b print' -e 'H; d; n; : print' -e 'x; s/\\$//; s/\\\n//g; s/ */
/g; s/ :/:/;' -e '/: *$/d' ) > Makefile.new
cp Makefile Makefile.bak
cp Makefile.new Makefile
/bin/rm -f Makefile.new
make[2]: Leaving directory `/usr/local/src/gtk-gnutella/src/core'
Depending in src/dht...
make[2]: Entering directory `/usr/local/src/gtk-gnutella/src/dht'
(/bin/sed '/^# DO NOT DELETE/q' Makefile && /usr/local/src/gtk-gnutella/mkdep
-I../.. -I.. -I/usr/include/glib-1.2 -I/usr/lib64/glib/include
-DCORE_SOURCES -DCURDIR=src/dht -W -Wall -Wformat=2 -I/usr/local/include --
knode.c kuid.c routing.c rpc.c | /bin/sed -e 's:/usr/lib[^ ]*::g;
s:/usr/include[^ ]*::g; ' -e '/: / b print' -e '$ b print' -e 'H; d; n;
: print' -e 'x; s/\\$//; s/\\\n//g; s/ */ /g; s/ :/:/;' -e '/: *$/d' )
> Makefile.new
cp Makefile Makefile.bak
cp Makefile.new Makefile
/bin/rm -f Makefile.new
make[2]: Leaving directory `/usr/local/src/gtk-gnutella/src/dht'
Depending in src/lib...
make[2]: Entering directory `/usr/local/src/gtk-gnutella/src/lib'
(/bin/sed '/^# DO NOT DELETE/q' Makefile && /usr/local/src/gtk-gnutella/mkdep
-I../.. -I.. -I/usr/include/glib-1.2 -I/usr/lib64/glib/include
-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DCURDIR=src/lib -W
-Wall -Wformat=2 -I/usr/local/include -- socket.c adns.c aging.c atoms.c
base32.c base64.c bg.c cobs.c cq.c crc.c dbus_util.c eval.c event.c fifo.c
file.c fuzzy.c getdate.c getline.c glib-missing.c hashlist.c header.c
host_addr.c idtable.c inputevt.c iprange.c iso3166.c list.c magnet.c malloc.c
misc.c palloc.c pattern.c prop.c sha1.c slist.c stats.c tiger.c tigertree.c
tm.c url.c urn.c utf8.c vendors.c walloc.c watcher.c wordvec.c zalloc.c
zlib_util.c | /bin/sed -e 's:/usr/lib[^ ]*::g; s:/usr/include[^ ]*::g; '
-e '/: / b print' -e '$ b print' -e 'H; d; n; : print' -e 'x; s/\\$//;
s/\\\n//g; s/ */ /g; s/ :/:/;' -e '/: *$/d' ) > Makefile.new
cp Makefile Makefile.bak
cp Makefile.new Makefile
/bin/rm -f Makefile.new
make[2]: Leaving directory `/usr/local/src/gtk-gnutella/src/lib'
Depending in src/ui...
make[2]: Entering directory `/usr/local/src/gtk-gnutella/src/ui'
Depending in src/ui/gtk...
make[3]: Entering directory `/usr/local/src/gtk-gnutella/src/ui/gtk'
Depending in src/ui/gtk/gtk1...
make[4]: Entering directory `/usr/local/src/gtk-gnutella/src/ui/gtk/gtk1'
/bin/rm -f callbacks.c
/bin/cp ../gtk-shared/callbacks.c .
/bin/rm -f callbacks.h
/bin/cp ../gtk-shared/callbacks.h .
(/bin/sed '/^# DO NOT DELETE/q' Makefile && /usr/local/src/gtk-gnutella/mkdep
-I../../../.. -I../../.. -I../.. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib64/glib/include -I/usr/include/libxml2 -DGUI_SOURCES
-DCURDIR=src/ui/gtk/gtk1 -W -Wall -Wformat=2 -I/usr/local/include --
downloads.c downloads_cb.c fileinfo.c gnet_stats.c hcache.c interface-glade.c
monitor_cb.c monitor.c nodes_cb.c nodes.c search_cb.c search.c search_stats.c
support-glade.c upload_stats.c uploads.c interface-glade.c support-glade.c
callbacks.c | /bin/sed -e 's:/usr/lib[^ ]*::g; s:/usr/include[^ ]*::g; '
-e '/: / b print' -e '$ b print' -e 'H; d; n; : print' -e 'x; s/\\$//;
s/\\\n//g; s/ */ /g; s/ :/:/;' -e '/: *$/d' ) > Makefile.new
cp Makefile Makefile.bak
cp Makefile.new Makefile
/bin/rm -f Makefile.new
make[4]: Leaving directory `/usr/local/src/gtk-gnutella/src/ui/gtk/gtk1'
Depending in src/ui/gtk/gtk2...
make[4]: Entering directory `/usr/local/src/gtk-gnutella/src/ui/gtk/gtk2'
/bin/rm -f callbacks.c
/bin/cp ../gtk-shared/callbacks.c .
/bin/rm -f callbacks.h
/bin/cp ../gtk-shared/callbacks.h .
(/bin/sed '/^# DO NOT DELETE/q' Makefile && /usr/local/src/gtk-gnutella/mkdep
-I../../../.. -I../../.. -I../.. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib64/glib/include -I/usr/include/libxml2 -DGUI_SOURCES
-DCURDIR=src/ui/gtk/gtk2 -W -Wall -Wformat=2 -I/usr/local/include --
downloads.c downloads_cb.c fileinfo.c gnet_stats.c hcache.c monitor.c
monitor_cb.c nodes.c nodes_cb.c pbarcellrenderer.c search.c search_cb.c
search_stats.c upload_stats.c uploads.c interface-glade.c support-glade.c
callbacks.c | /bin/sed -e 's:/usr/lib[^ ]*::g; s:/usr/include[^ ]*::g; '
-e '/: / b print' -e '$ b print' -e 'H; d; n; : print' -e 'x; s/\\$//;
s/\\\n//g; s/ */ /g; s/ :/:/;' -e '/: *$/d' ) > Makefile.new
cp Makefile Makefile.bak
cp Makefile.new Makefile
/bin/rm -f Makefile.new
make[4]: Leaving directory `/usr/local/src/gtk-gnutella/src/ui/gtk/gtk2'
(/bin/sed '/^# DO NOT DELETE/q' Makefile && /usr/local/src/gtk-gnutella/mkdep
-I../../.. -I../.. -I.. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib64/glib/include -I/usr/include/libxml2 -DGUI_SOURCES
-DCURDIR=src/ui/gtk -W -Wall -Wformat=2 -I/usr/local/include -- bitzi.c
downloads_common.c drop.c filter.c filter_cb.c filter_core.c
gnet_stats_common.c gtk-missing.c gtkcolumnchooser.c hcache_common.c icon.c
main.c main_cb.c misc.c nodes_common.c search_common.c search_xml.c settings.c
settings_cb.c statusbar.c upload_stats_cb.c uploads_cb.c uploads_common.c
visual_progress.c | /bin/sed -e 's:/usr/lib[^ ]*::g; s:/usr/include[^ ]*::g; '
-e '/: / b print' -e '$ b print' -e 'H; d; n; : print' -e 'x;
s/\\$//; s/\\\n//g; s/ */ /g; s/ :/:/;' -e '/: *$/d' ) > Makefile.new
cp Makefile Makefile.bak
cp Makefile.new Makefile
/bin/rm -f Makefile.new
make[3]: Leaving directory `/usr/local/src/gtk-gnutella/src/ui/gtk'
make[2]: Leaving directory `/usr/local/src/gtk-gnutella/src/ui'
Depending in src/if...
make[2]: Entering directory `/usr/local/src/gtk-gnutella/src/if'
Depending in src/if/bridge...
make[3]: Entering directory `/usr/local/src/gtk-gnutella/src/if/bridge'
(/bin/sed '/^# DO NOT DELETE/q' Makefile && /usr/local/src/gtk-gnutella/mkdep
-I../../.. -I../.. -I/usr/include/glib-1.2 -I/usr/lib64/glib/include
-DCURDIR=src/if/bridge -W -Wall -Wformat=2 -I/usr/local/include -- c2ui.c
ui2c.c | /bin/sed -e 's:/usr/lib[^ ]*::g; s:/usr/include[^ ]*::g; ' -e
'/: / b print' -e '$ b print' -e 'H; d; n; : print' -e 'x; s/\\$//;
s/\\\n//g; s/ */ /g; s/ :/:/;' -e '/: *$/d' ) > Makefile.new
cp Makefile Makefile.bak
cp Makefile.new Makefile
/bin/rm -f Makefile.new
make[3]: Leaving directory `/usr/local/src/gtk-gnutella/src/if/bridge'
(/bin/sed '/^# DO NOT DELETE/q' Makefile && /usr/local/src/gtk-gnutella/mkdep
-I../.. -I.. -I/usr/include/glib-1.2 -I/usr/lib64/glib/include
-DCURDIR=src/if -W -Wall -Wformat=2 -I/usr/local/include -- gnet_property.c
gui_property.c | /bin/sed -e 's:/usr/lib[^ ]*::g; s:/usr/include[^ ]*::g; '
-e '/: / b print' -e '$ b print' -e 'H; d; n; : print' -e 'x;
s/\\$//; s/\\\n//g; s/ */ /g; s/ :/:/;' -e '/: *$/d' ) > Makefile.new
cp Makefile Makefile.bak
cp Makefile.new Makefile
/bin/rm -f Makefile.new
make[2]: Leaving directory `/usr/local/src/gtk-gnutella/src/if'
(/bin/sed '/^# DO NOT DELETE/q' Makefile && /usr/local/src/gtk-gnutella/mkdep
-I.. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib64/glib/include -I/usr/include/libxml2 -I/usr/include/dbus-1.0
-I/usr/lib64/dbus-1.0/include -DCURDIR=src -W -Wall -Wformat=2
-I/usr/local/include -- main.c | /bin/sed -e 's:/usr/lib[^ ]*::g;
s:/usr/include[^ ]*::g; ' -e '/: / b print' -e '$ b print' -e 'H; d; n;
: print' -e 'x; s/\\$//; s/\\\n//g; s/ */ /g; s/ :/:/;' -e '/: *$/d' )
> Makefile.new
cp Makefile Makefile.bak
cp Makefile.new Makefile
/bin/rm -f Makefile.new
make[1]: Leaving directory `/usr/local/src/gtk-gnutella/src'
Now you must run '/usr/bin/make'.
[EMAIL PROTECTED] gtk-gnutella]# make
make[1]: Entering directory `/usr/local/src/gtk-gnutella'
Making all in src...
make[2]: Entering directory `/usr/local/src/gtk-gnutella/src'
Checking gnet_property.h in if...
cd if; make gnet_property.h
make[3]: Entering directory `/usr/local/src/gtk-gnutella/src/if'
make[3]: `gnet_property.h' is up to date.
make[3]: Leaving directory `/usr/local/src/gtk-gnutella/src/if'
Continuing in src...
Checking gui_property.h in if...
cd if; make gui_property.h
make[3]: Entering directory `/usr/local/src/gtk-gnutella/src/if'
make[3]: `gui_property.h' is up to date.
make[3]: Leaving directory `/usr/local/src/gtk-gnutella/src/if'
Continuing in src...
cc -c -I.. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib64/glib/include -I/usr/include/libxml2 -I/usr/include/dbus-1.0
-I/usr/lib64/dbus-1.0/include -DCURDIR=src -O -W -Wall -Wformat=2
-I/usr/local/include main.c
main.c: In function âmainâ:
main.c:925: error: duplicate case value
main.c:925: error: previously used here
main.c:926: error: duplicate case value
main.c:926: error: previously used here
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/usr/local/src/gtk-gnutella/src'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/local/src/gtk-gnutella'
make: *** [all] Error 2
[EMAIL PROTECTED] gtk-gnutella]#
##END
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel