From: Patterson, J. <JP...@ls...> - 2012-08-08 04:49:37
|
Greetings! I suspect I know the answer to this query, but thought I'd try anyway: 1.) is it possible to get TightVNC working on 10.8? (presumed yes) My goal is to get a vncserver on Mountain Lion 10.8. I have a brand new shiny Mac Pro, dual 6-core CPUs, and way too much RAM. I need to get 3 users on it. Using the extant fast-user switching combined with remote login usually results in a system hang, at least when that is from windows or linux on the other end. Any help there would be appreciated, but I've found little. So, from here: http://pdb.finkproject.org/pdb/package.php/tightvnc?rel_id=10.6-x86_64-current-stable I see that the last built package for TightVNC is from 10.6. 2.) I presume this is why fink does not list any packages for tightvnc - even with unstable packages listed? Is there any way to hack that to make it list old packages? (presumed yes that's why it doesn't list, and no to the hack) So, I downloaded the latest source, and took a crack at compiling it. I have X11 installed via fink, and the libs needed, I have the fink install present, I use the insturctions here http://www.finkproject.org/faq/usage-general.php?phpLang=en for compiling a non-fink package with fink. I have gotten thru xmkmf make World cd Xvnc ./configure and I get errors on make while compiling the server: ---snip--- -DGCCUSESGAS -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DXSERV_t -DTRANS_SERVER -DTCPCONN -DUNIXCONN -DHASXDMAUTH -DUSE_RGB_TXT -DNDBM oscolor.c rm -f osinit.o gcc -c -O2 -ansi -Dasm=__asm -I. -I../include -I../../.././/exports/include/X11 -I../../.././/include/extensions -I../../.././/lib/Xau -I../lbx -I../../.././ -I../../.././/exports/include -DCSRG_BASED -DSHAPE -DGCCUSESGAS -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DXSERV_t -DTRANS_SERVER -DTCPCONN -DUNIXCONN -DHASXDMAUTH -DUSE_RGB_TXT -DADMPATH=\"/var/log/X\%smsgs\" osinit.c In file included from ../../.././/exports/include/X11/Xos.h:154, from osinit.c:55: /usr/include/stdlib.h:146: error: expected identifier or â(â before âintâ /usr/include/stdlib.h:146: error: expected â)â before â>â token make[3]: *** [osinit.o] Error 1 make[2]: *** [os] Error 2 make[1]: *** [all] Error 2 make: *** [all] Error 2 ---end--- I'm not clear on why some strange charaters are in there at all. Googleing that error message reveals that others have gotten similar errors - but at different spots in stdlib.h. >From what I gather, there's nothing wrong with stdlib.h, and I don't see anythng wrong with osinit.c or Xos.h either: stdlib.h lines 144-147: __BEGIN_DECLS void abort(void) __dead2; int abs(int) __pure2; int atexit(void (*)(void)); Xos.h line 154: #include <stdlib.h> Aaand osinit.c line 55: #include "Xos.h" The general gist of the replies to previous posts are that there's an error in the code in the .c file...but given that osinit.c is provided in the package, I presume that it's an inconsistency of that file's code with the latest flavor of Darwin. I was hoping that someone here had some helpful suggestions...I would be happy to provide more information if desired. Thanks, James |
From: Alexander H. <ale...@gm...> - 2012-08-08 14:23:38
|
On 8/7/12 9:14 PM, Patterson, James wrote: > Greetings! > > I suspect I know the answer to this query, but thought I'd try anyway: > > 1.) is it possible to get TightVNC working on 10.8? > > (presumed yes) > My goal is to get a vncserver on Mountain Lion 10.8. I have a brand new shiny Mac Pro, dual 6-core CPUs, and way too much RAM. I need to get 3 users on it. Using the extant fast-user switching combined with remote login usually results in a system hang, at least when that is from windows or linux on the other end. Any help there would be appreciated, but I've found little. > > So, from here: http://pdb.finkproject.org/pdb/package.php/tightvnc?rel_id=10.6-x86_64-current-stable > I see that the last built package for TightVNC is from 10.6. > > 2.) I presume this is why fink does not list any packages for tightvnc - even with unstable packages listed? Is there any way to hack that to make it list old packages? How good are you with Perl? I believe there's a 1:1 mapping between the OS version and the package distribution it can see, and making fink look both in 10.4/ and 10.7/ would be quite involved. A fallback option is to edit /sw/etc/fink.conf and add the line "SelfupdateTrees: 10.7 10.4" to it, then set your selfupdate method to cvs, e.g. via "fink selfupdate-cvs". That will download the 10.4/ tree package descriptions (which now serve 10.5. and 10.6), and you can copy them over to your 10.7 tree for testing. > > (presumed yes that's why it doesn't list, and no to the hack) > > So, I downloaded the latest source, and took a crack at compiling it. I have X11 installed via fink, You had _better_ not. We don't provide an X11 for any currently supported OS. and the libs needed, I have the fink install present, I use the insturctions here http://www.finkproject.org/faq/usage-general.php?phpLang=en for compiling a non-fink package with fink. > > I have gotten thru > xmkmf > make World > cd Xvnc > ./configure > > and I get errors on make while compiling the server: > ---snip--- > -DGCCUSESGAS -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DXSERV_t -DTRANS_SERVER -DTCPCONN -DUNIXCONN -DHASXDMAUTH -DUSE_RGB_TXT -DNDBM oscolor.c > rm -f osinit.o > gcc -c -O2 -ansi -Dasm=__asm -I. -I../include -I../../.././/exports/include/X11 -I../../.././/include/extensions -I../../.././/lib/Xau -I../lbx -I../../.././ -I../../.././/exports/include -DCSRG_BASED -DSHAPE -DGCCUSESGAS -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DXSERV_t -DTRANS_SERVER -DTCPCONN -DUNIXCONN -DHASXDMAUTH -DUSE_RGB_TXT -DADMPATH=\"/var/log/X\%smsgs\" osinit.c > In file included from ../../.././/exports/include/X11/Xos.h:154, > from osinit.c:55: > /usr/include/stdlib.h:146: error: expected identifier or â(â before âintâ > /usr/include/stdlib.h:146: error: expected â)â before â>â token > make[3]: *** [osinit.o] Error 1 > make[2]: *** [os] Error 2 > make[1]: *** [all] Error 2 > make: *** [all] Error 2 > ---end--- > > I'm not clear on why some strange charaters are in there at all. > > Googleing that error message reveals that others have gotten similar errors - but at different spots in stdlib.h. > >>From what I gather, there's nothing wrong with stdlib.h, and I don't see anythng wrong with osinit.c or Xos.h either: > > stdlib.h lines 144-147: > > __BEGIN_DECLS > void abort(void) __dead2; > int abs(int) __pure2; > int atexit(void (*)(void)); > > Xos.h line 154: > #include <stdlib.h> > > Aaand osinit.c line 55: > #include "Xos.h" > > The general gist of the replies to previous posts are that there's an error in the code in the .c file...but given that osinit.c is provided in the package, I presume that it's an inconsistency of that file's code with the latest flavor of Darwin. > > I was hoping that someone here had some helpful suggestions...I would be happy to provide more information if desired. > > Thanks, > James > > Fink's tightvnc packaging includes a patch: http://fink.cvs.sourceforge.net/fink/dists/10.4/stable/main/finkinfo/x11-system/tightvnc.patch You might check if any of the elements in that are relevant to your issue. Otherwise, it's definitely not impossible that Mountain Lion made some changes which are incompatible with the current tightvnc release. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ |
From: Patterson, J. <JP...@ls...> - 2012-08-08 20:49:23
|
Progress! > A fallback option is to edit /sw/etc/fink.conf and add the line > "SelfupdateTrees: 10.7 10.4" to it, then set your selfupdate method > to cvs, e.g. via "fink selfupdate-cvs". That will download the 10.4/ > tree package descriptions (which now serve 10.5. and 10.6), and you can > copy them over to your 10.7 tree for testing. Yep. Did that. Got further than I've gotten before. New error msg, but I still need to apply that patch below. > You had _better_ not. We don't provide an X11 for any currently supported OS. Sorry, correction: X11 is installed because of fink, and a desire to get tightvnc running. > Fink's tightvnc packaging includes a patch: > http://fink.cvs.sourceforge.net/fink/dists/10.4/stable/main/finkinfo/x11-system/tightvnc.patch > You might check if any of the elements in that are relevant to your issue. > Otherwise, it's definitely not impossible that Mountain Lion made some changes which are incompatible with the current tightvnc release. Thanks! How do I apply a patch to a fink package? Either this is way obvious, or I missed it in the instructions... James |
From: Alexander H. <ale...@gm...> - 2012-08-08 21:10:17
|
On 8/8/12 1:49 PM, Patterson, James wrote: > Progress! > >> A fallback option is to edit /sw/etc/fink.conf and add the line >> "SelfupdateTrees: 10.7 10.4" to it, then set your selfupdate method >> to cvs, e.g. via "fink selfupdate-cvs". That will download the 10.4/ >> tree package descriptions (which now serve 10.5. and 10.6), and you can >> copy them over to your 10.7 tree for testing. > > Yep. Did that. Got further than I've gotten before. > New error msg, but I still need to apply that patch below. > >> You had _better_ not. We don't provide an X11 for any currently supported OS. > > Sorry, correction: X11 is installed because of fink, and a desire to get tightvnc running. > >> Fink's tightvnc packaging includes a patch: >> http://fink.cvs.sourceforge.net/fink/dists/10.4/stable/main/finkinfo/x11-system/tightvnc.patch >> You might check if any of the elements in that are relevant to your issue. >> Otherwise, it's definitely not impossible that Mountain Lion made some changes which are incompatible with the current tightvnc release. > > > Thanks! How do I apply a patch to a fink package? Either this is way obvious, or I missed it in the instructions... > > James > > > If you're using Fink to build the package, it should have been applied for you. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ |
From: Patterson, J. <JP...@ls...> - 2012-08-09 17:30:12
|
>> Thanks! How do I apply a patch to a fink package? Either this is way obvious, or I missed it in the instructions... > If you're using Fink to build the package, it should have been applied for you. Of course! Ok then, here's the error message: ---snip--- gcc -c -O2 -ansi -Dasm=__asm -I. -I../../../.././/exports/include/X11 -I../../../.././/include/fonts -I../../../.././/exports/include/X11 -I../../cfb -I../../mfb -I../../mi -I../../include -I../../os -I../../../.././/../include -I/sw/include -I../../../.././ -I../../../.././/exports/include -DCSRG_BASED -DSHAPE -DGCCUSESGAS -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO loginauth.c rm -f libvnc.a ar clq libvnc.a init.o sockets.o kbdptr.o cmap.o draw.o cutpaste.o dispcur.o sprite.o rfbserver.o translate.o httpd.o auth.o rre.o corre.o stats.o hextile.o zlib.o tight.o cursor.o loginauth.o ranlib libvnc.a make[2]: *** No rule to make target `../.././/lib/Xau/libXau.a', needed by `Xvnc'. Stop. make[1]: *** [all] Error 2 make: *** [all] Error 2 ### execution of /tmp/fink.i8I9v failed, exit code 2 ### execution of /tmp/fink.C1Gxz failed, exit code 2 Removing runtime build-lock... Removing build-lock package... /sw/bin/dpkg-lockwait -r fink-buildlock-tightvnc-1.3.8-4 (Reading database ... 26244 files and directories currently installed.) Removing fink-buildlock-tightvnc-1.3.8-4 ... Failed: phase compiling: tightvnc-1.3.8-4 failed ---end--- So, I found a copy of libXau.a, and put it in various places that the Xvnc compile script might look for it, both under the /sv tree and /usr tree. I made and included the Xau directory. I included the X11 lib locations as well. I've found the references to the Xauth library in the /sw/lib/X11/config/X11.tmpl file, and tried editing them to use existing Xauth libraries. That didn't work - or I didn't do it right. Any suggestions? By the way I've gotten Vine VNC working. Seems a bit better than just using fast user switching alone - can at least login directly to that user via the port switch :1, :2, :3 etc. Still it would be nice to start my own X-window server and access that. James |
From: Alexander H. <ale...@gm...> - 2012-08-09 17:34:38
|
On 8/9/12 10:30 AM, Patterson, James wrote: >>> Thanks! How do I apply a patch to a fink package? Either this is way obvious, or I missed it in the instructions... > >> If you're using Fink to build the package, it should have been applied for you. > > Of course! > > Ok then, here's the error message: > > ---snip--- > gcc -c -O2 -ansi -Dasm=__asm -I. -I../../../.././/exports/include/X11 -I../../../.././/include/fonts -I../../../.././/exports/include/X11 -I../../cfb -I../../mfb -I../../mi -I../../include -I../../os -I../../../.././/../include -I/sw/include -I../../../.././ -I../../../.././/exports/include -DCSRG_BASED -DSHAPE -DGCCUSESGAS -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO loginauth.c > rm -f libvnc.a > ar clq libvnc.a init.o sockets.o kbdptr.o cmap.o draw.o cutpaste.o dispcur.o sprite.o rfbserver.o translate.o httpd.o auth.o rre.o corre.o stats.o hextile.o zlib.o tight.o cursor.o loginauth.o > ranlib libvnc.a > make[2]: *** No rule to make target `../.././/lib/Xau/libXau.a', needed by `Xvnc'. Stop. > make[1]: *** [all] Error 2 > make: *** [all] Error 2 > ### execution of /tmp/fink.i8I9v failed, exit code 2 > ### execution of /tmp/fink.C1Gxz failed, exit code 2 > Removing runtime build-lock... > Removing build-lock package... > /sw/bin/dpkg-lockwait -r fink-buildlock-tightvnc-1.3.8-4 > (Reading database ... 26244 files and directories currently installed.) > Removing fink-buildlock-tightvnc-1.3.8-4 ... > Failed: phase compiling: tightvnc-1.3.8-4 failed > ---end--- > > So, I found a copy of libXau.a, and put it in various places that the Xvnc compile script might look for it, both under the /sv tree and /usr tree. I made and included the Xau directory. I included the X11 lib locations as well. > > I've found the references to the Xauth library in the /sw/lib/X11/config/X11.tmpl file, and tried editing them to use existing Xauth libraries. That didn't work - or I didn't do it right. > > Any suggestions? > By the way I've gotten Vine VNC working. Seems a bit better than just using fast user switching alone - can at least login directly to that user via the port switch :1, :2, :3 etc. > > Still it would be nice to start my own X-window server and access that. > > James > > > Umm...I believe it's trying to _build_ its own copy of libXau.a and failing, rather than being unable to find one from the system. How many build jobs are you using? That error looks like what you get when a build isn't safe for multiple threads--static library builds are one place where I've often seen this behavior. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ |
From: Patterson, J. <JP...@ls...> - 2012-08-09 17:41:18
|
> Umm...I believe it's trying to _build_ its own copy of > libXau.a and failing, rather than being unable to find one > from the system. That's what I thought too, but the queries I looked at online with regards to this was that it couldn't find it and that it was a misleading error msg. > How many build jobs are you using? That error looks like > what you get when a build isn't safe for multiple > threads--static library builds are one place where I've > often seen this behavior. I am just typing in the command "fink install tightvnc". Not trying manual compilation anymore. It is not staying inside the /sw tree though. I know that for sure. The /usr/lib/X11 tree is in use...that's where the X11.tmpl file is pointing it. James -----Original Message----- From: Alexander Hansen [mailto:ale...@gm...] Sent: Thursday, August 09, 2012 12:34 PM To: Patterson, James Cc: fin...@li... Subject: Re: [Fink-beginners] Problem compiling TightVNC On 8/9/12 10:30 AM, Patterson, James wrote: >>> Thanks! How do I apply a patch to a fink package? Either this is way obvious, or I missed it in the instructions... > >> If you're using Fink to build the package, it should have been applied for you. > > Of course! > > Ok then, here's the error message: > > ---snip--- > gcc -c -O2 -ansi -Dasm=__asm -I. -I../../../.././/exports/include/X11 -I../../../.././/include/fonts -I../../../.././/exports/include/X11 -I../../cfb -I../../mfb -I../../mi -I../../include -I../../os -I../../../.././/../include -I/sw/include -I../../../.././ -I../../../.././/exports/include -DCSRG_BASED -DSHAPE -DGCCUSESGAS -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO loginauth.c > rm -f libvnc.a > ar clq libvnc.a init.o sockets.o kbdptr.o cmap.o draw.o cutpaste.o dispcur.o sprite.o rfbserver.o translate.o httpd.o auth.o rre.o corre.o stats.o hextile.o zlib.o tight.o cursor.o loginauth.o > ranlib libvnc.a > make[2]: *** No rule to make target `../.././/lib/Xau/libXau.a', needed by `Xvnc'. Stop. > make[1]: *** [all] Error 2 > make: *** [all] Error 2 > ### execution of /tmp/fink.i8I9v failed, exit code 2 > ### execution of /tmp/fink.C1Gxz failed, exit code 2 > Removing runtime build-lock... > Removing build-lock package... > /sw/bin/dpkg-lockwait -r fink-buildlock-tightvnc-1.3.8-4 > (Reading database ... 26244 files and directories currently installed.) > Removing fink-buildlock-tightvnc-1.3.8-4 ... > Failed: phase compiling: tightvnc-1.3.8-4 failed > ---end--- > > So, I found a copy of libXau.a, and put it in various places that the Xvnc compile script might look for it, both under the /sv tree and /usr tree. I made and included the Xau directory. I included the X11 lib locations as well. > > I've found the references to the Xauth library in the /sw/lib/X11/config/X11.tmpl file, and tried editing them to use existing Xauth libraries. That didn't work - or I didn't do it right. > > Any suggestions? > By the way I've gotten Vine VNC working. Seems a bit better than just using fast user switching alone - can at least login directly to that user via the port switch :1, :2, :3 etc. > > Still it would be nice to start my own X-window server and access that. > > James > > > Umm...I believe it's trying to _build_ its own copy of libXau.a and failing, rather than being unable to find one from the system. How many build jobs are you using? That error looks like what you get when a build isn't safe for multiple threads--static library builds are one place where I've often seen this behavior. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ |
From: Alexander H. <ale...@gm...> - 2012-08-09 17:45:43
|
On 8/9/12 10:40 AM, Patterson, James wrote: >> Umm...I believe it's trying to _build_ its own copy of >> libXau.a and failing, rather than being unable to find one >> from the system. > > That's what I thought too, but the queries I looked at online with regards to this was that it couldn't find it and that it was a misleading error msg. > >> How many build jobs are you using? That error looks like >> what you get when a build isn't safe for multiple >> threads--static library builds are one place where I've >> often seen this behavior. > > I am just typing in the command "fink install tightvnc". Not trying manual compilation anymore. That's set in /sw/etc/fink.conf , and can be changed using "fink configure". > > It is not staying inside the /sw tree though. > I know that for sure. The /usr/lib/X11 tree is in use...that's where the X11.tmpl file is pointing it. > > James > > _reading_ from /usr/X11 is OK. _Installingg_ there wouldn't be. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ |
From: Patterson, J. <JP...@ls...> - 2012-08-09 18:05:24
|
>> How many build jobs are you using? Was set to 10, changed to 1, no effect. Same error message. I am getting quite a few warnings too...here's three different samplings: ---snip--- gcc -c -O2 -ansi -Dasm=__asm -I. -I../../../.././/exports/include/X11 -I../../../.././/include/fonts -I../../../.././/exports/include/X11 -I../../cfb -I../../mfb -I../../mi -I../../include -I../../os -I../../../.././/../include -I/sw/include -I../../../.././ -I../../../.././/exports/include -DCSRG_BASED -DSHAPE -DGCCUSESGAS -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DXVNCRELEASE=\"TightVNC-1.3.8\" init.c In file included from init.c:71: ../../cfb/cfb.h:1411:9: warning: 'BitsPerPixel' macro redefined #define BitsPerPixel(d) (\ ^ ../../include/servermd.h:556:9: note: previous definition is here #define BitsPerPixel(d) (PixmapWidthPaddingInfo[d].bitsPerPixel) ^ init.c:341:16: warning: '&&' within '||' [-Wlogical-op-parentheses] if (q < 3 && *end != '.' || ~~~~~~^~~~~~~~~~~~~~ ~~ init.c:341:16: note: place parentheses around the '&&' expression to silence this warning if (q < 3 && *end != '.' || ^ ( ) init.c:342:17: warning: '&&' within '||' [-Wlogical-op-parentheses] q == 3 && *end != '\0') { ~~~~~~~^~~~~~~~~~~~~~~ init.c:342:17: note: place parentheses around the '&&' expression to silence this warning q == 3 && *end != '\0') { ^ ( ) init.c:958:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(stderr, buf); ^~~ 4 warnings generated. rm -f sockets.o ---snip--- sprite.c:1756:9: warning: expression result unused [-Wunused-value] if (GC_CHECK((WindowPtr) pDrawable)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sprite.c:197:7: note: expanded from macro 'GC_CHECK' ((int) (pScreenPriv->pCacheWin = (pWin))) , \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sprite.c:1780:9: warning: expression result unused [-Wunused-value] if (GC_CHECK((WindowPtr) pDrawable) && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sprite.c:197:7: note: expanded from macro 'GC_CHECK' ((int) (pScreenPriv->pCacheWin = (pWin))) , \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sprite.c:1803:9: warning: expression result unused [-Wunused-value] if (GC_CHECK((WindowPtr) pDrawable) && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sprite.c:197:7: note: expanded from macro 'GC_CHECK' ((int) (pScreenPriv->pCacheWin = (pWin))) , \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sprite.c:1822:9: warning: expression result unused [-Wunused-value] if (GC_CHECK((WindowPtr) pDrawable) && ---snip--- -DGCCUSESGAS -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO httpd.c httpd.c:147:37: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] (struct sockaddr *)&addr, &addrlen)) < 0) { ^~~~~~~~ /usr/include/sys/socket.h:610:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ httpd.c:281:53: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] getpeername(httpSock, (struct sockaddr *)&addr, &addrlen); ^~~~~~~~ /usr/include/sys/socket.h:614:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ httpd.c:344:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (dollar = strchr(ptr, '$')) { ~~~~~~~^~~~~~~~~~~~~~~~~~ httpd.c:344:20: note: place parentheses around the assignment to silence this warning while (dollar = strchr(ptr, '$')) { ^ ( ) httpd.c:344:20: note: use '==' to turn this assignment into an equality comparison while (dollar = strchr(ptr, '$')) { -----Original Message----- From: Alexander Hansen [mailto:ale...@gm...] Sent: Thursday, August 09, 2012 12:46 PM To: Patterson, James Cc: fin...@li... Subject: Re: [Fink-beginners] Problem compiling TightVNC On 8/9/12 10:40 AM, Patterson, James wrote: >> Umm...I believe it's trying to _build_ its own copy of libXau.a and >> failing, rather than being unable to find one from the system. > > That's what I thought too, but the queries I looked at online with regards to this was that it couldn't find it and that it was a misleading error msg. > >> How many build jobs are you using? That error looks like what you >> get when a build isn't safe for multiple threads--static library >> builds are one place where I've often seen this behavior. > > I am just typing in the command "fink install tightvnc". Not trying manual compilation anymore. That's set in /sw/etc/fink.conf , and can be changed using "fink configure". > > It is not staying inside the /sw tree though. > I know that for sure. The /usr/lib/X11 tree is in use...that's where the X11.tmpl file is pointing it. > > James > > _reading_ from /usr/X11 is OK. _Installingg_ there wouldn't be. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ |
From: Alexander H. <ale...@gm...> - 2012-08-09 18:07:43
|
On 8/9/12 10:45 AM, Alexander Hansen wrote: > On 8/9/12 10:40 AM, Patterson, James wrote: >>> Umm...I believe it's trying to _build_ its own copy of >>> libXau.a and failing, rather than being unable to find one >>> from the system. >> >> That's what I thought too, but the queries I looked at online with regards to this was that it couldn't find it and that it was a misleading error msg. >> >>> How many build jobs are you using? That error looks like >>> what you get when a build isn't safe for multiple >>> threads--static library builds are one place where I've >>> often seen this behavior. >> >> I am just typing in the command "fink install tightvnc". Not trying manual compilation anymore. > > That's set in /sw/etc/fink.conf , and can be changed using "fink configure". > >> >> It is not staying inside the /sw tree though. >> I know that for sure. The /usr/lib/X11 tree is in use...that's where the X11.tmpl file is pointing it. >> >> James >> >> > > _reading_ from /usr/X11 is OK. _Installingg_ there wouldn't be. > > Ah, I was just told that tightvnc is already set for 1 build job interally We've found that this error is actually due to an earlier error which doesn't stop the build: gcc -c -O2 -ansi -Dasm=__asm -I../.././ -I../.././/exports/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO AuUnlock.c AuUnlock.c:47:2: error: non-void function 'XauUnlockAuth' should return a value [-Wreturn-type] return; ^ 1 error generated. make[2]: *** [AuUnlock.o] Error 1 -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ |
From: Patterson, J. <JP...@ls...> - 2012-08-09 19:31:03
|
OK...what do I do with that? I guess I am saying it did stop the build in my case... If I try to edit AuUnlock.c it just gets changed back to the original. It may be helpful to interject here that I am fairly resourceful at compiling things that are not broken, but have never fixed things that wouldn't compile at this level of difficulty... -----Original Message----- From: Alexander Hansen [mailto:ale...@gm...] Sent: Thursday, August 09, 2012 1:08 PM To: Patterson, James Cc: fin...@li... Subject: Re: [Fink-beginners] Problem compiling TightVNC On 8/9/12 10:45 AM, Alexander Hansen wrote: > On 8/9/12 10:40 AM, Patterson, James wrote: >>> Umm...I believe it's trying to _build_ its own copy of libXau.a and >>> failing, rather than being unable to find one from the system. >> >> That's what I thought too, but the queries I looked at online with regards to this was that it couldn't find it and that it was a misleading error msg. >> >>> How many build jobs are you using? That error looks like what you >>> get when a build isn't safe for multiple threads--static library >>> builds are one place where I've often seen this behavior. >> >> I am just typing in the command "fink install tightvnc". Not trying manual compilation anymore. > > That's set in /sw/etc/fink.conf , and can be changed using "fink configure". > >> >> It is not staying inside the /sw tree though. >> I know that for sure. The /usr/lib/X11 tree is in use...that's where the X11.tmpl file is pointing it. >> >> James >> >> > > _reading_ from /usr/X11 is OK. _Installingg_ there wouldn't be. > > Ah, I was just told that tightvnc is already set for 1 build job interally We've found that this error is actually due to an earlier error which doesn't stop the build: gcc -c -O2 -ansi -Dasm=__asm -I../.././ -I../.././/exports/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO AuUnlock.c AuUnlock.c:47:2: error: non-void function 'XauUnlockAuth' should return a value [-Wreturn-type] return; ^ 1 error generated. make[2]: *** [AuUnlock.o] Error 1 -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ |
From: Alexander H. <ale...@gm...> - 2012-08-09 19:49:26
|
On 8/9/12 12:30 PM, Patterson, James wrote: > OK...what do I do with that? > > I guess I am saying it did stop the build in my case... Ultimately, yes. What I meant was that it didn't immediately cause the build to end. > > If I try to edit AuUnlock.c it just gets changed back to the original. > > It may be helpful to interject here that I am fairly resourceful at compiling things that are not broken, but have never fixed things that wouldn't compile at this level of difficulty... > fink doesn't support editing in the source tree--when you issue a new "fink" command, the original source gets used. To have changes persist, you'd need to append them to the tightvnc.patch file as diffs from the original source Older gcc compilers, like those from 10.6 and earlier, apparently just ignored this error. We're working on it at this end, too. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ |
From: Patterson, J. <JP...@ls...> - 2012-08-09 20:25:52
|
OK. I will have to await that patch as I am not knowledgeable enough to edit a patch file with that information. Thanks for the help! JP -----Original Message----- From: Alexander Hansen [mailto:ale...@gm...] Sent: Thursday, August 09, 2012 2:49 PM To: Patterson, James Cc: fin...@li... Subject: Re: [Fink-beginners] Problem compiling TightVNC On 8/9/12 12:30 PM, Patterson, James wrote: > OK...what do I do with that? > > I guess I am saying it did stop the build in my case... Ultimately, yes. What I meant was that it didn't immediately cause the build to end. > > If I try to edit AuUnlock.c it just gets changed back to the original. > > It may be helpful to interject here that I am fairly resourceful at compiling things that are not broken, but have never fixed things that wouldn't compile at this level of difficulty... > fink doesn't support editing in the source tree--when you issue a new "fink" command, the original source gets used. To have changes persist, you'd need to append them to the tightvnc.patch file as diffs from the original source Older gcc compilers, like those from 10.6 and earlier, apparently just ignored this error. We're working on it at this end, too. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ |
From: Alexander H. <ale...@gm...> - 2012-08-10 00:08:10
Attachments:
tightvnc.info
|
On 8/9/12 1:25 PM, Patterson, James wrote: > OK. I will have to await that patch as I am not knowledgeable enough to edit a patch file with that information. > Thanks for the help! > > JP > > -----Original Message----- > From: Alexander Hansen [mailto:ale...@gm...] > Sent: Thursday, August 09, 2012 2:49 PM > To: Patterson, James > Cc: fin...@li... > Subject: Re: [Fink-beginners] Problem compiling TightVNC > > On 8/9/12 12:30 PM, Patterson, James wrote: >> OK...what do I do with that? >> >> I guess I am saying it did stop the build in my case... > > Ultimately, yes. What I meant was that it didn't immediately cause the build to end. > >> >> If I try to edit AuUnlock.c it just gets changed back to the original. >> >> It may be helpful to interject here that I am fairly resourceful at compiling things that are not broken, but have never fixed things that wouldn't compile at this level of difficulty... >> > > fink doesn't support editing in the source tree--when you issue a new "fink" command, the original source gets used. To have changes persist, you'd need to append them to the tightvnc.patch file as diffs from the original source > > Older gcc compilers, like those from 10.6 and earlier, apparently just ignored this error. > > We're working on it at this end, too. > -- > Alexander Hansen, Ph.D. > Fink User Liaison > My package updates: http://finkakh.wordpress.com/ > I've attached a tightvnc.info which worked for me under some limited testing. Give it a try. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ |
From: Patterson, J. <JP...@ls...> - 2012-08-10 12:54:07
|
YES! You are awesome! It compiled. Haven't tested it yet tho. Will update on status later - have to get to work. --- James C. Patterson II, MD, PhD Professor of Psychiatry LSU Health - Shreveport --- -----Original Message----- From: Alexander Hansen [mailto:ale...@gm...] Sent: Thursday, August 09, 2012 7:08 PM To: Patterson, James Cc: fin...@li... Subject: Re: [Fink-beginners] Problem compiling TightVNC On 8/9/12 1:25 PM, Patterson, James wrote: > OK. I will have to await that patch as I am not knowledgeable enough to edit a patch file with that information. > Thanks for the help! > > JP > > -----Original Message----- > From: Alexander Hansen [mailto:ale...@gm...] > Sent: Thursday, August 09, 2012 2:49 PM > To: Patterson, James > Cc: fin...@li... > Subject: Re: [Fink-beginners] Problem compiling TightVNC > > On 8/9/12 12:30 PM, Patterson, James wrote: >> OK...what do I do with that? >> >> I guess I am saying it did stop the build in my case... > > Ultimately, yes. What I meant was that it didn't immediately cause the build to end. > >> >> If I try to edit AuUnlock.c it just gets changed back to the original. >> >> It may be helpful to interject here that I am fairly resourceful at compiling things that are not broken, but have never fixed things that wouldn't compile at this level of difficulty... >> > > fink doesn't support editing in the source tree--when you issue a new > "fink" command, the original source gets used. To have changes > persist, you'd need to append them to the tightvnc.patch file as diffs > from the original source > > Older gcc compilers, like those from 10.6 and earlier, apparently just ignored this error. > > We're working on it at this end, too. > -- > Alexander Hansen, Ph.D. > Fink User Liaison > My package updates: http://finkakh.wordpress.com/ > I've attached a tightvnc.info which worked for me under some limited testing. Give it a try. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ |