Wrong TStatfs record on Mac OS loaded - freepascal

I have installed fpc 3.2.2 and Lazarus IDE v 2.2.2 on MAC macOS Catalina 10.15.7
I am trying to use record
{$if defined(cpuarm) or defined(cpuaarch64) or defined(iphonesim)}
{ structure used on iPhoneOS and available on Mac OS X 10.6 and later }
tstatfs = record
bsize : cuint32;
iosize : cint32;
blocks : cuint64;
bfree : cuint64;
bavail : cuint64;
files : cuint64;
ffree : cuint64;
fsid : fsid_t;
owner : uid_t;
ftype : cuint32;
fflags : cuint32;
fssubtype : cuint32;
fstypename : array[0..(MFSNAMELEN)-1] of char;
mountpoint : array[0..(PATH_MAX)-1] of char;
mntfromname : array[0..(PATH_MAX)-1] of char;
reserved: array[0..7] of cuint32;
end;
{$else}
tstatfs = record
otype : cint16;
oflags : cint16;
bsize : clong;
iosize : clong;
blocks : clong;
bfree : clong;
bavail : clong;
files : clong;
ffree : clong;
fsid : fsid_t;
fowner : uid_t;
reserved1 : cint16;
ftype : cint16;
fflags : clong;
reserved2 : array[0..1] of clong;
fstypename : array[0..(MFSNAMELEN)-1] of char;
mountpoint : array[0..(MNAMELEN)-1] of char;
mntfromname : array[0..(MNAMELEN)-1] of char;
f_reserved3: char;
reserved4: array[0..3] of clong;
end;
{$endif}
pstatfs = ^tstatfs;
but the record is loaded wrong, from the {$else} part.
Any idea how to solve the problem?
Thanks in advance
Bojan

Related

Tungsten Replicator 4.0 Installation

