Re: [LyX/master] Autotools: restore deprecation warning

2016-06-11 Thread Stephan Witt
Am 11.06.2016 um 10:11 schrieb Georg Baum :
> 
> Stephan Witt wrote:
> 
>> Now we have a linker problem:
>> 
>>  CXXLDlyx
>> clang: error: no such file or directory: '../3rdparty/boost/liblyxboost.a'
>> make[4]: *** [lyx] Error 1
>> make[3]: *** [all-recursive] Error 1
>> make[2]: *** [all] Error 2
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
> 
> Sorry, this was another regression. Too many combinations to test. Please 
> try again.

No need to be sorry :)

It’s up and running again - it works, thank you.

Stephan

Re: [LyX/master] Autotools: restore deprecation warning

2016-06-11 Thread Georg Baum
Stephan Witt wrote:

> Now we have a linker problem:
> 
>   CXXLDlyx
> clang: error: no such file or directory: '../3rdparty/boost/liblyxboost.a'
> make[4]: *** [lyx] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2

Sorry, this was another regression. Too many combinations to test. Please 
try again.


Georg



Re: [LyX/master] Autotools: restore deprecation warning

2016-06-11 Thread Stephan Witt
Am 11.06.2016 um 09:40 schrieb Stephan Witt :
> 
> Am 11.06.2016 um 09:30 schrieb Georg Baum :
>> 
>> Stephan Witt wrote:
>> 
>>> Yes. The problem is trying to create an empty archive, IMO.
>> 
>> Indeed. On linuyx ar does not complain about that, so I did not notice. I 
>> moved the disabling of the build one directory up, please try whether it 
>> works now.
>> 
> 
> Thanks, this works so far. But it fails later… 
> 
>  CXX  Server.o
> In file included from /Users/stephan/git/lyx/src/Server.cpp:43:
> /Users/stephan/git/lyx/src/Server.h:236:13: error: no type named 'vector' in 
> namespace 'std'
> extern std::vector & theFilesToLoad();
>   ~^
> 
> $ clang -v
> Apple LLVM version 7.3.0 (clang-703.0.29)
> Target: x86_64-apple-darwin15.5.0
> Thread model: posix
> InstalledDir: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I’ve fixed it myself with change 
http://www.lyx.org/trac/changeset/e8b15b5/lyxgit

Now we have a linker problem:

  CXXLDlyx
clang: error: no such file or directory: '../3rdparty/boost/liblyxboost.a'
make[4]: *** [lyx] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Stephan

Re: [LyX/master] Autotools: restore deprecation warning

2016-06-11 Thread Stephan Witt
Am 11.06.2016 um 09:30 schrieb Georg Baum :
> 
> Stephan Witt wrote:
> 
>> Yes. The problem is trying to create an empty archive, IMO.
> 
> Indeed. On linuyx ar does not complain about that, so I did not notice. I 
> moved the disabling of the build one directory up, please try whether it 
> works now.
> 

Thanks, this works so far. But it fails later… 

  CXX  Server.o
In file included from /Users/stephan/git/lyx/src/Server.cpp:43:
/Users/stephan/git/lyx/src/Server.h:236:13: error: no type named 'vector' in 
namespace 'std'
extern std::vector & theFilesToLoad();
   ~^

$ clang -v
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Stephan

Re: [LyX/master] Autotools: restore deprecation warning

2016-06-11 Thread Georg Baum
Stephan Witt wrote:

> Yes. The problem is trying to create an empty archive, IMO.

Indeed. On linuyx ar does not complain about that, so I did not notice. I 
moved the disabling of the build one directory up, please try whether it 
works now.


Georg




Re: [LyX/master] Autotools: restore deprecation warning

2016-06-11 Thread Georg Baum
Jean-Marc Lasgouttes wrote:

> Le 09/06/2016 à 22:32, Georg Baum a écrit :
>> Jean-Marc Lasgouttes wrote:
>>
>>> Le 09/06/16 à 20:47, Georg Baum a écrit :

 This causes a warning in boost:

 ../../../3rdparty/boost/libs/signals/src/signal_base.cpp:136:37:
 warning: ‘auto_ptr’ is deprecated (declared at
 /usr/include/c++/4.9/backward/auto_ptr.h:87)
>>>
>>> To remind us that we use a deprecated signel lib :)
>>
>> It worked: http://www.lyx.org/trac/changeset/2047ea5eb4/lyxgit
> 
> Great :)

I was surprised how easy it was. They have an excellent porting guide. I 
should have done that a long time ago;-)

> Do you need some help for the autoconf part?

Thanks, I did that myself. When trying for the first time I did not have the 
package libboost-regex-dev installed, so it could not work.


Georg




Re: [LyX/master] Autotools: restore deprecation warning

2016-06-11 Thread Stephan Witt
Am 11.06.2016 um 08:30 schrieb Georg Baum :
> 
> Stephan Witt wrote:
> 
>> Is this work in progress? Currently after this change I cannot build LyX
>> anymore an Mac with autotools. The build error is shown below.
> 
> No, this is not work in progress (at least it was not supposed to be).
> 
> Did you rerun autogen.sh and configure?

Yes.

> If your compiler is recent enough

Yes.

> it is not supposed to build lyxboost anymore at all. This works for me on 
> linux, and for the build flags output (std-regex) it looks like you don't 
> need a boost lib at all in your case.

Yes. The problem is trying to create an empty archive, IMO.

Stephan


Re: [LyX/master] Autotools: restore deprecation warning

2016-06-11 Thread Georg Baum
Stephan Witt wrote:

> Is this work in progress? Currently after this change I cannot build LyX
> anymore an Mac with autotools. The build error is shown below.

No, this is not work in progress (at least it was not supposed to be).

