F26/v6-10-00-patches :: invalid preprocessing directive

Hi! I just tried the latest v6-10-00-patches (90019feb5a) and i got the
below errors … any idea about this?

Thank you!
Adrian

[ 65%] Generating G__std_map2.cxx, ../../lib/libmap2Dict.rootmap
In file included from input_line_8:6:
/bin/map:1:2: error: invalid preprocessing directive
#!/usr/bin/perl -w
 ^
/bin/map:2:2: error: invalid preprocessing directive
#$Id: map,v 1.20 1998/02/11 23:58:27 schwartz Exp $
 ^
/bin/map:4:3: error: invalid preprocessing directive
# map - convert a text file to a different character set
  ^
/bin/map:6:3: error: invalid preprocessing directive
# See also usage() of this file. General information at:
  ^
/bin/map:7:6: error: invalid preprocessing directive
#    http://wwwwbs.cs.tu-berlin.de/~schwartz/pmh/index.html
     ^
/bin/map:9:3: error: invalid preprocessing directive
# Copyright (C) 1998 Martin Schwartz. All rights reserved.
  ^
/bin/map:10:3: error: invalid preprocessing directive
# This program is free software; you can redistribute it and/or
  ^
/bin/map:11:3: error: invalid preprocessing directive
# modify it under the same terms as Perl itself.
  ^
/bin/map:13:3: error: invalid preprocessing directive
# Contact: Martin Schwartz <martin@nacho.de>
  ^
/bin/map:16:1: error: unknown type name 'my'
my $PROGNAME = "map";
^
/bin/map:17:1: error: unknown type name 'my'
my $VERSION = "1.21";
^
/bin/map:18:1: error: unknown type name 'my'
my $DATE = "2000-Jun-26";
^
/bin/map:20:1: error: unknown type name 'use'
use Getopt::Long;
^
/bin/map:20:5: error: use of undeclared identifier 'Getopt'
use Getopt::Long;
    ^
/bin/map:21:1: error: unknown type name 'use'
use Unicode::Map;
^
/bin/map:21:5: error: use of undeclared identifier 'Unicode'
use Unicode::Map;
    ^
/bin/map:23:1: error: unknown type name 'my'
my %opt = ();
^
/bin/map:23:4: error: expected unqualified-id
my %opt = ();
   ^
/bin/map:24:1: error: unknown type name 'my'
my $defaultCsId = "ISO-8859-1";

Thanks for the bug report - because you are reporting a bug here. I’ll have a look!

FYI, we have a PR for this, discussing whether it improves or worsens things for ROOT: https://github.com/root-project/root/pull/948#issuecomment-329091340

I seen also https://github.com/root-project/root/pull/980 which says
that solves my problem …

I tried to apply 948 and 980 on v6-10-00-patches but while 948 applied
ok the 980 fails … is there any other related patch to apply before 980?

Thank you!
Adrian

You would need to apply a lot of patches to get this diff to correctly apply, it’s easier to just backport it by hand. So here is the patch backported for the 6.10 branch: https://github.com/Teemperor/root/commit/b819ca8d63ee8c0b555e923def1db3685c0136e6

1 Like

Thanks a lot! the patched applied cleanly and the compilation was
successful!

Adrian

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.