On Tue, 22 Apr 2008 00:22:41 +1000
Norberto Meijome <[EMAIL PROTECTED]> wrote:

> Hi everyone,
> For a while now i've been unable to upgrade to the latest lang/guile port. I 
> am
> running 7.0-STABLE (world and kernel up to date about twice weekly) on x86. my
> current guile is 
> 
> guile-1.6.8_3       GNU Ubiquitous Intelligent Language for Extension
> 
[...]
> ---
> make distclean; make 
> [...]
> 
[...]
> scmconfig.h.tmp ./gen-scmconfig >> scmconfig.h.tmp Segmentation fault (core
> dumped) gmake[2]: *** [scmconfig.h] Error 139 gmake[2]: Leaving directory
> `/usr/ports/lang/guile/work/guile-1.8.4/libguile' gmake[1]: *** 
> [all-recursive]
> Error 1 gmake[1]: Leaving directory `/usr/ports/lang/guile/work/guile-1.8.4'
> gmake: *** [all] Error 2
> *** Error code 2
> 
> Stop in /usr/ports/lang/guile.
> 
[...]

Short answer : uninstall (corrupted?) linuxthreads package.

full story, for the archive...

ok, so I figured i needed to dig deeper...
- i enable debugging ( CFLAGS+= -ggdb in /etc/make.conf)
- I built libc (only that) with debug symbols (  sudo make  -DDEBUG_FLAGS=-g  
in /usr/src/lib/libc , and DEBUG_FLAGS=-g in /etc/make.conf so the libs are not 
stripped on make install)

when I run gdb, i got this...

[EMAIL PROTECTED] [Wed Apr 23 01:38:52 2008]
/usr/ports/lang/guile/work/guile-1.8.4/libguileESC[0m^B
ESCkESC\# ESC[Kgdb gen-scESCgmconfig gen-ESCgscmconfig.cESCgore 
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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-marcel-freebsd"...
Core was generated by `gen-scmconfig'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/liblthread.so.6...done.
Loaded symbols for /usr/local/lib/liblthread.so.6
Reading symbols from /usr/local/lib/libgmp.so.7...done.
Loaded symbols for /usr/local/lib/libgmp.so.7
Reading symbols from /lib/libcrypt.so.4...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libltdl.so.4...done.
Loaded symbols for /usr/local/lib/libltdl.so.4
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2804b4a7 in ___tls_get_addr () from /libexec/ld-elf.so.1
(gdb) bt
#0  0x2804b4a7 in ___tls_get_addr () from /libexec/ld-elf.so.1
#1  0x2816fa9b in malloc () from /lib/libc.so.7
#2  0x2808be69 in _pthread_mutex_destroy () from /usr/local/lib/liblthread.so.6
#3  0x2808bf27 in _pthread_mutex_trylock () from /usr/local/lib/liblthread.so.6
#4  0x00000002 in ?? ()
#5  0x00000000 in ?? ()
#6  0x00000000 in ?? ()
#7  0x281f6858 in ?? () from /lib/libc.so.7
#8  0x00000003 in ?? ()
#9  0xbbc00118 in ?? ()
#10 0x2816faeb in malloc () from /lib/libc.so.7
Previous frame inner to this frame (corrupt stack?)

Which doesnt mean much at all to me.... 

but the mention of /usr/local/lib/liblthread.so.6 caught my eye as I hadn't 
seen it before... it turned out it belonged to package linuxthreads. I checked 
the package, nothing depended on it... and I didn't have my local package 
(which possibly points to a v old package in my box)... so i uninstalled 
it...and presto, fixed - rebuilt port with no other problems

Best,
B
_________________________
{Beto|Norberto|Numard} Meijome

If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there, and you can't see it, it's transparent.
If it's not there, and you can't see it, you erased it.

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to