I am trying to install Tungsten Replicator 4.0 version for Mysql 5.7. I have used binary installation(tar.gz file installation) for Mysql 5.7 and exported path in bash_profile.
./tools/tmp install command got executed successfully but services both master and slave are offline. We are getting below error for service status command.
[tungsten#beta-388 tungsten-replicator-4.0.0-18]$ /opt/continuent//tungsten/tungsten-replicator/bin/trepctl services
Processing services command...
NAME VALUE
---- -----
appliedLastSeqno: -1
appliedLatency : -1.0
role : master
serviceName : beta182_183
serviceType : unknown
started : true
state : OFFLINE:ERROR
NAME VALUE
---- -----
**appliedLastSeqno**:**** **Unknown**
**appliedLatency **:**** **Unknown**
**role** **:** **Unknown**
serviceName : beta183_182
serviceType : Unknown
started : false
state : Unknown
Finished services command...
[tungsten#beta-388 tungsten-replicator-4.0.0-18]$ /opt/continuent//tungsten/tungsten-replicator/bin/trepctl -service beta182_183 status
Processing status command...
NAME VALUE
---- -----
appliedLastEventId : NONE
appliedLastSeqno : -1
appliedLatency : -1.0
autoRecoveryEnabled : true
autoRecoveryTotal : 0
channels : -1
clusterName : beta182_183
currentEventId : NONE
currentTimeMillis : 1579684465335
dataServerHost : beta-388.panterranetworks.net
extensions :
host : beta-388.panterranetworks.net
latestEpochNumber : -1
masterConnectUri : thls://localhost:/
masterListenUri : thls://beta-388.panterranetworks.net:12120/
maximumStoredSeqNo : -1
minimumStoredSeqNo : -1
offlineRequests : NONE
pendingError : Replicator unable to go online due to error
pendingErrorCode : NONE
pendingErrorEventId : NONE
pendingErrorSeqno : -1
pendingExceptionMessage: **Unable to prepare plugin: class name=com.continuent.tungsten.replicator.thl.THL message=[Error while attempting to acquire file lock: /opt/continuent/thl/beta182_183/disklog.lck]**
pipelineSource : UNKNOWN
relativeLatency : -1.0
resourcePrecedence : 99
rmiPort : 10110
role : master
seqnoType : java.lang.Long
serviceName : beta182_183
serviceType : unknown
simpleServiceName : beta182_183
siteName : default
sourceId : beta-388.panterranetworks.net
state : OFFLINE:ERROR
timeInStateSeconds : 15.744
timezone : GMT
transitioningTo :
uptimeSeconds : 15.931
useSSLConnection : true
version : Tungsten Replicator 4.0.0 build 18
Finished status command...
Can anyone please share how to resolve the error? I have tried multiple times with giving all permissions to the file and also uninstalled and reinstalled the tungsten.
Mysql version 5.7 is not support tungsten version 4.0,
https://docs.continuent.com/tungsten-replicator-4.0/introduction.html
Shared your config replicator!

The CAS management webapp not start

Tomcat does not want to start case-management 6.0.1.
I do not understand I put the json file.
I am not in https.
What do I need to check ?
In cas-management.properties
cas.server.name=http://192.168.0.112:8443
cas.server.prefix=${cas.server.name}/cas
mgmt.serverName=http://192.168.0.112:8443
mgmt.serverName=http://192.168.0.112
server.context-path=/cas-management
server.port=8443
mgmt.adminRoles[0]=ROLE_ADMIN
logging.config=file:/etc/cas/config/log4j2-management.xml
cas.serviceRegistry.json.location=file:/etc/cas/services
cas.authn.attributeRepository.stub.attributes.cn=cn
cas.authn.attributeRepository.stub.attributes.displayName=displayName
cas.authn.attributeRepository.stub.attributes.givenName=givenName
cas.authn.attributeRepository.stub.attributes.mail=mail
cas.authn.attributeRepository.stub.attributes.sn=sn
cas.authn.attributeRepository.stub.attributes.uid=uid
In the file /etc/cas/services/http_cas_management-1560930209.json
GNU nano 2.7.4
Fichier : /etc/cas/services/http_cas_management-1560930209.json
{
"#class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : "^http://192.168.0.112/cas-management/.*",
"name" : "CAS Services Management",
"id" : 1560930209,
"description" : "CAS services management webapp",
"evaluationOrder" : 5500
"allowedAttributes":["cn","mail"]
}
Thank
Best regard

Issue at compiling Caffe2

I try to compile caffe2 on my computer ( Ubuntu 17.1, CUDA 9.2), but I still get this error during linking:
[ 72%] Built target caffe2
[ 72%] Building NVCC (Device) object caffe2/CMakeFiles/caffe2_gpu.dir/sgd/caffe2_gpu_generated_yellowfin_op_gpu.cu.o
/home/john/pytorch/caffe2/sgd/yellowfin_op.h: In constructor ‘caffe2::YellowFinOp<T, Context>::YellowFinOp(const caffe2::OperatorDef&, caffe2::Workspace*)’:
/home/john/pytorch/caffe2/sgd/yellowfin_op.h:20:171: error: ‘GetSingleArgument<int>’ is not a member of ‘caffe2::YellowFinOp<T, Context>’
YellowFinOp(const OperatorDef& operator_def, Workspace* ws)
^
/home/john/pytorch/caffe2/sgd/yellowfin_op.h:20:259: error: ‘GetSingleArgument<int>’ is not a member of ‘caffe2::YellowFinOp<T, Context>’
YellowFinOp(const OperatorDef& operator_def, Workspace* ws)
^
/home/john/pytorch/caffe2/sgd/yellowfin_op.h:20:347: error: ‘GetSingleArgument<bool>’ is not a member of ‘caffe2::YellowFinOp<T, Context>’
YellowFinOp(const OperatorDef& operator_def, Workspace* ws)
^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-aligned-allocation-unavailable’
cc1plus: warning: unrecognized command line option ‘-Wno-inconsistent-missing-override’
cc1plus: warning: unrecognized command line option ‘-Wno-unused-private-field’
cc1plus: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
cc1plus: warning: unrecognized command line option ‘-Wno-typedef-redefinition’
cc1plus: warning: unrecognized command line option ‘-Wno-invalid-partial-specialization’
CMake Error at caffe2_gpu_generated_yellowfin_op_gpu.cu.o.Release.cmake:279 (message):
Error generating file
/home/john/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/sgd/./caffe2_gpu_generated_yellowfin_op_gpu.cu.o
caffe2/CMakeFiles/caffe2_gpu.dir/build.make:889: recipe for target 'caffe2/CMakeFiles/caffe2_gpu.dir/sgd/caffe2_gpu_generated_yellowfin_op_gpu.cu.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2_gpu.dir/sgd/caffe2_gpu_generated_yellowfin_op_gpu.cu.o] Error 1
CMakeFiles/Makefile2:1441: recipe for target 'caffe2/CMakeFiles/caffe2_gpu.dir/all' failed
make[1]: *** [caffe2/CMakeFiles/caffe2_gpu.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Here is my system summary:
-- CMake version : 3.9.1
-- CMake command : /usr/bin/cmake
-- Git version : v0.1.11-9044-g9c426797a
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- C++ compiler version : 7.2.0
-- BLAS : Eigen
-- CXX flags : -fvisibility-inlines-hidden -DONNX_NAMESPACE=onnx_c2 -O2 -fPIC -Wno-narrowing -Wno-invalid-partial-specialization -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-typedef-redefinition -Wno-unknown-warning-option -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-private-field -Wno-unused-result -Wno-inconsistent-missing-override -Wno-aligned-allocation-unavailable -Wno-error=deprecated-declarations -faligned-new
-- Build type : Release
-- Compile definitions :
-- CMAKE_PREFIX_PATH :
-- CMAKE_INSTALL_PREFIX : /usr/local
--
-- BUILD_CAFFE2 : ON
-- BUILD_ATEN : OFF
-- BUILD_BINARY : ON
-- BUILD_CUSTOM_PROTOBUF : ON
-- Link local protobuf : ON
-- BUILD_DOCS : OFF
-- BUILD_PYTHON : ON
-- Python version : 2.7.14
-- Python includes : /usr/include/python2.7
-- BUILD_SHARED_LIBS : ON
-- BUILD_TEST : OFF
-- USE_ASAN : OFF
-- USE_ATEN : OFF
-- USE_CUDA : ON
-- CUDA static link : OFF
-- USE_CUDNN : ON
-- CUDA version : 9.2
-- cuDNN version : 7.1.4
-- CUDA root directory : /usr/local/cuda
-- CUDA library : /usr/lib/x86_64-linux-gnu/libcuda.so
-- cudart library : /usr/local/cuda/lib64/libcudart_static.a;-pthread;dl;/usr/lib/x86_64-linux-gnu/librt.so
-- cublas library : /usr/local/cuda/lib64/libcublas.so;/usr/local/cuda/lib64/libcublas_device.a
-- cufft library : /usr/local/cuda/lib64/libcufft.so
-- curand library : /usr/local/cuda/lib64/libcurand.so
-- cuDNN library : /usr/lib/x86_64-linux-gnu/libcudnn.so
-- nvrtc : /usr/lib/x86_64-linux-gnu/libnvrtc.so
-- CUDA include path : /usr/local/cuda/include
-- NVCC executable : /usr/local/cuda/bin/nvcc
-- CUDA host compiler : /usr/bin/cc
-- USE_TENSORRT : OFF
-- USE_ROCM : OFF
-- USE_EIGEN_FOR_BLAS : ON
-- USE_FFMPEG : OFF
-- USE_GFLAGS : ON
-- USE_GLOG : ON
-- USE_GLOO : ON
-- USE_GLOO_IBVERBS : OFF
-- USE_LEVELDB : ON
-- LevelDB version : 1.20
-- Snappy version : ..
-- USE_LITE_PROTO : OFF
-- USE_LMDB : ON
-- LMDB version : 0.9.21
-- USE_METAL : OFF
-- USE_MKL :
-- USE_MOBILE_OPENGL : OFF
-- USE_MPI : ON
-- USE_NCCL : ON
-- USE_SYSTEM_NCCL : OFF
-- USE_NERVANA_GPU : OFF
-- USE_NNPACK : ON
-- USE_OBSERVERS : ON
-- USE_OPENCL : OFF
-- USE_OPENCV : ON
-- OpenCV version : 3.1.0
-- USE_OPENMP : OFF
-- USE_PROF : OFF
-- USE_REDIS : OFF
-- USE_ROCKSDB : OFF
-- USE_ZMQ : OFF
-- Public Dependencies : Threads::Threads;gflags;glog::glog
-- Private Dependencies : nnpack;cpuinfo;/usr/lib/x86_64-linux-gnu/liblmdb.so;/usr/lib/x86_64-linux-gnu/libleveldb.so;/usr/lib/x86_64-linux-gnu/libsnappy.so;/usr/lib/x86_64-linux-gnu/libnuma.so;opencv_core;opencv_highgui;opencv_imgproc;opencv_imgcodecs;opencv_videoio;opencv_video;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so;gloo;gcc_s;gcc;dl
-- Configuring done
Anything I am doing wrong? I have no idea how to fix this.
Thanks for the help

Jmeter: Error in Test Plan: Conversion error

I'm new to jmeter (as in just started reading about it last week.) I've been given some tests written by someone that's left the company but I cannot get the tests to open in jmeter. According to the .jmx file,
it was written in jmeter 2.9 so I installed 2.9. I got the standard plugins, but it just isn't loading, please see the error message below and let me know if you have any ideas.
Thanks!
2015/03/02 13:35:23 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
---- Debugging information ----
message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
class : org.apache.jorphan.collections.ListedHashTree
required-type : org.apache.jorphan.collections.ListedHashTree
converter-type : org.apache.jmeter.save.converters.HashTreeConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree/hashTree[2]/hashTree[3]/com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
line number : 113
------------------------------- : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
---- Debugging information ----
message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
class : org.apache.jorphan.collections.ListedHashTree
required-type : org.apache.jorphan.collections.ListedHashTree
converter-type : org.apache.jmeter.save.converters.HashTreeConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree/hashTree[2]/hashTree[3]/com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
line number : 113
-------------------------------
message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
---- Debugging information ----
message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
class : org.apache.jorphan.collections.ListedHashTree
required-type : org.apache.jorphan.collections.ListedHashTree
converter-type : org.apache.jmeter.save.converters.HashTreeConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree/hashTree[2]/hashTree[3]/com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
line number : 113
-------------------------------
cause-exception : com.thoughtworks.xstream.converters.ConversionException
cause-message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor : com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
first-jmeter-class : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:65)
class : org.apache.jmeter.save.ScriptWrapper
required-type : org.apache.jorphan.collections.ListedHashTree
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan
/hashTree/hashTree/hashTree/hashTree[2]/hashTree[3]/com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor
line number : 113
version : 2.9 r1437961
Last Jmeter.plugins require Jmeter 2.11 to work.
I think you have to upgrade Jmeter OR to uninstall Jmeter.plugins.
I would try to upgrade Jmeter to 2.12, usually it makes no harms.

Error on *._FieldSerializer ,the GWT's generated class

I write my own type of exception (extends from java Exception).
And I got exception on GWT's generated class xxx_FieldSerializer .
the error message look like this:
Object reference not set to an instance of an object.
com.xxx.shared.csharpsystem.exception.MyException_FieldSerializer Method name : instantiate LINE_NUMER : 16
com.xxx.shared.csharpsystem.exception.MyException_FieldSerializer Method name : create LINE_NUMER : 25
com.google.gwt.user.client.rpc.impl.SerializerBase Method name : instantiate LINE_NUMER : 115
com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader Method name : deserialize LINE_NUMER : 111
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader Method name : readObject LINE_NUMER : 119
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter Method name : onResponseReceived LINE_NUMER : 216
com.google.gwt.http.client.Request Method name : fireOnResponseReceived LINE_NUMER : 287
com.google.gwt.http.client.RequestBuilder$1 Method name : onReadyStateChange LINE_NUMER : 395
sun.reflect.NativeMethodAccessorImpl Method name : invoke0 LINE_NUMER : -2
sun.reflect.NativeMethodAccessorImpl Method name : invoke LINE_NUMER : 57
sun.reflect.DelegatingMethodAccessorImpl Method name : invoke LINE_NUMER : 43
java.lang.reflect.Method Method name : invoke LINE_NUMER : 601
com.google.gwt.dev.shell.MethodAdaptor Method name : invoke LINE_NUMER : 103
com.google.gwt.dev.shell.MethodDispatch Method name : invoke LINE_NUMER : 71
com.google.gwt.dev.shell.OophmSessionHandler Method name : invoke LINE_NUMER : 172
com.google.gwt.dev.shell.BrowserChannelServer Method name : reactToMessagesWhileWaitingForReturn LINE_NUMER : 337
com.google.gwt.dev.shell.BrowserChannelServer Method name : invokeJavascript LINE_NUMER : 218
com.google.gwt.dev.shell.ModuleSpaceOOPHM Method name : doInvoke LINE_NUMER : 136
com.google.gwt.dev.shell.ModuleSpace Method name : invokeNative LINE_NUMER : 561
com.google.gwt.dev.shell.ModuleSpace Method name : invokeNativeObject LINE_NUMER : 269
com.google.gwt.dev.shell.JavaScriptHost Method name : invokeNativeObject LINE_NUMER : 91
com.google.gwt.core.client.impl.Impl Method name : apply LINE_NUMER : -1
com.google.gwt.core.client.impl.Impl Method name : entry0 LINE_NUMER : 213
sun.reflect.NativeMethodAccessorImpl Method name : invoke0 LINE_NUMER : -2
sun.reflect.NativeMethodAccessorImpl Method name : invoke LINE_NUMER : 57
sun.reflect.DelegatingMethodAccessorImpl Method name : invoke LINE_NUMER : 43
java.lang.reflect.Method Method name : invoke LINE_NUMER : 601
com.google.gwt.dev.shell.MethodAdaptor Method name : invoke LINE_NUMER : 103
com.google.gwt.dev.shell.MethodDispatch Method name : invoke LINE_NUMER : 71
com.google.gwt.dev.shell.OophmSessionHandler Method name : invoke LINE_NUMER : 172
com.google.gwt.dev.shell.BrowserChannelServer Method name : reactToMessages LINE_NUMER : 292
com.google.gwt.dev.shell.BrowserChannelServer Method name : processConnection LINE_NUMER : 546
com.google.gwt.dev.shell.BrowserChannelServer Method name : run LINE_NUMER : 363
java.lang.Thread Method name : run LINE_NUMER : 722
and the code of file MyException.java is :
public class MyException extends Exception implements java.io.Serializable
{
public MyException ()
{
super();
}
public MyException (String Exception, String StackTrace)
{
super(Exception);
if (!StackTrace.equals(""))
{
StackTraceElement[] xStackTraceElementColl = new StackTraceElement[1];
String strDeclaringClass = "";
String strMethodName = StackTrace;
String strFileName = "";
int iLineNo = 0;
xStackTraceElementColl[0] = new StackTraceElement(strDeclaringClass, strMethodName, strFileName, iLineNo);
this.setStackTrace(xStackTraceElementColl);
}
}
}
I don't know why this happen.
thank you for your help.