Re: [OpenWrt-Tickets] [OpenWrt] #22193: libglib fails to compile

2016-06-02 Thread OpenWrt
#22193: libglib fails to compile
---+---
  Reporter:  Mangix|  Owner:  developers
  Type:  defect| Status:  new
  Priority:  normal|  Milestone:  Designated Driver (Trunk)
 Component:  packages  |Version:  Trunk
Resolution:|   Keywords:
---+---

Comment (by jaime.terrats@…):

 Hi, when I'm applying the first patch, i got this message:

 if [ -d patches/glib/openwrt ]; then for f in patches/glib/openwrt/*; do
 (cd openwrt && patch -p0 < ../$f); done; fi
 can't find file to patch at input line 3
 Perhaps you used the wrong -p or --strip option?
 The text leading up to this was:
 --
 |--- glib/gdate.c.orig2014-12-19 21:49:48.0 +
 |+++ glib/gdate.c
 --
 File to patch:

 what am I doing wrong?

 thanks!

--
Ticket URL: 
OpenWrt 
Opensource Wireless Router Technology
___
openwrt-tickets mailing list
openwrt-tickets@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets


Re: [OpenWrt-Tickets] [OpenWrt] #22193: libglib fails to compile

2016-05-05 Thread OpenWrt
#22193: libglib fails to compile
---+---
  Reporter:  Mangix|  Owner:  developers
  Type:  defect| Status:  new
  Priority:  normal|  Milestone:  Designated Driver (Trunk)
 Component:  packages  |Version:  Trunk
Resolution:|   Keywords:
---+---

Comment (by kofec):

 Other fixes which have to be applied:
 linux/compiler-gcc6.h: No such file or directory openwrt
 compiler-gcc6.h uboot
 [https://patchwork.ozlabs.org/patch/577912/]

 and
 cfns.gperf:101:1: error:
 from
 [https://drive.google.com/file/d/0BwWNLQDwiOxtYnJSRm1Dam9XTU0/view?usp=sharing]
 {{{
 --- gcc/cp/cfns.h.orig  2015-02-13 08:27:46.0 +0200
 +++ gcc/cp/cfns.h   2015-02-13 10:23:53.0 +0200
 @@ -53,6 +53,9 @@
  static unsigned int hash (const char *, unsigned int);
  #ifdef __GNUC__
  __inline
 +#ifdef __GNUC_STDC_INLINE__
 +__attribute__ ((__gnu_inline__))
 +#endif
  #endif
  const char * libc_name_p (const char *, unsigned int);
  /* maximum key range = 391, duplicates = 0 */
 @@ -96,7 +99,7 @@
400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
400, 400, 400, 400, 400, 400, 400
  };
 -  register int hval = len;
 +  register int hval = (int)len;

switch (hval)
  {
 }}}

--
Ticket URL: 
OpenWrt 
Opensource Wireless Router Technology
___
openwrt-tickets mailing list
openwrt-tickets@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets


Re: [OpenWrt-Tickets] [OpenWrt] #22193: libglib fails to compile

2016-05-05 Thread OpenWrt
#22193: libglib fails to compile
---+---
  Reporter:  Mangix|  Owner:  developers
  Type:  defect| Status:  new
  Priority:  normal|  Milestone:  Designated Driver (Trunk)
 Component:  packages  |Version:  Trunk
Resolution:|   Keywords:
---+---

