Custom Query (541 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (13 - 15 of 541)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Ticket Resolution Summary Owner Reporter
#695 fixed wave_serverV compiled as 64 bit fails to work on Solaris 10 alexander paulf
Description

okay, after r7806 changes and getting wave_serverV to finally compile on solaris by commenting out the #define _XOPEN_SOURCE 500 line, the program now fails at startup with Bus error.....when running the memphis test.

See below, this is a 64 bit compilation:

{paulf@niobite:params} !wave
wave_serverV wave_serverV.d
20190215_UTC_20:15:08 LoadTableEnvVariable(): nfiles 2
20190215_UTC_20:15:08 Unsuccessful read of 16 bytes, at offset 0 in tnk/structp1000-2.str
20190215_UTC_20:15:08 TANK File read failed, File was probably empty
20190215_UTC_20:15:08 Unsuccessful read of 16 bytes, at offset 0 in tnk/structp1000-1.str
20190215_UTC_20:15:08 TANK File read failed, File was probably empty
Bus Error (core dumped)
{paulf@niobite:params} file core
core:           ELF 64-bit MSB core file SPARCV9 Version 1, from 'wave_serverV'
{paulf@niobite:params} dbx `which wave_serverV` core
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.6' in your .dbxrc
Reading wave_serverV
core file header read successfully
Reading ld.so.1
Reading libm.so.2
Reading libc.so.1
Reading libdl.so.1
Reading libnsl.so.1
Reading libsocket.so.1
Reading librt.so.1
Reading libpthread.so.1
Reading libthread.so.1
Reading libaio.so.1
Reading libmd.so.1
Reading libc_psr.so.1
t@1 (l@1) program terminated by signal BUS (invalid address alignment)
0x0000000100019738: WriteLIndex+0x01c8: stx      %l0, [%l3]
(dbx) backtrace                                                              
backtrace: not found
(dbx) where   
current thread: t@1
=>[1] WriteLIndex(0x100260300, 0x0, 0x5c671dcc, 0x14, 0x0, 0x10025c300), at 0x100019738 
  [2] main(0x2, 0xffffffff7ffff078, 0x3e8, 0xffffffff7ec4c9c0, 0xffffffff7e200140, 0xffffffff7dd00200), at 0x10000a224 
(dbx) 
#669 fixed k2ew_tcp 2.48 has failures on 64bit baker paulf
Description

This is a placeholder ticket for a fix related to the k2 header problem that caused issues with the 64 bit k2ew_tcp.

This will also enable the 1024 week GPS rollover problem that started on 6/30/2018.

#107 fixed slink2ew won't work under windows chad paulf
Description

So, I just did a full svn checkout of earthworm, and tried to compile on Windows, but no luck. It looks like there's now a function in slink2ew using the timespec structure, which is available on UNIX, but not Windows.

C:\earthworm\earthworm\src\data_exchange\slink2ew>nmake makefile.nt

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved.

cd libslink nmake -f Makefile.win all

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved.

link.exe /lib /nologo /out:libslink.lib gswap.obj unpack.obj

msrecord.obj genutils.obj strutils.obj logging.obj network.obj statefile.obj config.obj slplatform.obj slutils.obj globmatch.obj

cd .. cl /D_WINNT /D_INTEL /D_CRT_SECURE_NO_DEPRECATE /D_USE_32BIT_TIME_T /nol

ogo -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_X86_=1 -DWIN32 -D_WIN32

-W3 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -Ox -DNDE

BUG -D_MT -MT /Ilibslink -D_NTSDK slink2ew.c slink2ew.c slink2ew.c(104) : warning C4013: 'gettimeofday' undefined; assuming extern retur ning int slink2ew.c(156) : warning C4244: '-=' : conversion from 'double' to 'long', poss ible loss of data slink2ew.c(160) : error C2079: 'naptime' uses undefined struct 'timespec' slink2ew.c(161) : error C2224: left of '.tv_sec' must have struct/union type slink2ew.c(162) : error C2224: left of '.tv_nsec' must have struct/union type slink2ew.c(163) : warning C4013: 'nanosleep' undefined; assuming extern returnin g int NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC \BIN\cl.EXE"' : return code '0x2' Stop.

I tried defining it in a .h file after a google search

struct timespec {

/* long long in windows is the same as long in unix for 64bit */ long long tv_sec; long long tv_nsec;

};

but then can't link in nanosleep, which seems to be another UNIX standard; google tells me that one can find it in Cygwin... but we don't want to require cygwin.

C:\earthworm\earthworm\src\data_exchange\slink2ew>nmake makefile.nt

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved.

cd libslink nmake -f Makefile.win all

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved.

link.exe /lib /nologo /out:libslink.lib gswap.obj unpack.obj

msrecord.obj genutils.obj strutils.obj logging.obj network.obj statefile.obj config.obj slplatform.obj slutils.obj globmatch.obj

cd .. cl /D_WINNT /D_INTEL /D_CRT_SECURE_NO_DEPRECATE /D_USE_32BIT_TIME_T /nol

ogo -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_X86_=1 -DWIN32 -D_WIN32

-W3 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -Ox -DNDE

BUG -D_MT -MT /Ilibslink -D_NTSDK slink2ew.c slink2ew.c slink2ew.c(25) : warning C4067: unexpected tokens following preprocessor directi ve - expected a newline slink2ew.c(156) : warning C4244: '-=' : conversion from 'double' to 'long', poss ible loss of data slink2ew.c(163) : warning C4013: 'nanosleep' undefined; assuming extern returnin g int slink2ew.c(683) : warning C4996: 'strdup' was declared deprecated

C:\Program Files (x86)\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205

) : see declaration of 'strdup'

