Re: [naviserver-devel] make memcheck / valgrind
On 11/21/08, Bernd Eidenschink <[EMAIL PROTECTED]> wrote: > > > No no. Errors are bad, there should be none. > > > > Stop teasing and show us them... :-) > > > Here you go: > http://www.kinetiqa.de/naviserver/memcheck.log.txt > > TCL: 8.4.19 sources This is weird, 8.4 also has errors? (you were using 8.5.5 before?) 8.4.19 works for me. Are you compiling 32bit on a 64bit linux box? Anyway, these kinds of things are usually errors (the message is from valgrind): ==18662== Invalid read of size 4 ==18662==at 0x40151E3: (within /lib/ld-2.7.so) ==18662==by 0x4005C59: (within /lib/ld-2.7.so) ==18662==by 0x4007A87: (within /lib/ld-2.7.so) ==18662==by 0x4011533: (within /lib/ld-2.7.so) ==18662==by 0x400D5C5: (within /lib/ld-2.7.so) ==18662==by 0x4010F4D: (within /lib/ld-2.7.so) ==18662==by 0x41E9C18: (within /lib/tls/i686/cmov/libdl-2.7.so) ==18662==by 0x400D5C5: (within /lib/ld-2.7.so) ==18662==by 0x41EA2BB: (within /lib/tls/i686/cmov/libdl-2.7.so) ==18662==by 0x41E9B50: dlopen (in /lib/tls/i686/cmov/libdl-2.7.so) ==18662==by 0x41CF245: TclpDlopen (tclLoadDl.c:78) ==18662==by 0x419195C: Tcl_FSLoadFile (tclIOUtil.c:2791) ==18662== Address 0x4fd2fc0 is 32 bytes inside a block of size 35 alloc'd ==18662==at 0x4022AB8: malloc (vg_replace_malloc.c:207) ==18662==by 0x4006FC4: (within /lib/ld-2.7.so) ==18662==by 0x40079C9: (within /lib/ld-2.7.so) ==18662==by 0x4011533: (within /lib/ld-2.7.so) ==18662==by 0x400D5C5: (within /lib/ld-2.7.so) ==18662==by 0x4010F4D: (within /lib/ld-2.7.so) ==18662==by 0x41E9C18: (within /lib/tls/i686/cmov/libdl-2.7.so) ==18662==by 0x400D5C5: (within /lib/ld-2.7.so) ==18662==by 0x41EA2BB: (within /lib/tls/i686/cmov/libdl-2.7.so) ==18662==by 0x41E9B50: dlopen (in /lib/tls/i686/cmov/libdl-2.7.so) ==18662==by 0x41CF245: TclpDlopen (tclLoadDl.c:78) ==18662==by 0x419195C: Tcl_FSLoadFile (tclIOUtil.c:2791) > BTW: "make install" fails because of "install-docs" in Makefile, > maybe it would make sense to change the Makefile to be more > aware of missing "dtplite"-missing situations. The idea is that if you are building from a released tarball then the built documentation is included and you don't need dtplite. If you're building direct from the repo, you need dtplite (and autoconf, etc.). > Nice: The ns_thread.test(s) double the memory usage, saturate my box with > 100% CPU load... but, once done, all falls back to where it started. Well at least something's working! - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
Re: [naviserver-devel] nsdbpg
On 11/21/08, Bernd Eidenschink <[EMAIL PROTECTED]> wrote: > > I'm cursed. I never can compile a postgres driver for naviserver > from scratch. > > Here's my tale - maybe you can hint me to an obvious mistake: > > I compiled a Postgres 8.2.11 from source into > /opt/pgsql8.2.11 > > Then I checked out /modules/nsdbpg. > > I changed in the Makefile the line > MODLIBS= -lnsdb -lpq You shouldn't need to edit the Makefile. NAVISERVER points to the base of your naviserver install, and POSTGRES points the base of your postgres install. So, $ make NAVISERVER=/usr/local/ns POSTGRES=/opt/pgsql8.2.11 (The Makefile uses -rpath to embed the location of postgres into nsdbpg, so you shouldn't need to use LD_LIBRARY_PATH) - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
Re: [naviserver-devel] nsdbpg
change MODLIBS = -L/usr/local/ns/include/nsdb.h -L/opt/pgsql8.2.11/lib/libpq.a to MODLIBS = -lnsdb -L/opt/pgsql8.2.11/lib -lpq Bernd Eidenschink wrote: > I'm cursed. I never can compile a postgres driver for naviserver > from scratch. > > Here's my tale - maybe you can hint me to an obvious mistake: > > I compiled a Postgres 8.2.11 from source into > /opt/pgsql8.2.11 > > Then I checked out /modules/nsdbpg. > > I changed in the Makefile the line > MODLIBS= -lnsdb -lpq > > to > MODLIBS = -L/usr/local/ns/include/nsdb.h -L/opt/pgsql8.2.11/lib/libpq.a > > and started make with the line > make NAVISERVER=/usr/local/ns > CFLAGS="-I/opt/pgsql8.2.11/lib -I/opt/pgsql8.2.11/include > -I/usr/local/ns/include" > > It compiles. The only output is: > gcc -I/opt/pgsql8.2.11/lib -I/opt/pgsql8.2.11/include -I/usr/local/ns/include > -c -o > nsdbpg.o nsdbpg.c > gcc -I/opt/pgsql8.2.11/lib -I/opt/pgsql8.2.11/include -I/usr/local/ns/include > -c -o > tclcmds.o tclcmds.c > tclcmds.c: In function ‘stream_actually_write’: > tclcmds.c:830: warning: ‘Ns_ConnWrite’ is deprecated (declared > at /usr/local/ns/include/ns.h:) > /bin/rm -Rf nsdbpg.so > gcc -shared -I/opt/pgsql8.2.11/lib -I/opt/pgsql8.2.11/include > -I/usr/local/ns/include -L/usr/local/ns/lib -o > nsdbpg.so nsdbpg.o > tclcmds.o -L/usr/local/ns/include/nsdb.h -L/opt/pgsql8.2.11/lib/libpq.a > -lnsthread -lnsd -L/usr/local/ns/lib -ltcl8.4 -ldl -lgcc_s -lieee -lm > -Wl,--export-dynamic -L/usr/local/ns/lib -Wl,-rpath,:/usr/local/ns/lib > > So this warning about Ns_ConnWrite - ignored. > > No doing a "ldd nsdbpg.so" > returns > > linux-gate.so.1 => (0xb7fce000) > libnsthread.so => /usr/local/ns/lib/libnsthread.so (0xb7fbe000) > libnsd.so => /usr/local/ns/lib/libnsd.so (0xb7f46000) > libtcl8.4.so => /usr/local/ns/lib/libtcl8.4.so (0xb7e9) > libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e87000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e7c000) > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e57000) > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d08000) > libz.so.1 => /usr/lib/libz.so.1 (0xb7cf2000) > libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7cc) > libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7ca8000) > /lib/ld-linux.so.2 (0xb7fcf000) > > > Hm. On another server "libpq" and "libnsdb" come up, > missing here. > > When trying to run naviserver, called from my startscript > with an exported LD_LIBRARY_PATH of > > export > LD_LIBRARY_PATH=/usr/local/ns/lib:/usr/local/ns/lib/xotcl1.6.2:/usr/local/ns/bin:/opt/pgsql8.2.11/lib:/usr/local/lib > > including the postgres directory, I get: > > [21/Nov/2008:18:23:52][5641.b7c426b0][-main-] Error: > modload: /usr/local/ns/bin/nsdbpg.so: couldn't load > file "/usr/local/ns/bin/nsdbpg.so": /usr/local/ns/bin/nsdbpg.so: undefined > symbol: PQsetdbLogin > > Can you help me, Veronica Mars? > > Bernd. > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > naviserver-devel mailing list > naviserver-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/naviserver-devel - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
[naviserver-devel] nsdbpg
I'm cursed. I never can compile a postgres driver for naviserver from scratch. Here's my tale - maybe you can hint me to an obvious mistake: I compiled a Postgres 8.2.11 from source into /opt/pgsql8.2.11 Then I checked out /modules/nsdbpg. I changed in the Makefile the line MODLIBS= -lnsdb -lpq to MODLIBS = -L/usr/local/ns/include/nsdb.h -L/opt/pgsql8.2.11/lib/libpq.a and started make with the line make NAVISERVER=/usr/local/ns CFLAGS="-I/opt/pgsql8.2.11/lib -I/opt/pgsql8.2.11/include -I/usr/local/ns/include" It compiles. The only output is: gcc -I/opt/pgsql8.2.11/lib -I/opt/pgsql8.2.11/include -I/usr/local/ns/include -c -o nsdbpg.o nsdbpg.c gcc -I/opt/pgsql8.2.11/lib -I/opt/pgsql8.2.11/include -I/usr/local/ns/include -c -o tclcmds.o tclcmds.c tclcmds.c: In function ‘stream_actually_write’: tclcmds.c:830: warning: ‘Ns_ConnWrite’ is deprecated (declared at /usr/local/ns/include/ns.h:) /bin/rm -Rf nsdbpg.so gcc -shared -I/opt/pgsql8.2.11/lib -I/opt/pgsql8.2.11/include -I/usr/local/ns/include -L/usr/local/ns/lib -o nsdbpg.so nsdbpg.o tclcmds.o -L/usr/local/ns/include/nsdb.h -L/opt/pgsql8.2.11/lib/libpq.a -lnsthread -lnsd -L/usr/local/ns/lib -ltcl8.4 -ldl -lgcc_s -lieee -lm -Wl,--export-dynamic -L/usr/local/ns/lib -Wl,-rpath,:/usr/local/ns/lib So this warning about Ns_ConnWrite - ignored. No doing a "ldd nsdbpg.so" returns linux-gate.so.1 => (0xb7fce000) libnsthread.so => /usr/local/ns/lib/libnsthread.so (0xb7fbe000) libnsd.so => /usr/local/ns/lib/libnsd.so (0xb7f46000) libtcl8.4.so => /usr/local/ns/lib/libtcl8.4.so (0xb7e9) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e87000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e7c000) libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e57000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d08000) libz.so.1 => /usr/lib/libz.so.1 (0xb7cf2000) libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7cc) libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7ca8000) /lib/ld-linux.so.2 (0xb7fcf000) Hm. On another server "libpq" and "libnsdb" come up, missing here. When trying to run naviserver, called from my startscript with an exported LD_LIBRARY_PATH of export LD_LIBRARY_PATH=/usr/local/ns/lib:/usr/local/ns/lib/xotcl1.6.2:/usr/local/ns/bin:/opt/pgsql8.2.11/lib:/usr/local/lib including the postgres directory, I get: [21/Nov/2008:18:23:52][5641.b7c426b0][-main-] Error: modload: /usr/local/ns/bin/nsdbpg.so: couldn't load file "/usr/local/ns/bin/nsdbpg.so": /usr/local/ns/bin/nsdbpg.so: undefined symbol: PQsetdbLogin Can you help me, Veronica Mars? Bernd. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel
Re: [naviserver-devel] make memcheck / valgrind
> No no. Errors are bad, there should be none. > > Stop teasing and show us them... :-) Here you go: http://www.kinetiqa.de/naviserver/memcheck.log.txt TCL: 8.4.19 sources Naviserver: trunk (CVS) /tmp/tease/naviserver$ ./autogen.sh --enable-symbols --enable-threads --prefix=/tmp/ns --with-tcl=/tmp/ns/lib (guess thats ignorable:) Running aclocal -I m4 /usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT /usr/share/aclocal/libmcrypt.m4:17: run info '(automake)Extending aclocal' /usr/share/aclocal/libmcrypt.m4:17: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal Running autoheader BTW: "make install" fails because of "install-docs" in Makefile, maybe it would make sense to change the Makefile to be more aware of missing "dtplite"-missing situations. Nice: The ns_thread.test(s) double the memory usage, saturate my box with 100% CPU load... but, once done, all falls back to where it started. cu BE - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel