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

connection error (xfreerdp on solaris 11) #571

Closed
tschoenemann opened this issue May 2, 2012 · 6 comments
Closed

connection error (xfreerdp on solaris 11) #571

tschoenemann opened this issue May 2, 2012 · 6 comments
Labels

Comments

@tschoenemann
Copy link

I just checked out the latest version and compiled it on solaris11
with
-DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON -DWITH_FFMPEG=OFF -DWITH_ALSA=OFF

but when i try to connect to any of our RDP servers i always get:

xfreerdp citrixserver
connected to citrixserver:3389
recv: Resource temporarily unavailable
[1] 18382 exit 131 xfreerdp

With "truss" i see this:
/2: write(1, " c o n n e c t e d t o".., 31) = 31
/2: getsockname(9, 0xFE68EB88, 0xFE68EB98, SOV_DEFAULT) = 0
/2: setsockopt(9, tcp, TCP_NODELAY, 0xFE68EBFC, 4, SOV_DEFAULT) = 0
/2: getsockopt(9, SOL_SOCKET, SO_RCVBUF, 0xFE68EBFC, 0xFE68EBF8, SOV_DEFAULT) = 0
/2: setsockopt(9, SOL_SOCKET, SO_KEEPALIVE, 0xFE68EBA8, 4, SOV_DEFAULT) = 0
/2: send(9, "03\0\0130EE0\0\0\0\0\001".., 19, 0) = 19
/2: recv(9, "03\0\0\v06D0\0\012 4\0", 16384, 0) = 11
/2: fcntl(9, F_GETFL) = 2
/2: fcntl(9, F_SETFL, FWRITE|FNONBLOCK) = 0
/2: brk(0x0813AF48) = 0
/2: brk(0x0813CF48) = 0
/2: brk(0x0813CF48) = 0
/2: brk(0x08140F48) = 0
/2: send(9, "03\001 x02F0807F e8201 l".., 376, 0) = 376
/2: pollsys(0xFE68EA90, 1, 0xFE68EB28, 0x00000000) = 0
/2: recv(9, 0x080BAFD8, 16384, 0) Err#11 EAGAIN
recv/2: write(2, " r e c v", 4) = 4
: /2: write(2, " : ", 2) = 2
Resource temporarily unavailable/2: write(2, " R e s o u r c e t e m".., 32) = 32

So, xfreerdp seem to open the connection , send some data to the RDP server and then the
recv() fails.

Can someone give me a hint?
Is xfreerdp supposed to work on solaris11?

thomas

@dago
Copy link

dago commented May 9, 2012

The problem is also reproducable on Solaris 10 i386 with Sun Studio 12 compiler.

@atong
Copy link
Member

atong commented May 20, 2012

I dont have a Solaris machine available. Can you try manually adding '-mt' to CMAKE_C_FLAGS and do a clean build?

Thanks.

@tschoenemann
Copy link
Author

atong, I added the line :
set(CMAKE_C_FLAGS "-threads" )
into the file "CMakeLists.txt" for the GCC compiler.

And it WORKS now! Thanks!

Will you submit this patch?

@atong
Copy link
Member

atong commented May 23, 2012

Ok, sounds like we need the cmake statements to detect solaris & whether gcc ('-threads') or SUNWspro ('-mt') is needed for CMAKE_C_FLAGS.

@otconn
Copy link

otconn commented Aug 27, 2012

Hi. I have been trying to add the line: set(CMAKE_C_FLAGS "-threads" ) or "-threads" as the above-mentioned suggestion in few places in CMakelist.txt, but I still have the same connection problem "recv: Resource temporarily unavailable" . I complied on Solaris 11 and Solaris Sparc 10 with gcc 4.6.3

Compiler-specific flags

if(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
CHECK_C_COMPILER_FLAG (-Wno-unused-result Wno-unused-result)
if(Wno-unused-result)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-result")
endif()
CHECK_C_COMPILER_FLAG (-Wno-unused-but-set-variable Wno-unused-but-set-variable)
if(Wno-unused-but-set-variable)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-but-set-variable")
endif()
if(CMAKE_BUILD_TYPE STREQUAL "Release")
set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
endif()

if(WITH_SSE2_TARGET)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2")
endif()

endif()

Could you please specify where did you add the gcc flag to make it work. Thanks in advance.

@bmiklautz
Copy link
Member

Please re-open or create a new issue if this problem still exists on the current mater branch.

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

No branches or pull requests

5 participants