Did you rerun autogen.sh and configure? If your compiler is recent enough it 
is not supposed to build lyxboost anymore at all. This works for me on 
linux, and for the build flags output (std-regex) it looks like you don't 
need a boost lib at all in your case.


Georg




Re: [LyX/master] Autotools: restore deprecation warning

2016-06-10 Thread Stephan Witt
Am 09.06.2016 um 22:32 schrieb Georg Baum :
> 
> Jean-Marc Lasgouttes wrote:
> 
>> Le 09/06/16 à 20:47, Georg Baum a écrit :
>>> 
>>> This causes a warning in boost:
>>> 
>>> ../../../3rdparty/boost/libs/signals/src/signal_base.cpp:136:37: warning:
>>> ‘auto_ptr’ is deprecated (declared at
>>> /usr/include/c++/4.9/backward/auto_ptr.h:87)
>> 
>> To remind us that we use a deprecated signel lib :)
> 
> It worked: http://www.lyx.org/trac/changeset/2047ea5eb4/lyxgit
> 
> This was the cheap version, for some applications such as file monitoring we 
> could use readymade qt classes, but this would be more work.

Is this work in progress? Currently after this change I cannot build LyX anymore
an Mac with autotools. The build error is shown below.

Stephan

Configuration
  Host type:   x86_64-apple-darwin15.5.0
  Special build flags:  build=release warnings c++11 std-regex use-aspell 
use-hunspell
  C++ Compiler:c++ -stdlib=libc++ 
  C++ Compiler flags:   -Wall -Wextra -std=c++11 -Os 
-Wno-deprecated-register
  C++ Compiler user flags:  -I/Users/Shared/LyX/utilities/include  -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
 -arch x86_64 -mmacosx-version-min=10.8 
  Linker flags:
  Linker user flags:-L/Users/Shared/LyX/utilities/lib -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
 -arch x86_64 -mmacosx-version-min=10.8
  Qt Frontend:
  Qt version:  5.6.0
  Packaging:   macosx
  LyX binary dir:  
/Users/stephan/git/lyx-build/LyX-2.3.0dev.app/Contents/MacOS
  LyX files dir:   
/Users/stephan/git/lyx-build/LyX-2.3.0dev.app/Contents/Resources

Configuration of LyX was successful.
Type 'make' to compile the program,
and then 'make install' to install it.
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in autotests
make[2]: Nothing to be done for `all'.
Making all in config
make[2]: Nothing to be done for `all'.
Making all in development
Making all in MacOSX
Making all in spotlight
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
make[3]: Nothing to be done for `all-am'.
Making all in po
...
touch stamp-po
Making all in 3rdparty
Making all in boost
  AR   liblyxboost.a
ar: no archive members specified
usage:  ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]
make[3]: *** [liblyxboost.a] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2



Re: [LyX/master] Autotools: restore deprecation warning

2016-06-10 Thread Jean-Marc Lasgouttes

Le 09/06/2016 à 22:32, Georg Baum a écrit :

Jean-Marc Lasgouttes wrote:


Le 09/06/16 à 20:47, Georg Baum a écrit :


This causes a warning in boost:

../../../3rdparty/boost/libs/signals/src/signal_base.cpp:136:37: warning:
‘auto_ptr’ is deprecated (declared at
/usr/include/c++/4.9/backward/auto_ptr.h:87)


To remind us that we use a deprecated signel lib :)


It worked: http://www.lyx.org/trac/changeset/2047ea5eb4/lyxgit


Great :)

Do you need some help for the autoconf part?

JMarc



Re: [LyX/master] Autotools: restore deprecation warning

2016-06-09 Thread Georg Baum
Jean-Marc Lasgouttes wrote:

> Le 09/06/16 à 20:47, Georg Baum a écrit :
>>
>> This causes a warning in boost:
>>
>> ../../../3rdparty/boost/libs/signals/src/signal_base.cpp:136:37: warning:
>> ‘auto_ptr’ is deprecated (declared at
>> /usr/include/c++/4.9/backward/auto_ptr.h:87)
> 
> To remind us that we use a deprecated signel lib :)

It worked: http://www.lyx.org/trac/changeset/2047ea5eb4/lyxgit

This was the cheap version, for some applications such as file monitoring we 
could use readymade qt classes, but this would be more work.


Georg



Re: [LyX/master] Autotools: restore deprecation warning

2016-06-09 Thread Jean-Marc Lasgouttes

Le 09/06/16 à 20:47, Georg Baum a écrit :

Guillaume Munch wrote:


commit a73f2e6eb6f0a7999d6b90d3c62552e4fbe3b66e
Author: Guillaume Munch 
Date:   Thu Jun 2 18:00:22 2016 +0100

Autotools: restore deprecation warning

-Wno-deprecated-declarations was added at 314a121c.


This causes a warning in boost:

../../../3rdparty/boost/libs/signals/src/signal_base.cpp:136:37: warning:
‘auto_ptr’ is deprecated (declared at
/usr/include/c++/4.9/backward/auto_ptr.h:87)


To remind us that we use a deprecated signel lib :)

JMarc



Re: [LyX/master] Autotools: restore deprecation warning

2016-06-09 Thread Georg Baum
Guillaume Munch wrote:

> commit a73f2e6eb6f0a7999d6b90d3c62552e4fbe3b66e
> Author: Guillaume Munch 
> Date:   Thu Jun 2 18:00:22 2016 +0100
> 
> Autotools: restore deprecation warning
> 
> -Wno-deprecated-declarations was added at 314a121c.

This causes a warning in boost:

../../../3rdparty/boost/libs/signals/src/signal_base.cpp:136:37: warning: 
‘auto_ptr’ is deprecated (declared at 
/usr/include/c++/4.9/backward/auto_ptr.h:87)


Georg