[Pmk-devel] Re: pmk problems on FreeBSD and DragonFlyBSD
Brought to you by:
coudercd
|
From: <tom...@am...> - 2005-09-11 11:17:13
|
Damien Couderc wrote:
> BTW i'm surprised it doesn't work under freebsd as the author of=20
> libmemcache is a committer.
Now it works on FreeBSD 4.11:
* Checking binary [rm_config]
Found binary 'rm' : yes.
* Checking binary [tar_config]
Found binary 'tar' : yes.
* Checking header [include_read]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'unistd.h' : yes.
Found function 'read' : yes.
* Checking header [include_freeaddrinfo]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'netdb.h' : yes.
Found function 'freeaddrinfo' : yes.
* Checking header [include_getaddrinfo]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'netdb.h' : yes.
Found function 'getaddrinfo' : yes.
* Checking header [include_types]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'sys/types.h' : yes.
* Checking header [include_time]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'sys/time.h' : yes.
* Checking header [include_isspace]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'ctype.h' : yes.
Found function 'isspace' : yes.
* Checking header [include_errno]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'errno.h' : yes.
Found function 'errno' : no.
* Checking header [include_fcntl]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'fcntl.h' : yes.
Found function 'fcntl' : yes.
* Checking header [include_write]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'unistd.h' : yes.
Found function 'write' : yes.
* Checking header [include_snprintf]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'stdio.h' : yes.
Found function 'snprintf' : yes.
* Checking header [include_err]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'err.h' : yes.
Found function 'err' : yes.
* Checking header [include_errx]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'err.h' : yes.
Found function 'errx' : yes.
* Checking header [include_warn]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'err.h' : yes.
Found function 'warn' : yes.
* Checking header [include_warnx]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'err.h' : yes.
Found function 'warnx' : yes.
* Checking header [include_sysexits]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'sysexits.h' : yes.
* Checking header [include_abort]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'stdlib.h' : yes.
Found function 'abort' : yes.
* Checking header [include_free]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'stdlib.h' : yes.
Found function 'free' : yes.
* Checking header [include_malloc]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'stdlib.h' : yes.
Found function 'malloc' : yes.
* Checking header [include_realloc]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'stdlib.h' : yes.
Found function 'realloc' : yes.
* Checking header [include_memcmp]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'string.h' : yes.
Found function 'memcmp' : yes.
* Checking header [include_memchr]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'string.h' : yes.
Found function 'memchr' : yes.
* Checking header [include_bcopy]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'strings.h' : yes.
Found function 'bcopy' : yes.
* Checking header [include_bzero]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'strings.h' : yes.
Found function 'bzero' : yes.
* Checking header [include_strdup]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'string.h' : yes.
Found function 'strdup' : yes.
* Checking header [include_strlen]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'string.h' : yes.
Found function 'strlen' : yes.
* Checking header [include_strtol]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'stdlib.h' : yes.
Found function 'strtol' : yes.
* Checking header [include_strtoll]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'stdlib.h' : yes.
Found function 'strtoll' : yes.
* Checking header [include_close]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'unistd.h' : yes.
Found function 'close' : yes.
* Parsing define
defined 'MAJORVER' variable.
defined 'MINORVER' variable.
defined 'MICROVER' variable.
* Building shared library name
Shared library support : yes.
Setting LIBNAME to 'libmemcache.so'
Setting LIBNAMEV to 'libmemcache.so.1.2'
Process templates :
Created '/usr/ports/databases/libmemcache/work/libmemcache-1.2.3/Makefile=
'.
End of log
=3D=3D=3D> Building for libmemcache-1.2.3_1
/usr/bin/cc -pipe -O3 -I/usr/include -fPIC -c memcache.c
memcache.c: In function `mcm_atomic_cmd':
memcache.c:498: warning: assignment discards qualifiers from pointer targ=
et type
memcache.c:500: warning: assignment discards qualifiers from pointer targ=
et type
memcache.c:502: warning: assignment discards qualifiers from pointer targ=
et type
memcache.c:512: warning: assignment discards qualifiers from pointer targ=
et type
memcache.c: In function `mcm_delete':
memcache.c:584: warning: assignment discards qualifiers from pointer targ=
et type
memcache.c:586: warning: assignment discards qualifiers from pointer targ=
et type
memcache.c:588: warning: assignment discards qualifiers from pointer targ=
et type
memcache.c:598: warning: assignment discards qualifiers from pointer targ=
et type
memcache.c: In function `mcm_fetch_cmd':
memcache.c:642: warning: assignment discards qualifiers from pointer targ=
et type
memcache.c:652: warning: assignment discards qualifiers from pointer targ=
et type
memcache.c:656: warning: assignment discards qualifiers from pointer targ=
et type
memcache.c:666: warning: assignment discards qualifiers from pointer targ=
et type
memcache.c: In function `mcm_res_free':
memcache.c:1298: warning: passing arg 1 of pointer to function discards q=
ualifiers from pointer target type
memcache.c: In function `mcm_storage_cmd':
memcache.c:2159: warning: assignment discards qualifiers from pointer tar=
get type
memcache.c:2161: warning: assignment discards qualifiers from pointer tar=
get type
memcache.c:2163: warning: assignment discards qualifiers from pointer tar=
get type
memcache.c:2205: warning: assignment discards qualifiers from pointer tar=
get type
memcache.c:2212: warning: assignment discards qualifiers from pointer tar=
get type
memcache.c:2216: warning: assignment discards qualifiers from pointer tar=
get type
/usr/bin/cc -pipe -O3 -I/usr/include -fPIC -shared -o libmemcache.so.1.2 =
memcache.o
/usr/bin/ar cr libmemcache.a memcache.o
/usr/bin/ranlib libmemcache.a
garac#
----
But pmk dies on DragonFlyBSD 1.2.5 while doing the same:
* Checking binary [mv_config]
Found binary 'mv' : yes.
* Checking binary [pmk_config]
Found binary 'pmk' : yes.
* Checking binary [rm_config]
Found binary 'rm' : yes.
* Checking binary [tar_config]
Found binary 'tar' : yes.
* Checking header [include_read]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'unistd.h' : yes.
Found function 'read' : yes.
* Checking header [include_freeaddrinfo]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'netdb.h' : yes.
Found function 'freeaddrinfo' : yes.
* Checking header [include_getaddrinfo]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'netdb.h' : yes.
Found function 'getaddrinfo' : yes.
* Checking header [include_types]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'sys/types.h' : yes.
* Checking header [include_time]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'sys/time.h' : yes.
* Checking header [include_isspace]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'ctype.h' : yes.
Found function 'isspace' : yes.
* Checking header [include_errno]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'errno.h' : yes.
Found function 'errno' : no.
* Checking header [include_fcntl]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'fcntl.h' : yes.
Found function 'fcntl' : yes.
* Checking header [include_write]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'unistd.h' : yes.
Found function 'write' : yes.
* Checking header [include_snprintf]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'stdio.h' : yes.
Found function 'snprintf' : yes.
* Checking header [include_err]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'err.h' : yes.
Found function 'err' : yes.
* Checking header [include_errx]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'err.h' : yes.
Found function 'errx' : yes.
* Checking header [include_warn]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'err.h' : yes.
Found function 'warn' : yes.
* Checking header [include_warnx]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'err.h' : yes.
Found function 'warnx' : yes.
* Checking header [include_sysexits]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'sysexits.h' : yes.
* Checking header [include_abort]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'stdlib.h' : yes.
Found function 'abort' : yes.
* Checking header [include_free]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'stdlib.h' : yes.
Found function 'free' : yes.
* Checking header [include_malloc]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'stdlib.h' : yes.
Found function 'malloc' : yes.
* Checking header [include_realloc]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'stdlib.h' : yes.
Found function 'realloc' : yes.
* Checking header [include_memcmp]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'string.h' : yes.
Found function 'memcmp' : yes.
* Checking header [include_memchr]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'string.h' : yes.
Found function 'memchr' : yes.
* Checking header [include_bcopy]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'strings.h' : yes.
Found function 'bcopy' : yes.
* Checking header [include_bzero]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'strings.h' : yes.
Found function 'bzero' : yes.
* Checking header [include_strdup]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'string.h' : yes.
Found function 'strdup' : yes.
* Checking header [include_strlen]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'string.h' : yes.
Found function 'strlen' : yes.
* Checking header [include_strtol]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'stdlib.h' : yes.
Found function 'strtol' : yes.
* Checking header [include_strtoll]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'stdlib.h' : yes.
Found function 'strtoll' : yes.
* Checking header [include_close]
Use C language with CC compiler.
Store compiler flags in 'CFLAGS'.
Found header 'unistd.h' : yes.
Found function 'close' : yes.
* 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.
*** Error code 1
Stop in /usr/ports/databases/libmemcache.
dvoglav# ls
Makefile files pkg-plist
distinfo pkg-descr work
dvoglav# find . -name "*core" -print
./work/libmemcache-1.2.3/pmk.core
dvoglav# whereis pmk
pmk: /usr/local/bin/pmk /usr/local/man/man1/pmk.1.gz /usr/ports/devel/pmk
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:158
158 break;
(gdb) where
#0 process_string (pstr=3D0x0, pht=3D0x805ab20) at hash_tools.c:158
#1 0x0804f691 in pmk_build_shlib_name (cmd=3D0xbfbff560, 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 0x08055489 in process_cmd (pdata=3D0x805ab20, pgd=3D0x805ab20) at pmk=
.c:567
#5 0x08055fe5 in main (argc=3D134592524, argv=3D0xbfbffa58) at pmk.c:967
(gdb)
-----------
Thanks in advance.
Toma=BE
>=20
> Damien
|