Comment (by anonymous):

 I have applied below fix:

 {{{
  >  +--- glib/gdate.c.orig  2014-12-19 21:49:48.0 +
  >   glib/gdate.c
  >  +@@ -2494,7 +2494,10 @@ g_date_strftime (gchar   *s,
  >  +* recognize whether strftime actually failed or just returned
 "".
  >  +*/
  >  +   tmpbuf[0] = '\1';
  >  ++  #pragma GCC diagnostic push
  >  ++  #pragma GCC diagnostic ignored "-Wformat-nonliteral"
  >  +   tmplen = strftime (tmpbuf, tmpbufsize, locale_format, );
  >  ++  #pragma GCC diagnostic pop
  >  +
  >  +   if (tmplen == 0 && tmpbuf[0] != '\0')
  >  + {

 }}}
 from
 [https://mail-index.netbsd.org/pkgsrc-bugs/2016/02/23/msg058866.html]

--
Ticket URL: 
OpenWrt 
Opensource Wireless Router Technology
___
openwrt-tickets mailing list
openwrt-tickets@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets


Re: [OpenWrt-Tickets] [OpenWrt] #22193: libglib fails to compile

2016-05-05 Thread OpenWrt
#22193: libglib fails to compile
---+---
  Reporter:  Mangix|  Owner:  developers
  Type:  defect| Status:  new
  Priority:  normal|  Milestone:  Designated Driver (Trunk)
 Component:  packages  |Version:  Trunk
Resolution:|   Keywords:
---+---

Comment (by anonymous):

 I have the same issue:

 {{{
 /usr/bin/env bash ../libtool  --tag=CC   --mode=compile gcc
 -DHAVE_CONFIG_H -I. -I..  -I.. -I../glib -I../glib -I..
 -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DGLIB_COMPILATION
 -DPCRE_STATIC
 -I/media/kofec/Linux/openwrt/kirkwoodTrunk/staging_dir/host/include
 -I/media/kofec/Linux/openwrt/kirkwoodTrunk/staging_dir/host/usr/include
 -pthread -Wall -Wstrict-prototypes -Werror=declaration-after-statement
 -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror
 =pointer-arith -Werror=init-self -Werror=format=2 -fvisibility=hidden -O2
 -I/media/kofec/Linux/openwrt/kirkwoodTrunk/staging_dir/host/include
 -I/media/kofec/Linux/openwrt/kirkwoodTrunk/staging_dir/host/usr/include
 -MT libglib_2_0_la-gdate.lo -MD -MP -MF .deps/libglib_2_0_la-gdate.Tpo -c
 -o libglib_2_0_la-gdate.lo `test -f 'gdate.c' || echo './'`gdate.c
 libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../glib -I../glib
 -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DGLIB_COMPILATION
 -DPCRE_STATIC
 -I/media/kofec/Linux/openwrt/kirkwoodTrunk/staging_dir/host/include
 -I/media/kofec/Linux/openwrt/kirkwoodTrunk/staging_dir/host/usr/include
 -pthread -Wall -Wstrict-prototypes -Werror=declaration-after-statement
 -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror
 =pointer-arith -Werror=init-self -Werror=format=2 -fvisibility=hidden -O2
 -I/media/kofec/Linux/openwrt/kirkwoodTrunk/staging_dir/host/include
 -I/media/kofec/Linux/openwrt/kirkwoodTrunk/staging_dir/host/usr/include
 -MT libglib_2_0_la-gdate.lo -MD -MP -MF .deps/libglib_2_0_la-gdate.Tpo -c
 gdate.c -o libglib_2_0_la-gdate.o
 gdate.c: In function 'g_date_strftime':
 gdate.c:2497:7: error: format not a string literal, format string not
 checked [-Werror=format-nonliteral]
tmplen = strftime (tmpbuf, tmpbufsize, locale_format, );
^~
 cc1: some warnings being treated as errors
 make[10]: *** [libglib_2_0_la-gdate.lo] Error 1
 make[10]: Leaving directory
 `/media/kofec/Linux/openwrt/kirkwoodTrunk/build_dir/host/pkg-
 config-0.29.1/glib/glib'
 make[9]: *** [all-recursive] Error 1
 make[9]: Leaving directory
 `/media/kofec/Linux/openwrt/kirkwoodTrunk/build_dir/host/pkg-
 config-0.29.1/glib/glib'
 make[8]: *** [all] Error 2
 make[8]: Leaving directory
 `/media/kofec/Linux/openwrt/kirkwoodTrunk/build_dir/host/pkg-
 config-0.29.1/glib/glib'
 make[7]: *** [all-recursive] Error 1
 make[7]: Leaving directory
 `/media/kofec/Linux/openwrt/kirkwoodTrunk/build_dir/host/pkg-
 config-0.29.1/glib'
 make[6]: *** [all] Error 2
 make[6]: Leaving directory
 `/media/kofec/Linux/openwrt/kirkwoodTrunk/build_dir/host/pkg-
 config-0.29.1/glib'
 make[5]: *** [all-recursive] Error 1
 make[5]: Leaving directory
 `/media/kofec/Linux/openwrt/kirkwoodTrunk/build_dir/host/pkg-
 config-0.29.1'
 make[4]: *** [all] Error 2
 make[4]: Leaving directory
 `/media/kofec/Linux/openwrt/kirkwoodTrunk/build_dir/host/pkg-
 config-0.29.1'
 make[3]: *** [/media/kofec/Linux/openwrt/kirkwoodTrunk/build_dir/host/pkg-
 config-0.29.1/.built] Error 2
 make[3]: Leaving directory `/media/kofec/Linux/openwrt/kirkwoodTrunk/tools
 /pkg-config'
 make[2]: *** [tools/pkg-config/compile] Error 2
 make[2]: Leaving directory `/media/kofec/Linux/openwrt/kirkwoodTrunk'
 make[1]: *** [/media/kofec/Linux/openwrt/kirkwoodTrunk/staging_dir/target-
 
arm_xscale_musl-1.1.14_eabi/stamp/.tools_install_yynyynynynyyynyyynynynnyynynnyyynnnyy]
 Error 2
 make[1]: Leaving directory `/media/kofec/Linux/openwrt/kirkwoodTrunk'

 }}}

--
Ticket URL: 
OpenWrt 
Opensource Wireless Router Technology
___
openwrt-tickets mailing list
openwrt-tickets@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets