OO configure fails: Possible unintended interpolation of @ENABLE

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

OO configure fails: Possible unintended interpolation of @ENABLE

Michele Denber
While doing ./configure, it ends with the following:

    |...
    configure: creating ./config.status
    config.status: creating set_soenv
    config.status: creating Makefile
    Possible unintended interpolation of @ENABLE_CUPS in string at
    ./set_soenv line 1788.
    Global symbol "@ENABLE_CUPS" requires explicit package name at
    ./set_soenv line 1788.
    Execution of ./set_soenv aborted due to compilation errors.
    # |

There is no "ENABLE_CUPS" env var set.

My command is:

    |./configure
    --with-dmake-url=http://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2
    --with-epm-url=http://epm.sourcearchive.com/downloads/3.7-1/epm_3.7.orig.tar.gz
    --disable-odk  --with-gnu-patch=/opt/csw/bin/gpatch \
    --with-gnu-cp=/opt/csw/bin/gcp --without-junit|

The line in set_soenv it's complaining about is:

    |ToFile( "ENABLE_CUPS",       "@ENABLE_CUPS@",       "e" );|


I've been unable to find anything useful searching for this error.
Adding "--disable-cups" to the configure command didn't fix the error.
Doing /usr/xpg4/bin/sh ./configure didn't fix it either.  I do have the
CSWcups package installed.

Any help would be appreciated.

Building Open Office 4.1.3 with gnu and OpenCSW toolchain, gcc 7.3 on a
Sun M3000 Sparc VII, Solaris 10U13.  I was able to build OO 3.4 on this
machine, but this one isn't cooperating.  Or is there already a
pre-built 4.1.3 Solaris package somewhere?

             - Michele

Reply | Threaded
Open this post in threaded view
|

Re: OO configure fails: Possible unintended interpolation of @ENABLE

Peter Kovacs-4
Hello Michele,

Is there no cups on Solaris?
Have you tried later versions like 4.1.6?

All the best
Peter

Am 14. Juni 2019 20:29:16 MESZ schrieb Michele Denber <[hidden email]>:

>While doing ./configure, it ends with the following:
>
>    |...
>    configure: creating ./config.status
>    config.status: creating set_soenv
>    config.status: creating Makefile
>    Possible unintended interpolation of @ENABLE_CUPS in string at
>    ./set_soenv line 1788.
>    Global symbol "@ENABLE_CUPS" requires explicit package name at
>    ./set_soenv line 1788.
>    Execution of ./set_soenv aborted due to compilation errors.
>    # |
>
>There is no "ENABLE_CUPS" env var set.
>
>My command is:
>
>    |./configure
>--with-dmake-url=http://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2
>--with-epm-url=http://epm.sourcearchive.com/downloads/3.7-1/epm_3.7.orig.tar.gz
>    --disable-odk  --with-gnu-patch=/opt/csw/bin/gpatch \
>    --with-gnu-cp=/opt/csw/bin/gcp --without-junit|
>
>The line in set_soenv it's complaining about is:
>
>    |ToFile( "ENABLE_CUPS",       "@ENABLE_CUPS@",       "e" );|
>
>
>I've been unable to find anything useful searching for this error.
>Adding "--disable-cups" to the configure command didn't fix the error.
>Doing /usr/xpg4/bin/sh ./configure didn't fix it either.  I do have the
>CSWcups package installed.
>
>Any help would be appreciated.
>
>Building Open Office 4.1.3 with gnu and OpenCSW toolchain, gcc 7.3 on a
>Sun M3000 Sparc VII, Solaris 10U13.  I was able to build OO 3.4 on this
>machine, but this one isn't cooperating.  Or is there already a
>pre-built 4.1.3 Solaris package somewhere?
>
>             - Michele

--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
Reply | Threaded
Open this post in threaded view
|

Re: OO configure fails: Possible unintended interpolation of @ENABLE

Michele Denber
>
> Subject: Re: OO configure fails: Possible unintended interpolation of
> @ENABLE
> Date: Tue, 25 Jun 2019 22:02:17 +0200
> From: Peter <[hidden email]>
> To: [hidden email], Michele Denber <[hidden email]>
>
>
>
> Hello Michele,
>
> Is there no cups on Solaris?
Hi Peter.  That's actually not a simple question.  Solaris 10 originally
shipped with CUPS.  Then Sun and Apple got into some sort of patent tiff
and Sun removed CUPS from Solaris.  Then they made up so Sun put CUPS
back in.  My version (update 13) is supposed to have CUPS but I don't
see it where it's supposed to be (/opt/sfw/).  But you can get CSWcups
from OpenCSW, so that's what I did, but it didn't help.
> Have you tried later versions like 4.1.6?
That turned out to be the answer.  I downloaded 4.1.6 and it configured
fine.  But now I'm stuck in ./bootstrap.  I get:

# pwd
/export/home/denber/aoo-4.1.6/main
# ./bootstrap
ERROR: no destination defined! please set TARFILE_LOCATION! at
/export/home/denber/aoo-4.1.6/main/solenv/bin/download_external_dependencies.pl
line 611.
*** Error downloading external dependencies, please fix the previous
problems and try again ***

It isn't clear to me what that means so I tried:

# setenv TARFILE_LOCATION
/export/home/denber/apache-openoffice-4.1.6-r1844436-src.tar
# export TARFILE_LOCATION
# echo $TARFILE_LOCATION
/export/home/denber/apache-openoffice-4.1.6-r1844436-src.tar


But that didn't help.  The code in question (in
download_external_dependencies.pl) is this:

ub CheckDownloadDestination ()
{
     my $destination = $ENV{'TARFILE_LOCATION'};
     die "ERROR: no destination defined! please set TARFILE_LOCATION!"
if ($destination eq "");

     if ( ! -d $destination)
     {
         File::Path::make_path($destination);
         die "ERROR: can't create \$TARFILE_LOCATION" if  ! -d $destination;
     }
}

What am I doing wrong?

             - Michele


Reply | Threaded
Open this post in threaded view
|

Re: Fwd: Re: OO configure fails: Possible unintended interpolation of @ENABLE

Michele Denber
In reply to this post by Peter Kovacs-4
Well in the interest of expediency, I just commented out the two lines
in download_external_dependencies.pl that was causing ./bootstrap to
fail.  This time it went much further and downloaded a bunch of files
but now it's stopping with:

