hns - 日記自動生成システム - Version 2.19.9

先月 2014年02月 来月
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2014年02月26日(水) 旧暦 [n年日記] [更新:"2014/03/02 23:58:19"]

#1 [pkgsrc][cygwin] pkgtools/p5-pkgsrc-Dewey error: 'ssize_t' undeclared

cd /usr/pkgsrc/pkgtools/p5-pkgsrc-Dewey; 
bmake package
...
gcc -c -I.  -O -D_REENTRANT -I/usr/include
  -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing
  -pipe -fstack-protector -DUSEIMPORTLIB -O -I/usr/pkg/include
  -I/usr/include -DHAVE_CTYPE_H -DHAVE_STDLIB_H -DHAVE_STRING_H
  -I/usr/pkg/include -I/usr/include -DVERSION=\"1.1\"
  -DXS_VERSION=\"1.1\"
  "-I/usr/pkg/lib/perl5/5.18.0/cygwin-thread-multi/CORE"
  lib_dewey.c
In file included from lib_dewey.c:43:0:
lib_dewey.c: In function 'dewey_match':
lib_dewey.c:309:26: error: 'ssize_t' undeclared (first use in this function)
   strlcpy(ver, sep, MIN((ssize_t)sizeof(ver), sep2-sep+1));
                          ^
defs.h:49:21: note: in definition of macro 'MIN'
 #define MIN(a,b) (((a) < (b)) ? (a) : (b))

lib_dewey.c:309:26: note: each undeclared identifier is
  reported only once for each function it appears in
   strlcpy(ver, sep, MIN((ssize_t)sizeof(ver), sep2-sep+1));
Interim fix ;-)
m08@makoto 12:01:32/140226(..pkgtools/p5-pkgsrc-Dewey)% cat patches/patch-defs_h 
--- defs.h.orig 2014-02-26 12:00:12.994200000 +0900
+++ defs.h      2014-02-26 12:00:45.718700000 +0900
@@ -30,6 +30,9 @@
  */
 #ifndef DEFS_H_
 #define DEFS_H_
+#ifndef ssize_t
+#define ssize_t        int
+#endif
 
 #if HAVE_CONFIG_H
 #include "config.h"

#2 bison-3.0.2.tar.xz: File already has `.xz' suffix, skipping

=> Checksum SHA1 OK for bison-3.0.2.tar.xz
=> Checksum RMD160 OK for bison-3.0.2.tar.xz
===> Extracting for bison-3.0.2
/bin/xz: /usr/pkgsrc/distfiles/bison-3.0.2.tar.xz: File already has `.xz' suffix, skipping
/bin/tar: This does not look like a tar archive
/bin/tar: Exiting with failure status due to previous errors
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/devel/bison
*** Error code 1
Index: mk/tools/tools.Cygwin.mk
===================================================================
RCS file: /cvs/cvsroot/pkgsrc/mk/tools/tools.Cygwin.mk,v
retrieving revision 1.5
diff -u -r1.5 tools.Cygwin.mk
--- mk/tools/tools.Cygwin.mk	6 Nov 2013 13:12:50 -0000	1.5
+++ mk/tools/tools.Cygwin.mk	26 Feb 2014 03:15:27 -0000
@@ -139,7 +139,7 @@
 .if exists(/bin/xgettext)
 TOOLS_PLATFORM.xgettext?=	/bin/xgettext
 .endif
-TOOLS_PLATFORM.xzcat?=		/bin/xz
+TOOLS_PLATFORM.xz?=		/bin/xz
 TOOLS_PLATFORM.xzcat?=		/bin/xzcat
 .if exists(/bin/yacc)
 TOOLS_PLATFORM.yacc?=		/bin/yacc

#3 security/tcp_wrappers

percent_m.c:18:14: error: conflicting types for 'sys_errlist':

libtool: compile: gcc -O -DFACILITY=LOG_MAIL -DHOSTS_ACCESS
  -DPARANOID -DNETGROUP -DGETPEERNAME_BUG -DBROKEN_FGETS
  -DLIBC_CALLS_STRTOK -DDAEMON_UMASK=022
  -DREAL_DAEMON_DIR=\"/usr/sbin\" -DSEVERITY=LOG_INFO
  -DRFC931_TIMEOUT=10 -DHOSTS_DENY=\"/etc/hosts.deny\"
  -HOSTS_ALLOW=\"/etc/hosts.allow\" -Dvsyslog=myvsyslog
  -DALWAYS_HOSTNAME -DHAVE_IPV6 -c percent_m.c -DDLL_EXPORT
  -DPIC -o .libs/percent_m.o

 percent_m.c:18:14: error: conflicting types for 'sys_errlist'
 extern char *sys_errlist[];
              ^
In file included from /usr/include/errno.h:9:0,
                 from percent_m.c:12:
/usr/include/sys/errno.h:23:36: note: previous declaration of 'sys_errlist' was here
 extern __IMPORT const char * const sys_errlist[];
                                    ^
percent_m.c:19:12: warning: 'sys_nerr' redeclared without
  dllimport attribute: previous dllimport ignored [-Wattributes]
 extern int sys_nerr;
            ^
*** Error code 1

undefined reference to `yp_get_default_domain':

libtool: link: gcc -O -DFACILITY=LOG_MAIL -DHOSTS_ACCESS
  -DPARANOID -DNETGROUP -DGETPEERNAME_BUG -DBROKEN_FGETS
  -DLIBC_CALLS_STRTOK -DDAEMON_UMASK=022
  -DREAL_DAEMON_DIR=\"/usr/sbin\" -DSEVERITY=LOG_INFO
  -DRFC931_TIMEOUT=10 -DHOSTS_DENY=\"/etc/hosts.deny\"
  -DHOSTS_ALLOW=\"/etc/hosts.allow\" -Dvsyslog=myvsyslog
  -DALWAYS_HOSTNAME -DHAVE_IPV6 -o .libs/tcpd tcpd.o
  ./.libs/libwrap.a
  -L/cygdrive/g/WRKOBJDIR/security/tcp_wrappers/work/.buildlink/lib

./.libs/libwrap.a(hosts_access.o):hosts_access.c:(.text+0x184):
  undefined reference to `yp_get_default_domain'

./.libs/libwrap.a(hosts_access.o):hosts_access.c:(.text+0x184):
  relocation truncated to fit: R_X86_64_PC32 against undefined
  symbol `yp_get_default_domain'

./.libs/libwrap.a(hosts_access.o):hosts_access.c:(.text+0x1a8):
  undefined reference to `innetgr'

./.libs/libwrap.a(hosts_access.o):hosts_access.c:(.text+0x1a8):
  relocation truncated to fit: R_X86_64_PC32 against undefined
  ymbol `innetgr'

/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld:
  ./.libs/libwrap.a(hosts_access.o): bad reloc address 0x8 in
  section `.data'

/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld:
  final link failed: Invalid operation

collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
make: stopped in /cygdrive/g/WRKOBJDIR/security/tcp_wrappers/work/tcp_wrappers_7.6-ipv6.4
tcp-wrappers.diff



最近の日記
2024年07月03日
kicad oddity
2024年05月08日
comparison on ./buildsh tools
2024年05月06日
py-setuptools (python 3.11.9)
make release took 1 hours and 10 min
qemu invocation for 10.99.10
2024年05月05日
Windows 10 version
serial connection
bc bench
2024年05月04日
Trial on 10.99.10
another version (later trial) to succeed
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)