Code Monkey home page Code Monkey logo

Comments (9)

roehling avatar roehling commented on May 30, 2024

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.

roehling avatar roehling commented on May 30, 2024

Please try the latest version from the master branch and see if the bug is fixed.

from postsrsd.

maxfieb avatar maxfieb commented on May 30, 2024

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.

maxfieb avatar maxfieb commented on May 30, 2024

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.

maxfieb avatar maxfieb commented on May 30, 2024

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.

maxfieb avatar maxfieb commented on May 30, 2024

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.

roehling avatar roehling commented on May 30, 2024

I think the canonical way would be to search for libsocket and libnsl and link against it if present.

from postsrsd.

roehling avatar roehling commented on May 30, 2024

May I assume that the linked libraries and the openssl addition fix this issue?

from postsrsd.

maxfieb avatar maxfieb commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.