Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to work with openssl dev in arch linux #9

Closed
middleagedman opened this issue Jun 29, 2017 · 2 comments
Closed

Updated to work with openssl dev in arch linux #9

middleagedman opened this issue Jun 29, 2017 · 2 comments

Comments

@middleagedman
Copy link

I don't know if this applies to other distributions, but I had to modify the configure files in order to compile against openssl

sed -i s/SSL_library_init/OPENSSL_init_ssl/ configure.ac configure

I found this blurb on the net concerning another package with the same compile issue:

However, in openssl 1.1, SSL_library_init is a preprocessor macro, not an actual symbol; so libesmtp's ./configure erroneously thinks that libssl isn't available, and disables openssl support.

@middleagedman
Copy link
Author

FYI.. Users can also use this systemd file to start/stop service.

Just place in /etc/systemd/system/ser2sock.service
Run 'systemctl daemon-reload'
Run 'systemctl enable ser2sock.service'
Run 'systemctl start ser2sock.service'

[Unit]
Description=Proxy that allows tcp connections to serial ports
After=syslog.target network.target

[Service]
Type=forking
ExecStart=/usr/local/bin/ser2sock -d
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target

endlesscoil pushed a commit that referenced this issue Jul 5, 2017
@endlesscoil
Copy link
Collaborator

Thanks for the report!

I've updated the configure scripts to use SSL_CTX_new instead of SSL_library_init. Seems to support both OpenSSL 1.0 and 1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants