xrdp on Mac OS X Leopard

xrdp
Snoop1990
2008-04-06
2013-06-05
  • Snoop1990

    Snoop1990 - 2008-04-06

    I tried to compile xrdp on Mac OS X Leopard and got the following error:

    make -C vnc
    gcc -Wall -O2 -I../common -fPIC    -c -o vnc.o vnc.c
    gcc -Wall -O2 -I../common -fPIC  -c -g ../common/os_calls.c
    gcc -Wall -O2 -I../common -fPIC  -c -g ../common/d3des.c
    gcc -shared -o libvnc.so vnc.o os_calls.o d3des.o -ldl
    Undefined symbols:
      "_main", referenced from:
          start in crt1.10.5.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make[1]: *** [libvnc.so] Error 1
    make: *** [base] Error 2

    Please help !
    I use the actual cvs version !

     
    • Snoop1990

      Snoop1990 - 2008-04-06

      I figured out how to use the make file designed for Mac  Os X and get the following result:

      make -C vnc
      gcc -Wall -O2 -I../common -fPIC    -c -o vnc.o vnc.c
      gcc -Wall -O2 -I../common -fPIC  -c -g ../common/os_calls.c
      gcc -Wall -O2 -I../common -fPIC  -c -g ../common/d3des.c
      gcc -shared -o libvnc.so vnc.o os_calls.o d3des.o -ldl
      Undefined symbols:
        "_main", referenced from:
            start in crt1.10.5.o
      ld: symbol(s) not found
      collect2: ld returned 1 exit status
      make[1]: *** [libvnc.so] Error 1
      make: *** [base] Error 2
      MacBook-Pro-17:xrdp snoop1990$ cd ..
      MacBook-Pro-17:.Trash snoop1990$ cd /users/snoop1990/desktop/"xrdp 2"
      MacBook-Pro-17:xrdp 2 snoop1990$ make
      make: *** No targets specified and no makefile found.  Stop.
      MacBook-Pro-17:xrdp 2 snoop1990$ make
      make -C vnc -f Makefile.osx
      gcc -Wall -O2 -I../common -fPIC    -c -o vnc.o vnc.c
      gcc -Wall -O2 -I../common -fPIC  -c -g ../common/os_calls.c
      gcc -Wall -O2 -I../common -fPIC  -c -g ../common/d3des.c
      gcc -dynamiclib -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -o libvnc.dylib vnc.o os_calls.o d3des.o
      make -C libxrdp -f Makefile.osx
      gcc -Wall -O2 -I../common -fPIC -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_KEY_FILE=\"/etc/xrdp/rsakeys.ini\"   -c -o libxrdp.o libxrdp.c
      gcc -Wall -O2 -I../common -fPIC -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_KEY_FILE=\"/etc/xrdp/rsakeys.ini\"   -c -o xrdp_tcp.o xrdp_tcp.c
      gcc -Wall -O2 -I../common -fPIC -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_KEY_FILE=\"/etc/xrdp/rsakeys.ini\"   -c -o xrdp_iso.o xrdp_iso.c
      gcc -Wall -O2 -I../common -fPIC -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_KEY_FILE=\"/etc/xrdp/rsakeys.ini\"   -c -o xrdp_mcs.o xrdp_mcs.c
      gcc -Wall -O2 -I../common -fPIC -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_KEY_FILE=\"/etc/xrdp/rsakeys.ini\"   -c -o xrdp_sec.o xrdp_sec.c
      gcc -Wall -O2 -I../common -fPIC -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_KEY_FILE=\"/etc/xrdp/rsakeys.ini\"   -c -o xrdp_rdp.o xrdp_rdp.c
      gcc -Wall -O2 -I../common -fPIC -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_KEY_FILE=\"/etc/xrdp/rsakeys.ini\"   -c -o xrdp_orders.o xrdp_orders.c
      gcc -Wall -O2 -I../common -fPIC -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_KEY_FILE=\"/etc/xrdp/rsakeys.ini\"   -c -o xrdp_bitmap_compress.o xrdp_bitmap_compress.c
      gcc -Wall -O2 -I../common -fPIC -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_KEY_FILE=\"/etc/xrdp/rsakeys.ini\"   -c -o xrdp_channel.o xrdp_channel.c
      gcc -Wall -O2 -I../common -fPIC -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_KEY_FILE=\"/etc/xrdp/rsakeys.ini\" -c ../common/os_calls.c
      gcc -Wall -O2 -I../common -fPIC -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_KEY_FILE=\"/etc/xrdp/rsakeys.ini\" -c ../common/ssl_calls.c
      gcc -Wall -O2 -I../common -fPIC -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_KEY_FILE=\"/etc/xrdp/rsakeys.ini\" -c ../common/file.c
      gcc -dynamiclib -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -o libxrdp.dylib libxrdp.o xrdp_tcp.o xrdp_iso.o xrdp_mcs.o xrdp_sec.o xrdp_rdp.o xrdp_orders.o xrdp_bitmap_compress.o xrdp_channel.o os_calls.o ssl_calls.o file.o -lcrypto
      make -C xrdp -f Makefile.osx
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\"   -c -o xrdp.o xrdp.c
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\"   -c -o xrdp_process.o xrdp_process.c
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\"   -c -o xrdp_listen.o xrdp_listen.c
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\"   -c -o xrdp_bitmap.o xrdp_bitmap.c
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\"   -c -o xrdp_wm.o xrdp_wm.c
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\"   -c -o xrdp_painter.o xrdp_painter.c
      xrdp_painter.c:82: warning: ‘xrdp_painter_clip_adj’ defined but not used
      xrdp_painter.c:153: warning: ‘xrdp_painter_rop’ defined but not used
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\"   -c -o xrdp_region.o xrdp_region.c
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\"   -c -o xrdp_cache.o xrdp_cache.c
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\"   -c -o xrdp_font.o xrdp_font.c
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\"   -c -o funcs.o funcs.c
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\"   -c -o xrdp_login_wnd.o xrdp_login_wnd.c
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\"   -c -o lang.o lang.c
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\" -c ../common/list.c
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\" -c ../common/file.c
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\" -c ../common/os_calls.c
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\" -c ../common/thread_calls.c
      gcc -Wall -O2 -I../common -I../libxrdp -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_PID_FILE=\"/var/run/xrdp.pid\"   -c -o xrdp_mm.o xrdp_mm.c
      gcc -L../libxrdp -o xrdp xrdp.o xrdp_process.o xrdp_listen.o xrdp_bitmap.o xrdp_wm.o xrdp_painter.o xrdp_region.o xrdp_cache.o xrdp_font.o funcs.o xrdp_login_wnd.o lang.o list.o file.o os_calls.o thread_calls.o xrdp_mm.o -ldl -lpthread -lxrdp -lcrypto
      make -C rdp -f Makefile.osx
      gcc -Wall -O2 -I../common -fPIC  -c ../common/ssl_calls.c
      gcc -Wall -O2 -I../common -fPIC  -c ../common/os_calls.c
      gcc -Wall -O2 -I../common -fPIC    -c -o rdp.o rdp.c
      gcc -Wall -O2 -I../common -fPIC    -c -o rdp_tcp.o rdp_tcp.c
      gcc -Wall -O2 -I../common -fPIC    -c -o rdp_iso.o rdp_iso.c
      gcc -Wall -O2 -I../common -fPIC    -c -o rdp_mcs.o rdp_mcs.c
      gcc -Wall -O2 -I../common -fPIC    -c -o rdp_sec.o rdp_sec.c
      gcc -Wall -O2 -I../common -fPIC    -c -o rdp_orders.o rdp_orders.c
      gcc -Wall -O2 -I../common -fPIC    -c -o rdp_bitmap.o rdp_bitmap.c
      gcc -Wall -O2 -I../common -fPIC    -c -o rdp_rdp.o rdp_rdp.c
      gcc -Wall -O2 -I../common -fPIC    -c -o rdp_lic.o rdp_lic.c
      gcc -dynamiclib -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -o librdb.dylib ssl_calls.o os_calls.o rdp.o rdp_tcp.o rdp_iso.o rdp_mcs.o rdp_sec.o rdp_orders.o rdp_bitmap.o rdp_rdp.o rdp_lic.o -ldl -lcrypto
      make -C xup -f Makefile.osx
      gcc -Wall -O2 -I../common -fPIC  -c ../common/os_calls.c
      gcc -Wall -O2 -I../common -fPIC    -c -o xup.o xup.c
      gcc -dynamiclib -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -o libxup.dylib os_calls.o xup.o -ldl
      make -C sesman -f Makefile.osx kerberos
      make -C libscp -f Makefile.osx
      gcc -Wall -O2 -I../../common -I/usr/include/nptl -fPIC -fno-common -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -DSESMAN_SESSVC_FILE=\"sessvc\"   -c -o libscp_vX.o libscp_vX.c
      gcc -Wall -O2 -I../../common -I/usr/include/nptl -fPIC -fno-common -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -DSESMAN_SESSVC_FILE=\"sessvc\"   -c -o libscp_v0.o libscp_v0.c
      gcc -Wall -O2 -I../../common -I/usr/include/nptl -fPIC -fno-common -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -DSESMAN_SESSVC_FILE=\"sessvc\"   -c -o libscp_v1s.o libscp_v1s.c
      libscp_v1s.c:126:6: warning: #warning how to handle ipv6 addresses?
      libscp_v1s.c:384:2: warning: #warning maybe this message could say if the session should be resized on
      libscp_v1s.c:385:2: warning: #warning server side or client side
      gcc -Wall -O2 -I../../common -I/usr/include/nptl -fPIC -fno-common -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -DSESMAN_SESSVC_FILE=\"sessvc\"   -c -o libscp_v1c.o libscp_v1c.c
      libscp_v1c.c:81:6: warning: #warning ipv6 address needed
      gcc -Wall -O2 -I../../common -I/usr/include/nptl -fPIC -fno-common -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -DSESMAN_SESSVC_FILE=\"sessvc\"   -c -o libscp_init.o libscp_init.c
      gcc -Wall -O2 -I../../common -I/usr/include/nptl -fPIC -fno-common -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -DSESMAN_SESSVC_FILE=\"sessvc\"   -c -o libscp_lock.o libscp_lock.c
      gcc -Wall -O2 -I../../common -I/usr/include/nptl -fPIC -fno-common -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -DSESMAN_SESSVC_FILE=\"sessvc\"   -c -o libscp_tcp.o libscp_tcp.c
      gcc -Wall -O2 -I../../common -I/usr/include/nptl -fPIC -fno-common -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -DSESMAN_SESSVC_FILE=\"sessvc\"   -c -o libscp_session.o libscp_session.c
      libscp_session.c:46:2: warning: #warning FIXME use scp_session_set* to init session
      libscp_session.c:223:2: warning: #warning FIXME managing addresses
      gcc -Wall -O2 -I../../common -I/usr/include/nptl -fPIC -fno-common -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -DSESMAN_SESSVC_FILE=\"sessvc\"   -c -o libscp_connection.o libscp_connection.c
      gcc -Wall -O2 -I../../common -I/usr/include/nptl -fPIC -fno-common -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -DSESMAN_SESSVC_FILE=\"sessvc\" -c ../../common/os_calls.c
      gcc -dynamiclib -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -lpthread -o libscp.0.0.dylib libscp_vX.o libscp_v0.o libscp_v1s.o libscp_v1c.o libscp_init.o libscp_lock.o libscp_tcp.o libscp_session.o libscp_connection.o os_calls.o
      ln -f -s libscp.0.0.dylib libscp.dylib
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\"   -c -o sesman.o sesman.c
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\"   -c -o config.o config.c
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\"   -c -o sig.o sig.c
      sig.c:63:2: warning: #warning FIXME reload configuration must NOT damage logging!
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\"   -c -o session.o session.c
      session.c:616:2: warning: #warning FIXME: we should get only disconnected sessions!
      session.c:648:2: warning: #warning FIXME: we should get only disconnected sessions!
      session.c:656:2: warning: #warning FIXME: setting idle times and such
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\"   -c -o env.o env.c
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -c ../common/os_calls.c
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -c ../common/d3des.c
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -c ../common/list.c
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -c ../common/file.c
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -c -DLOG_ENABLE_THREAD ../common/log.c
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\"   -c -o access.o access.c
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\"   -c -o scp.o scp.c
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\"   -c -o scp_v0.o scp_v0.c
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\"   -c -o scp_v1.o scp_v1.c
      scp_v1.c:138:2: warning: #warning FIXME session_get_by*() should return a malloc()ated struct
      scp_v1.c:139:2: warning: #warning FIXME or at least lock the chain
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\"   -c -o thread.o thread.c
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\"   -c -o lock.o lock.c
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\"   -c -o verify_user_kerberos.o verify_user_kerberos.c
      gcc -L./libscp -lpthread -ldl -lscp -o sesman sesman.o config.o sig.o session.o env.o os_calls.o d3des.o list.o file.o log.o access.o scp.o scp_v0.o scp_v1.o thread.o lock.o verify_user_kerberos.o -lkrb5
      gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\"   -c -o sessvc.o sessvc.c
      gcc -L./libscp -lpthread -ldl -lscp -o sessvc sessvc.o os_calls.o
      make -C tools -f Makefile.osx
      gcc -Wall -O2 -I../../common -I../ -I../libscp -DLIBSCP_CLIENT   -c -o sestest.o sestest.c
      gcc -Wall -O2 -I../../common -I../ -I../libscp -DLIBSCP_CLIENT -c -g ../../common/os_calls.c
      gcc -L../libscp -lpthread -ldl -lscp -DLIBSCP_CLIENT -o sestest sestest.o os_calls.o
      Undefined symbols:
        "_log_start", referenced from:
            _main in sestest.o
      ld: symbol(s) not found
      collect2: ld returned 1 exit status
      make[2]: *** [stest] Error 1
      make[1]: *** [tools] Error 2
      make: *** [kerberos] Error 2

      Still some error ... please help !

       
    • Snoop1990

      Snoop1990 - 2008-04-06

      I just removed the docs section and get this. It seems like it worked :-)

      make -C vnc -f Makefile.osx
      make[1]: Nothing to be done for `all'.
      make -C libxrdp -f Makefile.osx
      make[1]: Nothing to be done for `all'.
      make -C xrdp -f Makefile.osx
      make[1]: Nothing to be done for `all'.
      make -C rdp -f Makefile.osx
      make[1]: Nothing to be done for `all'.
      make -C xup -f Makefile.osx
      make[1]: Nothing to be done for `all'.
      make -C sesman -f Makefile.osx kerberos
      make -C libscp -f Makefile.osx
      gcc -dynamiclib -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -lpthread -o libscp.0.0.dylib libscp_vX.o libscp_v0.o libscp_v1s.o libscp_v1c.o libscp_init.o libscp_lock.o libscp_tcp.o libscp_session.o libscp_connection.o os_calls.o
      ln -f -s libscp.0.0.dylib libscp.dylib
      gcc -L./libscp -lpthread -ldl -lscp -o sesman sesman.o config.o sig.o session.o env.o os_calls.o d3des.o list.o file.o log.o access.o scp.o scp_v0.o scp_v1.o thread.o lock.o verify_user_kerberos.o -lkrb5
      make -C sesman -f Makefile.osx tools
      make[1]: `tools' is up to date.

       
    • Snoop1990

      Snoop1990 - 2008-04-07

      I thought it was fixed but it was not:

      gcc -shared -o libvnc.so vnc.o os_calls.o d3des.o -ldl
      Undefined symbols:
        "_main", referenced from:
            start in crt1.10.5.o
      ld: symbol(s) not found
      collect2: ld returned 1 exit status

      I run Mac OS 10.5.2 !

       
    • Snoop1990

      Snoop1990 - 2008-04-08

      I finally was able to compile and install but  I still get an error

      When I connect (using rdesktop) Login fails ! And there is something when I start the xrdp service:

      ps: illegal option -- -
      usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
                [-u]
                [-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
             ps [-L]

      Please help !

       
    • Carl Farrington

      Carl Farrington - 2008-09-20

      I guess that might be caused by the --noheading in the xrdp_control.sh:

      is_xrdp_running()
      {
        ps u --noheading -C $XRDP | grep -q -i $XRDP
        if test $? -eq 0
        then
          return 1;
        else
          return 0;
        fi
      }

      OS X's ps doesn't like --noheading?

      On my Fedora 9, I didn't use the service control scripts or anything, I just fired up sesman and xrdp binaries from a root terminal, and it seems to work very well, as long as vncserver is installed.

       
  • Anonymous - 2013-02-25

    # As OSX user that has sudo privileges
    # Install brew
    ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
    # Install wget tree
    brew install wget
    brew install tree
    brew install pkg-config
    wget "http://downloads.sourceforge.net/project/xrdp/xrdp/0.6.0/xrdp-v0.6.0.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fxrdp%2Ffiles%2F&ts=1359787244&use_mirror=iweb"
    mv "xrdp-v0.6.0.tar.gz?r=http:%2F%2Fsourceforge.net%2Fprojects%2Fxrdp%2Ffiles%2F&ts=1359787244&use_mirror=iweb" "xrdp-v0.6.0.tar.gz"
    tar xvzf "xrdp-v0.6.0.tar.gz"
    cd xrdp-v0.6.0
    # Install autoconf
    brew install autoconf
    brew install automake
    brew install libtool
    brew install gettext

    ./glibtoolize
    # Edit all the makefiles here

    ./bootstrap
    # Bootstrap will tell you what needs to be updated in the makefiles
    # Edit all the makefiles here

    ./bootstrap

    # # Here is what is installed
    # brew list
    #     autoconf        gettext         pkg-config      wget
    #     automake        libtool         tree

    ./configure -prefix=/usr -sysconfdir=/etc -localstatedir=/var
    make
    sudo make install
    # OK, finished without problems

    # Now, create the user and group on OSX
    # http://scarygliders.net/2011/09/23/install-xrdp-and-x11rdp-the-comprehensive-howto-for-ubuntu-and-debian-based-systems/
    su -

    # useradd -d /var/run -r -s /bin/false xrdp
    # find a unique user id
    sudo dscl . -list /Users uid | awk '{print $2}' | sort -ug | tail -1
    # find a unique group id
    sudo dscl . -list groups gid | awk '{print $2}' | sort -ug | tail -1

    dscl . -create /Users/xrdp
    dscl . -create /Users/xrdp UserShell /bin/false
    dscl . -create /Users/xrdp RealName xrdp
    dscl . -create /Users/xrdp UniqueID 505
    dscl . -create /Users/xrdp PrimaryGroupID 0
    dscl . -create /Users/xrdp NFSHomeDirectory /var/run

    mkdir /usr/share/doc/xrdp

    xrdp-keygen xrdp /etc/xrdp/rsakeys.ini

    mv /etc/xrdp/rsakeys.ini /usr/share/doc/xrdp/

    chmod 600 /usr/share/doc/xrdp/rsakeys.ini

    chown xrdp:wheel /usr/share/doc/xrdp/rsakeys.ini

    # So, I was able to compile and run XRPP, just need libvnc.so
    # and vncserver (which OSX is supposed to be running natively)
    #
    # OK, OSX has aqua and that is not supported by XRDP.
    # Got stuck here.
    # Also, XRDP depends on libvnc.so that is not anywhere on
    # the OSX filesystem but all linux installs have it.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks