[mosh-devel] Mosh 1.2.3 make error

George R. Kasica gkasica at netwrx1.com
Mon Jan 14 23:23:15 EST 2013


Ok done. Results still failing. See below:

Will pick this up in the am. Thanks for the help so far. I've gotten a plus out of this - a great FTP client for the iPad/iPhone since my notebook is Doa waiting for a dell visit tomorrow for a new motherboard. So that's some good news lol. 

Making all in util
make[3]: Entering directory `/mnt/scsi-1/Linux/mosh/mosh-1.2.3/src/util'
  CXX    locale_utils.o
  CXX    swrite.o
  CXX    select.o
In file included from /usr/local/include/asm/sigcontext.h:5:0,
                 from /usr/local/include/bits/sigcontext.h:28,
                 from /usr/local/include/signal.h:307,
                 from select.h:38,
                 from select.cc:33:
/usr/local/include/linux/types.h:13:2:
  CXX    timestamp.o
timestamp.cc: In function 'void freeze_timestamp()':
timestamp.cc:65:23: error: 'CLOCK_MONOTONIC' was not declared in this scope
make[3]: *** [timestamp.o] Error 1
make[3]: Leaving directory `/mnt/scsi-1/Linux/mosh/mosh-1.2.3/src/util'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/scsi-1/Linux/mosh/mosh-1.2.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/scsi-1/Linux/mosh/mosh-1.2.3'
make: *** [all] Error 2


---
George R. Kasica
Sent from my iPadHD

On Jan 14, 2013, at 22:00, "Keith Winstein" <keithw at mit.edu> wrote:

> Just edit the file src/util/timestamp.cc and insert a line saying:
> 
> #include <stdio.h>
> 
> at the top of the file.
> 
> On Mon, Jan 14, 2013 at 10:56 PM, George R. Kasica <gkasica at netwrx1.com> wrote:
>> No problem at all. Glad to be getting help and maybe help someone else out.
>> 
>> I would be glad to upgrade glibc but i'll be honest i don't know the best way to do it without breaking all manner of stuff here. If anyone would like to help out I'd be very grateful. I'd even allow you on the box to do it.
>> 
>> Glibc is at
>> 
>> # ldd --version
>> ldd (GNU libc) 2.2.4
>> 
>> I Tried the patch as follows. Failing at line 7
>> 
>> # patch -p1 < timestamp-patch
>> patching file `src/util/timestamp.cc'
>> patch: **** malformed patch at line 7: #elif HAVE_GETTIMEOFDAY
>> 
>> 
>> ---
>> George R. Kasica
>> Sent from my iPadHD
>> 
>> On Jan 14, 2013, at 21:28, "Keith Winstein" <keithw at mit.edu> wrote:
>> 
>>> All right, sorry about that, this is not a well-tested configuration for us.
>>> 
>>> The best solution would be to upgrade your glibc to match the other
>>> upgrades you have done. If you are still running a GNU libc from the original
>>> Caldera system, Mosh might not be the only thing affected.
>>> 
>>> But otherwise, please apply the following patch and try again:
>>> 
>>> diff --git a/src/util/timestamp.cc b/src/util/timestamp.cc
>>> index 6486ec1..275cdd3 100644
>>> --- a/src/util/timestamp.cc
>>> +++ b/src/util/timestamp.cc
>>> @@ -42,6 +42,7 @@
>>> #include <mach/mach_time.h>
>>> #elif HAVE_GETTIMEOFDAY
>>> #include <sys/time.h>
>>> + #include <stdio.h>
>>> #endif
>>> 
>>> static uint64_t millis_cache = -1;
>>> 
>>> On Mon, Jan 14, 2013 at 10:16 PM, George R. Kasica <gkasica at netwrx1.com> wrote:
>>>> No better. Originally it was an old caldera box but over time it's become pretty generic
>>>> 
>>>> Kernel is 3.3.7
>>>> gcc is 4.6.2
>>>> 
>>>> 
>>>> Here's the make failure now after the configure change:
>>>> 
>>>> Making all in util
>>>> make[3]: Entering directory `/mnt/scsi-1/Linux/mosh/mosh-1.2.3/src/util'
>>>> CXX    locale_utils.o
>>>> CXX    swrite.o
>>>> CXX    select.o
>>>> In file included from /usr/local/include/asm/sigcontext.h:5:0,
>>>>                from /usr/local/include/bits/sigcontext.h:28,
>>>>                from /usr/local/include/signal.h:307,
>>>>                from select.h:38,
>>>>                from select.cc:33:
>>>> CXX    timestamp.o
>>>> timestamp.cc: In function 'void freeze_timestamp()':
>>>> timestamp.cc:86:26: error: 'NULL' was not declared in this scope
>>>> timestamp.cc:87:28: error: 'perror' was not declared in this scope
>>>> make[3]: *** [timestamp.o] Error 1
>>>> make[3]: Leaving directory `/mnt/scsi-1/Linux/mosh/mosh-1.2.3/src/util'
>>>> make[2]: *** [all-recursive] Error 1
>>>> make[2]: Leaving directory `/mnt/scsi-1/Linux/mosh/mosh-1.2.3/src'
>>>> make[1]: *** [all-recursive] Error 1
>>>> make[1]: Leaving directory `/mnt/scsi-1/Linux/mosh/mosh-1.2.3'
>>>> make: *** [all] Error 2
>>>> 
>>>> 
>>>> ---
>>>> George R. Kasica
>>>> Sent from my iPadHD
>>>> 
>>>> On Jan 14, 2013, at 21:07, "Keith Winstein" <keithw at mit.edu> wrote:
>>>> 
>>>>> Interesting -- what kind of Linux (what version) is this? You appear
>>>>> to have a clock_gettime() but no CLOCK_MONOTONIC device.
>>>>> 
>>>>> Please try configuring with:
>>>>> 
>>>>> $ ./configure ac_cv_search_clock_gettime=no
>>>>> 
>>>>> That will tell it to use a fallback clock (gettimeofday()) instead.
>>>>> 
>>>>> Please let us know if that doesn't work. Good luck,
>>>>> Keith
>>>>> 
>>>>> On Mon, Jan 14, 2013 at 9:58 PM, George R. Kasica <gkasica at netwrx1.com> wrote:
>>>>>> Running into the below error trying to make mosh 1.2.3 from Linux source
>>>>>> file all the dependencies seem to have built correctly and I put the pearl
>>>>>> module in with the perl -e CPAN method. Should I also build that from it's
>>>>>> source instead?
>>>>>> 
>>>>>> Any ideas how to fix this? The 1.2.3 RPM works beautifully on a FC17 box
>>>>>> here but this older system is not RPM based.
>>>>>> 
>>>>>> CXX timestamp.o timestamp.cc: In function 'void freeze_timestamp()':
>>>>>> timestamp.cc:63:23: error: 'CLOCK_MONOTONIC' was not declared in this scope
>>>>>> make[3]: *** [timestamp.o] Error 1 make[3]: Leaving directory
>>>>>> `/mnt/scsi-1/Linux/mosh/mosh-1.2.3/src/util' make[2]: *** [all-recursive]
>>>>>> Error 1 make[2]: Leaving directory `/mnt/scsi-1/Linux/mosh/mosh-1.2.3/src'
>>>>>> make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
>>>>>> `/mnt/scsi-1/Linux/mosh/mosh-1.2.3' make: *** [all] Error 2
>>>>>> 
>>>>>> ---
>>>>>> George R. Kasica
>>>>>> Sent from my iPadHD
>>>>>> 
>>>>>> _______________________________________________
>>>>>> mosh-devel mailing list
>>>>>> mosh-devel at mit.edu
>>>>>> http://mailman.mit.edu/mailman/listinfo/mosh-devel
>>>>>> 




More information about the mosh-devel mailing list