Trond Endrestøl
2015-Jan-05 09:49 UTC
Upgrading from stable/8 to stable/9 blocked by file 5.21 (r276416)
On Sun, 4 Jan 2015 12:53-0800, Xin Li wrote:> On 1/4/15 09:41, Trond Endrest?l wrote: > > Hi, > > > > I'm investigating how to convert my stable/8 systems to stable/9, > > and subsequently to stable/10. > > > [...] > > In file included from > > /usr/src/lib/libmagic/../../contrib/file/src/print.c:32: > > /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: > > expected specifier-qualifier-list before 'locale_t' *** Error code > > 1 1 error *** Error code 2 1 error *** Error code 2 1 error *** > > Error code 2 1 error > > Looks like you are using -j -- have you tried building without -j?I did a test run on one of my stable/8 servers. That one's currently running stable/8 r276500 and it attempted to build stable/9 r276691 single threaded. No such luck. Unless this problem is resolved, then those of us migrating from stable/8 to stable/{9,10} need a pit stop at stable/9 r276385. ===> lib/libmagic (obj,build-tools) gcc -O2 -pipe -DMAGIC='"/usr/share/misc/magic"' -DHAVE_CONFIG_H -I/usr/src/lib/libmagic -I/usr/src/lib/libmagic/../../contrib/file/src -std=gnu99 -I/usr/obj/usr/src/tmp/legacy/usr/include -DCOMPILE_ONLY -L/usr/obj/usr/src/tmp/legacy/usr/lib -o mkmagic /usr/src/lib/libmagic/../../contrib/file/src/apprentice.c /usr/src/lib/libmagic/../../contrib/file/src/cdf_time.c /usr/src/lib/libmagic/../../contrib/file/src/encoding.c /usr/src/lib/libmagic/../../contrib/file/src/funcs.c /usr/src/lib/libmagic/../../contrib/file/src/magic.c /usr/src/lib/libmagic/../../contrib/file/src/print.c -lz -legacy In file included from /usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:32: /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: xlocale.h: No such file or directory In file included from /usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:32: /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected specifier-qualifier-list before 'locale_t' In file included from /usr/src/lib/libmagic/../../contrib/file/src/cdf_time.c:27: /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: xlocale.h: No such file or directory In file included from /usr/src/lib/libmagic/../../contrib/file/src/cdf_time.c:27: /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected specifier-qualifier-list before 'locale_t' In file included from /usr/src/lib/libmagic/../../contrib/file/src/encoding.c:35: /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: xlocale.h: No such file or directory In file included from /usr/src/lib/libmagic/../../contrib/file/src/encoding.c:35: /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected specifier-qualifier-list before 'locale_t' In file included from /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:27: /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: xlocale.h: No such file or directory In file included from /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:27: /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected specifier-qualifier-list before 'locale_t' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c: In function 'file_regcomp': /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:456: error: 'file_regex_t' has no member named 'c_lc_ctype' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:456: warning: implicit declaration of function 'newlocale' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:456: error: 'LC_CTYPE_MASK' undeclared (first use in this function) /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:456: error: (Each undeclared identifier is reported only once /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:456: error: for each function it appears in.) /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:457: error: 'file_regex_t' has no member named 'c_lc_ctype' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:458: error: 'file_regex_t' has no member named 'old_lc_ctype' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:458: warning: implicit declaration of function 'uselocale' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:458: error: 'file_regex_t' has no member named 'c_lc_ctype' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:459: error: 'file_regex_t' has no member named 'old_lc_ctype' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:463: error: 'file_regex_t' has no member named 'rc' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:463: error: 'file_regex_t' has no member named 'rx' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c: In function 'file_regexec': /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:470: error: 'file_regex_t' has no member named 'rc' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:471: error: 'file_regex_t' has no member named 'rx' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c: In function 'file_regfree': /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:477: error: 'file_regex_t' has no member named 'rc' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:478: error: 'file_regex_t' has no member named 'rx' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:480: error: 'file_regex_t' has no member named 'old_lc_ctype' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:481: warning: implicit declaration of function 'freelocale' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:481: error: 'file_regex_t' has no member named 'c_lc_ctype' /usr/src/lib/libmagic/../../contrib/file/src/funcs.c: In function 'file_regerror': /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:490: error: 'file_regex_t' has no member named 'rx' In file included from /usr/src/lib/libmagic/../../contrib/file/src/magic.c:33: /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: xlocale.h: No such file or directory In file included from /usr/src/lib/libmagic/../../contrib/file/src/magic.c:33: /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected specifier-qualifier-list before 'locale_t' In file included from /usr/src/lib/libmagic/../../contrib/file/src/print.c:32: /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: xlocale.h: No such file or directory In file included from /usr/src/lib/libmagic/../../contrib/file/src/print.c:32: /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected specifier-qualifier-list before 'locale_t' *** Error code 1 Stop in /usr/src/lib/libmagic. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrest?l, | Trond Endrest?l, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gj?vik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+
Kevin Oberman
2015-Jan-05 18:01 UTC
Upgrading from stable/8 to stable/9 blocked by file 5.21 (r276416)
On Mon, Jan 5, 2015 at 1:49 AM, Trond Endrest?l < Trond.Endrestol at fagskolen.gjovik.no> wrote:> On Sun, 4 Jan 2015 12:53-0800, Xin Li wrote: > > > On 1/4/15 09:41, Trond Endrest?l wrote: > > > Hi, > > > > > > I'm investigating how to convert my stable/8 systems to stable/9, > > > and subsequently to stable/10. > > > > > [...] > > > In file included from > > > /usr/src/lib/libmagic/../../contrib/file/src/print.c:32: > > > /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: > > > expected specifier-qualifier-list before 'locale_t' *** Error code > > > 1 1 error *** Error code 2 1 error *** Error code 2 1 error *** > > > Error code 2 1 error > > > > Looks like you are using -j -- have you tried building without -j? > > I did a test run on one of my stable/8 servers. That one's currently > running stable/8 r276500 and it attempted to build stable/9 r276691 > single threaded. No such luck. > > Unless this problem is resolved, then those of us migrating from > stable/8 to stable/{9,10} need a pit stop at stable/9 r276385. > > ===> lib/libmagic (obj,build-tools) > gcc -O2 -pipe -DMAGIC='"/usr/share/misc/magic"' -DHAVE_CONFIG_H > -I/usr/src/lib/libmagic -I/usr/src/lib/libmagic/../../contrib/file/src > -std=gnu99 -I/usr/obj/usr/src/tmp/legacy/usr/include -DCOMPILE_ONLY > -L/usr/obj/usr/src/tmp/legacy/usr/lib -o mkmagic > /usr/src/lib/libmagic/../../contrib/file/src/apprentice.c > /usr/src/lib/libmagic/../../contrib/file/src/cdf_time.c > /usr/src/lib/libmagic/../../contrib/file/src/encoding.c > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c > /usr/src/lib/libmagic/../../contrib/file/src/magic.c > /usr/src/lib/libmagic/../../contrib/file/src/print.c -lz -legacy > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:32: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: > xlocale.h: No such file or directory > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:32: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected > specifier-qualifier-list before 'locale_t' > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/cdf_time.c:27: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: > xlocale.h: No such file or directory > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/cdf_time.c:27: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected > specifier-qualifier-list before 'locale_t' > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/encoding.c:35: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: > xlocale.h: No such file or directory > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/encoding.c:35: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected > specifier-qualifier-list before 'locale_t' > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:27: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: > xlocale.h: No such file or directory > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:27: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected > specifier-qualifier-list before 'locale_t' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c: In function > 'file_regcomp': > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:456: error: > 'file_regex_t' has no member named 'c_lc_ctype' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:456: warning: > implicit declaration of function 'newlocale' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:456: error: > 'LC_CTYPE_MASK' undeclared (first use in this function) > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:456: error: (Each > undeclared identifier is reported only once > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:456: error: for each > function it appears in.) > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:457: error: > 'file_regex_t' has no member named 'c_lc_ctype' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:458: error: > 'file_regex_t' has no member named 'old_lc_ctype' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:458: warning: > implicit declaration of function 'uselocale' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:458: error: > 'file_regex_t' has no member named 'c_lc_ctype' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:459: error: > 'file_regex_t' has no member named 'old_lc_ctype' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:463: error: > 'file_regex_t' has no member named 'rc' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:463: error: > 'file_regex_t' has no member named 'rx' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c: In function > 'file_regexec': > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:470: error: > 'file_regex_t' has no member named 'rc' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:471: error: > 'file_regex_t' has no member named 'rx' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c: In function > 'file_regfree': > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:477: error: > 'file_regex_t' has no member named 'rc' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:478: error: > 'file_regex_t' has no member named 'rx' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:480: error: > 'file_regex_t' has no member named 'old_lc_ctype' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:481: warning: > implicit declaration of function 'freelocale' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:481: error: > 'file_regex_t' has no member named 'c_lc_ctype' > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c: In function > 'file_regerror': > /usr/src/lib/libmagic/../../contrib/file/src/funcs.c:490: error: > 'file_regex_t' has no member named 'rx' > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/magic.c:33: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: > xlocale.h: No such file or directory > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/magic.c:33: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected > specifier-qualifier-list before 'locale_t' > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/print.c:32: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:488:21: error: > xlocale.h: No such file or directory > In file included from > /usr/src/lib/libmagic/../../contrib/file/src/print.c:32: > /usr/src/lib/libmagic/../../contrib/file/src/file.h:495: error: expected > specifier-qualifier-list before 'locale_t' > *** Error code 1 > > Stop in /usr/src/lib/libmagic. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > >This still comes down to he build of file (and specifically libmagick not finding xlocale.h. the new header files should have been installed into /usr/obj long before the build of file starts. the buildworld should always run clean, obj, _includes, and depends before any of the actual builds commence. So the issue is whether the build of libmagic is failing to look for xlocale.h in the right place or the _includes: target is failing to install it there. This can be checked by building without -j (to eliminate any possible races) and, after the failure, look for xlocale.h in /usr/obj/usr/src/tmp/usr/include. This is where all header files should be installed in the /usr/obj tree so that they are available and used by the buildworld. One oddity of xlocale.h is that, unlike other header files, it is not simply copied from /usr/src to /usr/obj/usr/src/tmp/usr/include. Instead, it is created for a particular locale from the files in /usr/src/include/xlocale/. This makes me a bit suspicious that this is happening too late. My "make" foo is limited, but I am about to kick off a buildworld while recording the output to confirm when xlocale.h is actually built. -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman at gmail.com
Ben Morrow
2015-Jan-05 20:17 UTC
Upgrading from stable/8 to stable/9 blocked by file 5.21 (r276416)
Quoth Kevin Oberman <rkoberman at gmail.com>:> On Mon, Jan 5, 2015 at 1:49 AM, Trond Endrest?l < > Trond.Endrestol at fagskolen.gjovik.no> wrote: > > > ===> lib/libmagic (obj,build-tools) > > gcc -O2 -pipe -DMAGIC='"/usr/share/misc/magic"' -DHAVE_CONFIG_H > > -I/usr/src/lib/libmagic -I/usr/src/lib/libmagic/../../contrib/file/src > > -std=gnu99 -I/usr/obj/usr/src/tmp/legacy/usr/include -DCOMPILE_ONLY > > -L/usr/obj/usr/src/tmp/legacy/usr/lib -o mkmagic[...]> > This still comes down to he build of file (and specifically libmagick not > finding xlocale.h. the new header files should have been installed into > /usr/obj long before the build of file starts. the buildworld should always > run clean, obj, _includes, and depends before any of the actual builds > commence. > > So the issue is whether the build of libmagic is failing to look for > xlocale.h in the right place or the _includes: target is failing to install > it there. > > This can be checked by building without -j (to eliminate any possible > races) and, after the failure, look for xlocale.h in > /usr/obj/usr/src/tmp/usr/include. This is where all header files should be > installed in the /usr/obj tree so that they are available and used by the > buildworld.If I'm reading Makefile.inc1 right (and it's possible I'm not) then the build-tools stage comes before the compiler is rebuilt, so it's still using the host system compiler. If I'm right about that, then that gcc command above isn't looking in that directory (it's looking in /legacy/ instead, which doesn't get xlocale.h). Also, unless I'm mistaken, the _includes stage ('stage 4.1: building includes') runs after the build-tools stage ('stage 2.3: build tools'). The only headers that have been installed by that point are those installed in .../tmp/legacy/usr/include by 'legacy' and 'bootstrap-tools'. Ben
Mike Tancsa
2015-Jan-06 23:19 UTC
Upgrading from stable/8 to stable/9 blocked by file 5.21 (r276416)
On 1/5/2015 4:49 AM, Trond Endrest?l wrote:> On Sun, 4 Jan 2015 12:53-0800, Xin Li wrote: > > Unless this problem is resolved, then those of us migrating from > stable/8 to stable/{9,10} need a pit stop at stable/9 r276385.I just ran into this as well on my server I use for cross-building. I used to be able to build RELENG_10 on my RELENG_8 box, but its failing as well. Is there any work around? Will there be one ? ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike at sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/
Thomas Steen Rasmussen
2015-Jan-09 00:26 UTC
Upgrading from stable/8 to stable/9 blocked by file 5.21 (r276416)
On 05-01-2015 10:49, Trond Endrest?l wrote:> > I did a test run on one of my stable/8 servers. That one's currently > running stable/8 r276500 and it attempted to build stable/9 r276691 > single threaded. No such luck. > > Unless this problem is resolved, then those of us migrating from > stable/8 to stable/{9,10} need a pit stop at stable/9 r276385. >Hello, Thank you for this. I was stuck with this libmagic thing trying to build latest stable/9 this evening, on a server running latest stable/8. Going to stable/9 r276385 first allowed me to get past this issue. Thanks! /Thomas