...
all external libraries present
dmake-4.12.tar.bz2 exists
downloading epm_3.7.orig.tar.gz
downloading to /epm_3.7.orig.tar.gz.part
download from
http://epm.sourcearchive.com/downloads/3.7-1/epm_3.7.orig.tar.gz failed
(500 Can't connect to epm.sourcearchive.com:80 (Connection refused))
     download failed
making and entering
/export/home/denber/aoo-4.1.6/main/solenv/unxsogs.pro/misc/build/
find: illegal option -- t
find: [-H | -L] path-list predicate-list
can not find the dmake package
#

What's with the "connection refused"?  I tried connecting to
epm.sourcearchive.com directly from Firefox from two different computers
and got "unable to connect".

Also, what "find" does it want?  I'm already giving it  the
/us/xpg4/bin/find version, so this can't be a POSIX issue.  man find
says there is in fact no "t" option there.

             - Michele

Reply | Threaded
Open this post in threaded view
|

Re: Fwd: Re: OO configure fails: Possible unintended interpolation of @ENABLE

Matthias Seidel
Hi Michele,

Am 27.06.19 um 18:56 schrieb Michele Denber:

> Well in the interest of expediency, I just commented out the two lines
> in download_external_dependencies.pl that was causing ./bootstrap to
> fail.  This time it went much further and downloaded a bunch of files
> but now it's stopping with:
>
> ...
> all external libraries present
> dmake-4.12.tar.bz2 exists
> downloading epm_3.7.orig.tar.gz
> downloading to /epm_3.7.orig.tar.gz.part
> download from
> http://epm.sourcearchive.com/downloads/3.7-1/epm_3.7.orig.tar.gz failed
> (500 Can't connect to epm.sourcearchive.com:80 (Connection refused))
>     download failed
> making and entering
> /export/home/denber/aoo-4.1.6/main/solenv/unxsogs.pro/misc/build/
> find: illegal option -- t
> find: [-H | -L] path-list predicate-list
> can not find the dmake package
> #
>
> What's with the "connection refused"?  I tried connecting to
> epm.sourcearchive.com directly from Firefox from two different computers
> and got "unable to connect".
Where did you take that URL from?

Try
https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz
instead.

See also:

https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#Configuration_and_bootstrapping

Regards,

   Matthias

>
> Also, what "find" does it want?  I'm already giving it  the
> /us/xpg4/bin/find version, so this can't be a POSIX issue.  man find
> says there is in fact no "t" option there.
>
>             - Michele
>
>


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: OO configure fails: Possible unintended interpolation of @ENABLE

Michele Denber
In reply to this post by Michele Denber
>
> -------- Forwarded Message --------
> Subject: Re: Fwd: Re: OO configure fails: Possible unintended
> interpolation of @ENABLE
> Date: Thu, 27 Jun 2019 19:09:48 +0200
> From: Matthias Seidel <[hidden email]>
> Reply-To: [hidden email]
> To: [hidden email]
>
>
>
> Where did you take that URL from?
If you do a ./configure without specifying --with-epm-url, it complains
that it's missing that file and offers up a suggestion to use
http://epm.sourcearchive.com/downloads/3.7-1/epm_3.7.orig.tar.gz so
that's what I used.  See configure line 2232:

--with-epm-url=<URL>    Specify the location of downloadable epm 3.7
source code. For example:
http://epm.sourcearchive.com/downloads/3.7-1/epm_3.7.orig.tar.gz
>
> Try
> https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz
> instead.
That worked, thanks.
>
> See also:
>
> https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#Configuration_and_bootstrapping
Thanks.  I was just going by the instructions in the README.

Unfortunately, now I have yet another problem.  ./configure is now
ending like this:

...
checking for gnucp... no
checking for cp... /usr/xpg4/bin/cp
checking whether /usr/xpg4/bin/cp is GNU cp from coreutils with
preserve= support... no
configure: error: no, GNU cp from coreutils is needed. install or
specify with --with-gnu-cp=/path/to/it
#

But I am already specifying it:

# /usr/xpg4/bin/sh ./configure
--with-dmake-url=http://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2
--with-epm-url=https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz
--disable-odk --with-gnu-patch=/opt/csw/bin/gpatch
*--with-gnu-cp=/opt/csw/gnu/cp* --without-junit

And I do have gnu cp and it does have "preserve=":

bash-4.3$ cd /opt/csw/gnu
bash-4.3$ ls -l cp
lrwxrwxrwx   1 root     root          10 Jun 22  2018 cp -> ../bin/gcp
bash-4.3$ cd /opt/csw/bin
bash-4.3$ ls -l gcp
-rwxr-xr-x   1 root     bin       204912 Jun 14  2014 gcp
bash-4.3$ ./gcp --version
cp *(GNU coreutils)* 8.22
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Torbjörn Granlund, David MacKenzie, and Jim Meyering.
bash-4.3$ ./gcp --help
Usage: gcp [OPTION]... [-T] SOURCE DEST
   or:  gcp [OPTION]... SOURCE... DIRECTORY
   or:  gcp [OPTION]... -t DIRECTORY SOURCE...
Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

Mandatory arguments to long options are mandatory for short options too.
   -a, --archive                same as -dR --preserve=all
       --attributes-only        don't copy the file data, just the
attributes
       --backup[=CONTROL]       make a backup of each existing
destination file
...
   -P, --no-dereference         never follow symbolic links in SOURCE
   -p                           same as --preserve=mode,ownership,timestamps
*    --preserve[=ATTR_LIST] *  preserve the specified attributes (default:
                                  mode,ownership,timestamps), if possible
                                  additional attributes: context, links,
xattr,
                                  all

Why is ./configure not picking up the correct cp even though I'm
supplying it?  Or should I not be putting /usr/xpg4/bin first in my
PATH?  It doesn't seem to like the POSIX cp.

             - Michele

Reply | Threaded
Open this post in threaded view
|

Re: OO configure fails: Possible unintended interpolation of @ENABLE

Michele Denber
On 06/28/19 12:21, Michele Denber wrote:

>
> Why is ./configure not picking up the correct cp even though I'm
> supplying it?
Oops, never mind.  That was just operator error.  I keep the configure
command in a text file and then just copy & paste it to a terminal
window.  When it got long enough to exceed the terminal buffer, I added
a "\" at the end of a line in the text editor.  But I forgot to add a CR
after that.  So configure was never seeing the --with-gnu-cp.  Once I
fixed that, configure finished OK.

Then ./bootstrap finished like this:

...
all external libraries present
dmake-4.12.tar.bz2 exists
epm-3.7.tar.gz exists

dmake present in
/export/home/denber/aoo-4.1.6/main/solenv/unxsogs.pro/bin/dmake
bundling of dictionaries is disabled.
#

I'm not sure if that's success or not but continuing on (using the
directions in README), I did

    # source *.set.sh

but there are no files ending in .set.sh in main.  I did find
# ls *.sh
build_aoo64bit_on_macos.sh  fetch_tarballs.sh SolarisSparcGccEnv.Set.sh

so I said
# . ./SolarisSparcGccEnv.Set.sh
#

Then
    #  cd instsetoo_native
    #  build --all

but there is no "build" in instsetoo_native.  What am I doing wrong now?

I see also that "Note that building OpenOffice can take several hours."
Is there a parallelizing option for build, like in gmake -j16?

             - Michele

Reply | Threaded
Open this post in threaded view
|

Re: OO configure fails: Possible unintended interpolation of @ENABLE

Matthias Seidel
In reply to this post by Michele Denber
Hi Michele,

Am 28.06.19 um 18:21 schrieb Michele Denber:

>>
>> -------- Forwarded Message --------
>> Subject:     Re: Fwd: Re: OO configure fails: Possible unintended
>> interpolation of @ENABLE
>> Date:     Thu, 27 Jun 2019 19:09:48 +0200
>> From:     Matthias Seidel <[hidden email]>
>> Reply-To:     [hidden email]
>> To:     [hidden email]
>>
>>
>>
>> Where did you take that URL from?
> If you do a ./configure without specifying --with-epm-url, it complains
> that it's missing that file and offers up a suggestion to use
> http://epm.sourcearchive.com/downloads/3.7-1/epm_3.7.orig.tar.gz so
> that's what I used.  See configure line 2232:
>
> --with-epm-url=<URL>    Specify the location of downloadable epm 3.7
> source code. For example:
> http://epm.sourcearchive.com/downloads/3.7-1/epm_3.7.orig.tar.gz
Thanks for the pointer!

This URL was fixed in trunk (and AOO42X) but not in AOO416.
I updated the link now in branch AOO417 to avoid such irritations.

Regards,

   Matthias

>>
>> Try
>> https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz
>> instead.
> That worked, thanks.
>>
>> See also:
>>
>> https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#Configuration_and_bootstrapping
>>
> Thanks.  I was just going by the instructions in the README.
>
> Unfortunately, now I have yet another problem.  ./configure is now
> ending like this:
>
> ...
> checking for gnucp... no
> checking for cp... /usr/xpg4/bin/cp
> checking whether /usr/xpg4/bin/cp is GNU cp from coreutils with
> preserve= support... no
> configure: error: no, GNU cp from coreutils is needed. install or
> specify with --with-gnu-cp=/path/to/it
> #
>
> But I am already specifying it:
>
> # /usr/xpg4/bin/sh ./configure
> --with-dmake-url=http://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2
>
> --with-epm-url=https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz
>
> --disable-odk --with-gnu-patch=/opt/csw/bin/gpatch
> *--with-gnu-cp=/opt/csw/gnu/cp* --without-junit
>
> And I do have gnu cp and it does have "preserve=":
>
> bash-4.3$ cd /opt/csw/gnu
> bash-4.3$ ls -l cp
> lrwxrwxrwx   1 root     root          10 Jun 22  2018 cp -> ../bin/gcp
> bash-4.3$ cd /opt/csw/bin
> bash-4.3$ ls -l gcp
> -rwxr-xr-x   1 root     bin       204912 Jun 14  2014 gcp
> bash-4.3$ ./gcp --version
> cp *(GNU coreutils)* 8.22
> Copyright (C) 2013 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> Written by Torbjörn Granlund, David MacKenzie, and Jim Meyering.
> bash-4.3$ ./gcp --help
> Usage: gcp [OPTION]... [-T] SOURCE DEST
>   or:  gcp [OPTION]... SOURCE... DIRECTORY
>   or:  gcp [OPTION]... -t DIRECTORY SOURCE...
> Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.
>
> Mandatory arguments to long options are mandatory for short options too.
>   -a, --archive                same as -dR --preserve=all
>       --attributes-only        don't copy the file data, just the
> attributes
>       --backup[=CONTROL]       make a backup of each existing
> destination file
> ...
>   -P, --no-dereference         never follow symbolic links in SOURCE
>   -p                           same as
> --preserve=mode,ownership,timestamps
> *    --preserve[=ATTR_LIST] *  preserve the specified attributes
> (default:
>                                  mode,ownership,timestamps), if possible
>                                  additional attributes: context, links,
> xattr,
>                                  all
>
> Why is ./configure not picking up the correct cp even though I'm
> supplying it?  Or should I not be putting /usr/xpg4/bin first in my
> PATH?  It doesn't seem to like the POSIX cp.
>
>             - Michele
>
>

smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: OO configure fails: Possible unintended interpolation of @ENABLE

Michele Denber
In reply to this post by Michele Denber
On 06-28-2019 5:36 PM, Kay Schenk wrote:
>
>
> If you don't have a platform specific *.sh, you won't get anything to
> build. The references won't be right.
But I do have a file called "SolarisSparcGccEnv.Set.sh".  Is that not
the right one?
>
> Did you take a look at the Solaris specific instructions at --
>
> https://wiki.openoffice.org/wiki/Documentation/Building_Guide/Building_on_Solaris
>
Hmm, does AOO now require the use of SunStudio?  When I run configure,
it is still doing a bunch of checks for gcc, like "Checking for gcc... gcc".
>
> You don't have a correct set of ENV variables for your platform. So
> nothing is happening.
Thanks, that was a good clue.  Although running the .sh file did create
a bunch of new env vars, one of them, PWD was wrong.  Somehow it was
pointing to a different directory.  Once I set that to the
instsetoo_native directory I was able to do a new configure, bootstrap,
set the env vars and get the build underway.

It built a bunch of stuff before mysteriously stopping here:

# ../solenv/bin/build.pl --all:soltools
build -- version: 275224

=============
Building module soltools
=============

Entering /export/home/denber/aoo-4.1.6/main/soltools/mkdepend

Making:    makedepend
unx
../unxsogs.pro/misc/make_makedepend.makedepend_1.cmd: line 3: syntax
error near unexpected token `('
../unxsogs.pro/misc/make_makedepend.makedepend_1.cmd: line 3:
`(wnck-applet:23297): Wnck-WARNING **: Unhandled action type (nil) \'
dmake:  Error code 1, while making '../unxsogs.pro/bin/makedepend'

1 module(s):
         soltools
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making
/export/home/denber/aoo-4.1.6/main/soltools/mkdepend

I'm afraid I don't know what any of that means.  I have however seen
those syntax complaints before due to shell issues so I tried it this
way and got a different error:

# /usr/xpg4/bin/sh ../solenv/bin/build.pl --all:soltools
build -- version: 275224

=============
Building module soltools
=============

Entering /export/home/denber/aoo-4.1.6/main/soltools/mkdepend

Making:    makedepend
unx
../unxsogs.pro/misc/make_makedepend.makedepend_1.cmd: line 2: syntax
error near unexpected token `('
../unxsogs.pro/misc/make_makedepend.makedepend_1.cmd: line 2: `Window
manager warning: Working around an application which called
XSetInputFocus (None) or with RevertToNone instead of
RevertToPointerRoot, this is a minor bug in some application. If you can
figure out which application causes this please report it as a bug
against that application. \'
dmake:  Error code 1, while making '../unxsogs.pro/bin/makedepend'

1 module(s):
         soltools
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making
/export/home/denber/aoo-4.1.6/main/soltools/mkdepend

When you have fixed the errors in that module you can resume the build
by running:

         build --all:soltools

#

             - Michele