Message: 'The POSIX name for this item is deprecated. Instead, use the I

SO C++ conformant name: _strdup. See online help for details.' slink2ew.c(799) : warning C4996: 'strdup' was declared deprecated

C:\Program Files (x86)\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205

) : see declaration of 'strdup'

Message: 'The POSIX name for this item is deprecated. Instead, use the I

SO C++ conformant name: _strdup. See online help for details.' slink2ew.c(909) : warning C4996: 'strdup' was declared deprecated

C:\Program Files (x86)\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205

) : see declaration of 'strdup'

Message: 'The POSIX name for this item is deprecated. Instead, use the I

SO C++ conformant name: _strdup. See online help for details.'

link /INCREMENTAL:NO /NOLOGO -subsystem:console,5.0 /RELEASE kernel32.l

ib ws2_32.lib mswsock.lib advapi32.lib bufferoverflowu.lib slink2ew.obj c:\eart hworm\earthworm\lib\getutil.obj c:\earthworm\earthworm\lib\kom.obj c:\earthworm\ earthworm\lib\logit_mt.obj c:\earthworm\earthworm\lib\socket_ew.obj c:\earthwor m\earthworm\lib\transport.obj c:\earthworm\earthworm\lib\sleep_ew.obj c:\earthwo rm\earthworm\lib\socket_ew_common.obj c:\earthworm\earthworm\lib\time_ew.obj c: \earthworm\earthworm\lib\threads_ew.obj c:\earthworm\earthworm\lib\sema_ew.obj c :\earthworm\earthworm\lib\swap.obj c:\earthworm\earthworm\lib\mem_circ_queue.ob j libslink\libslink.lib -out:c:\earthworm\earthworm\bin\slink2ew.exe slink2ew.obj : error LNK2019: unresolved external symbol _nanosleep referenced i n function _main c:\earthworm\earthworm\bin\slink2ew.exe : fatal error LNK1120: 1 unresolved exte rnals NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC \BIN\link.EXE"' : return code '0x460' Stop.

So I guess the question is... If making it Windows compatible isn't easy, can you ifdef out the changes in slink2ew so that we can get this to compile on Windows, even if we can't get the new features?

Here's the code snippet in question from slink2ew.c:

if ( maxrate > 0 )

{

long nsec;

gettimeofday (&timeThisPkt, NULL);

/* Minimum nanosec for packet size and maxrate */ nsec = (long) (SLRECSIZE * 1.0e9 / maxrate);

/* Subtract interval since last packet */ nsec -= ( 1.0e9 * (timeThisPkt.tv_sec - timeLastPkt.tv_sec) +

1.0e3 * (timeThisPkt.tv_usec - timeLastPkt.tv_usec) );

if ( nsec > 0 && nsec < 1e9 )

{ /* Pad interval to limit rate */

struct timespec naptime; naptime.tv_sec = 0; naptime.tv_nsec = nsec; nanosleep (&naptime, NULL);

}

gettimeofday (&timeLastPkt, NULL);

}

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Note: See TracQuery for help on using queries.