[Pmk-devel] Re: pmk problems on FreeBSD and DragonFlyBSD
Brought to you by:
coudercd
|
From: <tom...@am...> - 2005-09-15 08:06:01
|
Damien Couderc wrote:
>>>thanks for the report i'm going to see what's happening. Could
>>>you just copy the header of the log to see which version of PMK
>>>is used.
>>
>>dvoglav# pkg_info | grep pmk
>>pmk-0.9.2 Pre Make Kit, a sane replacement for autoconf
>=20
>=20
> Hi,
> and first my apologies for the late response but i'm a bit busy actuall=
y.
>=20
> I've took a quick look and i am amazed that it segfaults on a break ???
> Ok it should not be there but anyway segfaulting is a bit harsh, could =
it be a gcc bug on DFBSD ?
gcc 3.4.something.
> Could you try the following patch to see if it fixes something :
* Parsing define
defined 'MAJORVER' variable.
defined 'MINORVER' variable.
defined 'MICROVER' variable.
* Building shared library name
Shared library support : yes.
Segmentation fault (core dumped)
*** Error code 139
Stop in /usr/ports/databases/libmemcache.
dvoglav# gdb /usr/local/bin/pmk work/libmemcache-1.2.3/pmk.core
GNU gdb 6.2.1
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 conditi=
ons.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for detail=
s.
This GDB was configured as "i386-dragonfly"...
Core was generated by `pmk'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libc.so.4...done.
Loaded symbols for /usr/lib/libc.so.4
Reading symbols from /usr/libexec/ld-elf.so.1...done.
Loaded symbols for /usr/libexec/ld-elf.so.1
#0 process_string (pstr=3D0x0, pht=3D0x805ab20) at hash_tools.c:157
157 hash_tools.c: No such file or directory.
in hash_tools.c
(gdb) bt
#0 process_string (pstr=3D0x0, pht=3D0x805ab20) at hash_tools.c:157
#1 0x0804f691 in pmk_build_shlib_name (cmd=3D0xbfbff5d0, ht=3D0x805aae0,
pgd=3D0x805b000) at func.c:1624
#2 0x0804c443 in func_wrapper (pcell=3D0x0, pgd=3D0x54) at func.c:125
#3 0x0804c480 in process_node (pnode=3D0x805ab20, pgd=3D0x805b000) at fu=
nc.c:146
#4 0x0805548d in process_cmd (pdata=3D0x805ab20, pgd=3D0x805ab20) at pmk=
.c:567
#5 0x08055fe9 in main (argc=3D134592524, argv=3D0xbfbffacc) at pmk.c:967
(gdb)
I use gcc version 3.4.3 [DragonFly] (propolice, visibility). Adding -fno-=
stack-protector to compiling pmk did not help=20
either.
Toma=BE
|