Comments (9)
Weird. It seems that this is a bug in the Solaris libc as described in this post: http://www.sourceware.org/ml/guile/1998-10/msg00132.html
from postsrsd.
Please try the latest version from the master branch and see if the bug is fixed.
from postsrsd.
i spent a few hours going through code today, and there is no way it can print things twice, its well written.. i was looking around telnet options and extra character echoing.. i thought there might have been a socket bug i didn't get any furthur i ran out of time
so a fseek between read and write, so the buffered read data wont be added to the subsequent write. ugh. maybe people can chip in and donate some buffers for them :)
the code runs on solaris pretty well, but i have limited cmake foo, i needed only to change some paths, add -lsocket -lnsl flags. there is no base64 on solaris, but uuencode does bas64 encoding, well enough
on solaris i tend ti build into prefixes, to avoid splatting system stuff
i'll try it and send some diffs, such as they are :)
On 17 Oct 2014, at 10:44 pm, Timo Röhling [email protected] wrote:
Weird. It seems that this is a bug in the Solaris libc as described in this post: http://www.sourceware.org/ml/guile/1998-10/msg00132.html
—
Reply to this email directly or view it on GitHub.
from postsrsd.
i used sucessfully the current master, but added at the top of CMakeLists.txt :
set(EXTRA_LIBS "-lsocket -lnsl")
and after the add_executable :
target_link_libraries(${PROJECT_NAME} ${EXTRA_LIBS})
and it compiles and links.. no echo this time :
telnet localhost 10001
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
get [email protected]
200 SRS0+9SUc=7M=bar.com=[email protected]
the EXTRA_LIBS would only work for solaris variants, i added a manual SOLARIS switch
from postsrsd.
there is no base64 on solaris, but the following works :
dd if=/dev/urandom bs=18 count=1 2>/dev/null | openssl base64 -e
from postsrsd.
is there a nice cmake way of detecting that you are on solaris ?
then the EXTRA_LIBS etc., could auto add, iff he platform is solaris
from postsrsd.
I think the canonical way would be to search for libsocket and libnsl and link against it if present.
from postsrsd.
May I assume that the linked libraries and the openssl addition fix this issue?
from postsrsd.
yes it works ok :)
On Fri, Oct 24, 2014 at 4:49 AM, Timo Röhling [email protected]
wrote:
May I assume that the linked libraries and the openssl addition fix this
issue?Reply to this email directly or view it on GitHub
#21 (comment).Whenever you find yourself on the side of the majority, it is time to
pause and reflect.
- Mark Twain
from postsrsd.
Related Issues (20)
- Systemd service startup failure in PostSRSd 1.8 / `SRS_EXTRA_OPTIONS` empty argument HOT 3
- Rewrite sender addresses based on recipient domain HOT 6
- 100% CPU usage without further logs or ports opened HOT 7
- multiple domains must be separated by comma
- `make -j` fails with `undefined reference to symbol '__pthread_unregister_cancel@@GLIBC_2.3.3'` HOT 3
- cmake hangs HOT 8
- build: improve default systemd unitdir HOT 1
- drop_privileges does not drop enough
- Installation error. HOT 2
- Not created milter socket file. HOT 2
- Endless loop HOT 2
- Socketmap Permission denied / Postfix chroot problem? HOT 13
- 2.x supports CLI args but dropped `-h` HOT 1
- Using Github Actions to distribute releases HOT 5
- Looking for new Debian maintainer
- Segfault when using redis through a unix socket
- /usr/sbin/postsrsd: unrecognized option: f HOT 4
- Quieter Logging
- invalid socketmap query, closing connection HOT 3
- milter socket creation is after privileges are dropped HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postsrsd.