Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 164 of 806  Not logged in ELOG logo
New entries since:Thu Jan 1 01:00:00 1970
IDdown Date Icon Author Author Email Category OS ELOG Version Subject
  68507   Thu Dec 15 15:41:59 2016 Reply Stefan Rittstefan.ritt@psi.chQuestionMac OSX3.1.2Re: MacOS install failure - cannot find ssl.h
export C_INCLUDE_PATH=/opt/local/include

should do the trick. Put this into your .profile


Stefano Bonaldo wrote:
Currently, in my MacBook Pro with Sierre, the search path /opt/local/include of the prprocessor is not included.

cpp -v
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin16.1.0
....
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
  68506   Thu Dec 15 15:04:53 2016 Reply Stefano Bonaldostefano.bonaldo.13@gmail.comQuestionMac OSX3.1.2Re: MacOS install failure - cannot find ssl.h
Currently, in my MacBook Pro with Sierre, the search path /opt/local/include of the prprocessor is not included.

cpp -v
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin16.1.0
....
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
  68505   Thu Dec 15 14:44:32 2016 Reply Stefano Bonaldostefano.bonaldo.13@gmail.comBug reportMac OSX3.1.2Re: elogd crash on sorting the entries by an datetime attribute

Hello Stefan, thanks for your answer. So I made a new logbook, without entries. I generated, as you, two new entries and I discover that this problem come out when in the URL the command for the sorting follow the command of the display mode. So for example the following URL give me the issue:

http://local.host.com:8080/65+nm/?mode=summary&sort=Record+date

But if I put:

http://local.host.com:8080/65+nm/?sort=Record+date&mode=summary

This last URL is working. This means that the issue come out, when I change the dispay mode by the buttons "Full, Summary, Threaded" and then I click on the Coloumn "Record date" for sorting it. Hope you understand and you can reproduce it. Many thanks

EDIT: I'm facing the same problem on another MAC with a fresh installation of elogd.

Stefan Ritt wrote:

I tried your config file on my Mac and it just worked fine without any crash:

Could it be that on entry has corrupt data and is killing your server? Have you tried on a pristine new logbook?

Stefan

stefano bonaldo wrote:

Hello,

I'm facing with a crash, which happen when I sort the entries by a datetime attribute (sort or rsort) and then i change the display mode from Full, Summary and Threaded.

For example, the elogd crashes when I try to connect from the Full display to Summary in sort mode. The issue presents for example by entering with the following URL:

http://host.name.com:8080/65+nm/?mode=summary&sort=Record+date

Can you please help me?

Here I reduced my elogd.cfg at minimum and I still get this issue:

[global]
port = 8080

[65 nm]
Attributes = Record date

Type Record date = datetime
Preset Record date = $date
List Display = Record date
Start page = ?sort=Record date

 

 

  68504   Thu Dec 15 13:59:14 2016 Reply Stefan Rittstefan.ritt@psi.chBug reportMac OSX3.1.2Re: elogd crash on sorting the entries by an datetime attribute

I tried your config file on my Mac and it just worked fine without any crash:

Could it be that on entry has corrupt data and is killing your server? Have you tried on a pristine new logbook?

Stefan

stefano bonaldo wrote:

Hello,

I'm facing with a crash, which happen when I sort the entries by a datetime attribute (sort or rsort) and then i change the display mode from Full, Summary and Threaded.

For example, the elogd crashes when I try to connect from the Full display to Summary in sort mode. The issue presents for example by entering with the following URL:

http://host.name.com:8080/65+nm/?mode=summary&sort=Record+date

Can you please help me?

Here I reduced my elogd.cfg at minimum and I still get this issue:

[global]
port = 8080

[65 nm]
Attributes = Record date

Type Record date = datetime
Preset Record date = $date
List Display = Record date
Start page = ?sort=Record date

 

  68503   Thu Dec 15 12:50:51 2016 Reply Stefan Rittstefan.ritt@psi.chQuestionMac OSX3.1.2Re: MacOS install failure - cannot find ssl.h

On Sierre, /opt/local/include should be already included in the standar search path of the prprocessor:

/elog$ cpp -v
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.1.0
...
#include "..." search starts here:
#include <...> search starts here:
 /opt/local/include
 /usr/local/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)
End of search list.

 

stefano bonaldo wrote:

On Sierra Macports install openssl in /opt/local/include/ , but copy it into /usr/local/include. You should able to fix it.

sudo cp -r /opt/local/include/openssl /usr/local/include/

Stefan Ritt wrote:

My macports puts it under

/opt/local/include/openssl/ssl.h

Christina Swinson wrote:

I responded too quickly.

I already have openssl installed via macports (this is the "Mac version" of libssl-dev).

Does anyone know where exactly elog is looking for openssl/ssl.h? I have just updated Macports and upgraded to Sierra, so maybe it's been dumped it in a different location.

Christina

Christina Swinson wrote:

Oops!

I think that I must have skipped straight to the MacOS notes instead of reading the linux section properly.

Thanks for the help,

Christina

Stefan Ritt wrote:

If you look into the documentationa at:

http://midas.psi.ch/elog/adminguide.html#unix

you will see that for Linux (as well asl MacOS) you need the libssl-dev packaged to be installed. There are many ways to install this on MacOS, I personally use the MacPorts distribution:

https://www.macports.org/ports.php?by=library&substr=openssl

Best regards,
Stefan

 

Christina Swinson wrote:

Hi,

I am trying to install on MacOS Sierra. I believe that I have followed all the steps correctly, but the install is failing with the following error: 

cc -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -DHAVE_SSL -o elog src/elog.c crypt.o  -lssl
src/elog.c:57:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
         ^
1 error generated.
make: *** [elog] Error 1

Help appreciated!

Thanks,
Christina

 

 

 

 

 

 

  68502   Thu Dec 15 11:12:09 2016 Question stefano bonaldostefano.bonaldo.13@gmail.comBug reportMac OSX3.1.2elogd crash on sorting the entries by an datetime attribute

Hello,

I'm facing with a crash, which happen when I sort the entries by a datetime attribute (sort or rsort) and then i change the display mode from Full, Summary and Threaded.

For example, the elogd crashes when I try to connect from the Full display to Summary in sort mode. The issue presents for example by entering with the following URL:

http://host.name.com:8080/65+nm/?mode=summary&sort=Record+date

Can you please help me?

Here I reduced my elogd.cfg at minimum and I still get this issue:

[global]
port = 8080

[65 nm]
Attributes = Record date

Type Record date = datetime
Preset Record date = $date
List Display = Record date
Start page = ?sort=Record date

  68501   Thu Dec 15 01:38:20 2016 Reply stefano bonaldostefano.bonaldo.13@gmail.comQuestionMac OSX3.1.2Re: MacOS install failure - cannot find ssl.h

On Sierra Macports install openssl in /opt/local/include/ , but copy it into /usr/local/include. You should able to fix it.

sudo cp -r /opt/local/include/openssl /usr/local/include/

Stefan Ritt wrote:

My macports puts it under

/opt/local/include/openssl/ssl.h

Christina Swinson wrote:

I responded too quickly.

I already have openssl installed via macports (this is the "Mac version" of libssl-dev).

Does anyone know where exactly elog is looking for openssl/ssl.h? I have just updated Macports and upgraded to Sierra, so maybe it's been dumped it in a different location.

Christina

Christina Swinson wrote:

Oops!

I think that I must have skipped straight to the MacOS notes instead of reading the linux section properly.

Thanks for the help,

Christina

Stefan Ritt wrote:

If you look into the documentationa at:

http://midas.psi.ch/elog/adminguide.html#unix

you will see that for Linux (as well asl MacOS) you need the libssl-dev packaged to be installed. There are many ways to install this on MacOS, I personally use the MacPorts distribution:

https://www.macports.org/ports.php?by=library&substr=openssl

Best regards,
Stefan

 

Christina Swinson wrote:

Hi,

I am trying to install on MacOS Sierra. I believe that I have followed all the steps correctly, but the install is failing with the following error: 

cc -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -DHAVE_SSL -o elog src/elog.c crypt.o  -lssl
src/elog.c:57:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
         ^
1 error generated.
make: *** [elog] Error 1

Help appreciated!

Thanks,
Christina

 

 

 

 

 

  68500   Mon Dec 12 15:28:49 2016 Reply Stefan Rittstefan.ritt@psi.chQuestionMac OSX3.1.2Re: MacOS install failure - cannot find ssl.h

My macports puts it under

/opt/local/include/openssl/ssl.h

Christina Swinson wrote:

I responded too quickly.

I already have openssl installed via macports (this is the "Mac version" of libssl-dev).

Does anyone know where exactly elog is looking for openssl/ssl.h? I have just updated Macports and upgraded to Sierra, so maybe it's been dumped it in a different location.

Christina

Christina Swinson wrote:

Oops!

I think that I must have skipped straight to the MacOS notes instead of reading the linux section properly.

Thanks for the help,

Christina

Stefan Ritt wrote:

If you look into the documentationa at:

http://midas.psi.ch/elog/adminguide.html#unix

you will see that for Linux (as well asl MacOS) you need the libssl-dev packaged to be installed. There are many ways to install this on MacOS, I personally use the MacPorts distribution:

https://www.macports.org/ports.php?by=library&substr=openssl

Best regards,
Stefan

 

Christina Swinson wrote:

Hi,

I am trying to install on MacOS Sierra. I believe that I have followed all the steps correctly, but the install is failing with the following error: 

cc -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -DHAVE_SSL -o elog src/elog.c crypt.o  -lssl
src/elog.c:57:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
         ^
1 error generated.
make: *** [elog] Error 1

Help appreciated!

Thanks,
Christina

 

 

 

 

ELOG V3.1.5-3fb85fa6