On compiling the source code of five-server I run into following errors
vickey#home:~/code/five-server$ ant dist
Buildfile: build.xml
guess-target:
-maybe-dist-win32:
-maybe-dist-macosx:
-maybe-dist-linux:
dist-clean:
init:
[mkdir] Created dir: /home/vickey/code/five-server/build/classes
[mkdir] Created dir: /home/vickey/code/five-server/build/test-classes
[mkdir] Created dir: /home/vickey/code/five-server/gen/src/java
[mkdir] Created dir: /home/vickey/code/five-server/gen/resources
build-props:
[mkdir] Created dir: /home/vickey/code/five-server/gen/resources/org/devtcg/five
-checkprotoc:
protoc:
[echo] Compiling protobufs into Java classes...
compile:
[javac] Compiling 46 source files to /home/vickey/code/five-server/build/classes
[javac] /home/vickey/code/five-server/src/main/java/org/devtcg/five/server/HttpServer.java:50: warning: sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release
[javac] import sun.misc.BASE64Decoder;
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2538: cannot find symbol
[javac] symbol : class ProtocolMessageEnum
[javac] location: package com.google.protobuf
[javac] implements com.google.protobuf.ProtocolMessageEnum {
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2735: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2746: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2757: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2768: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2780: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2560: package com.google.protobuf.Internal does not exist
[javac] public static com.google.protobuf.Internal.EnumLiteMap<Type>
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2564: package com.google.protobuf.Internal does not exist
[javac] private static com.google.protobuf.Internal.EnumLiteMap<Type>
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:134: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:145: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:156: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:167: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:179: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:595: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:606: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:617: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:628: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:640: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1163: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1174: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1185: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1196: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1208: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1757: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1768: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1779: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1790: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1802: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2211: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2222: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2233: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2244: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2256: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2896: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:292: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:759: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1339: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1922: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2369: cannot find symbol
[javac] symbol : class ExtensionRegistryLite
[javac] location: package com.google.protobuf
[javac] com.google.protobuf.ExtensionRegistryLite extensionRegistry)
[javac] ^
[javac] /home/vickey/code/five-server/src/main/java/org/devtcg/five/server/HttpServer.java:333: warning: sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release
[javac] userpassString = new String(new BASE64Decoder()
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:163: cannot find symbol
[javac] symbol : method mergeDelimitedFrom(java.io.InputStream)
[javac] location: class org.devtcg.five.meta.data.Protos.Artist.Builder
[javac] return newBuilder().mergeDelimitedFrom(input).buildParsed();
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:236: cannot find symbol
[javac] symbol : method newUninitializedMessageException(org.devtcg.five.meta.data.Protos.Artist)
[javac] location: class org.devtcg.five.meta.data.Protos.Artist.Builder
[javac] throw newUninitializedMessageException(result);
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:244: cannot find symbol
[javac] symbol : method newUninitializedMessageException(org.devtcg.five.meta.data.Protos.Artist)
[javac] location: class org.devtcg.five.meta.data.Protos.Artist.Builder
[javac] throw newUninitializedMessageException(
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:624: cannot find symbol
[javac] symbol : method mergeDelimitedFrom(java.io.InputStream)
[javac] location: class org.devtcg.five.meta.data.Protos.Album.Builder
[javac] return newBuilder().mergeDelimitedFrom(input).buildParsed();
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:697: cannot find symbol
[javac] symbol : method newUninitializedMessageException(org.devtcg.five.meta.data.Protos.Album)
[javac] location: class org.devtcg.five.meta.data.Protos.Album.Builder
[javac] throw newUninitializedMessageException(result);
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:705: cannot find symbol
[javac] symbol : method newUninitializedMessageException(org.devtcg.five.meta.data.Protos.Album)
[javac] location: class org.devtcg.five.meta.data.Protos.Album.Builder
[javac] throw newUninitializedMessageException(
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1192: cannot find symbol
[javac] symbol : method mergeDelimitedFrom(java.io.InputStream)
[javac] location: class org.devtcg.five.meta.data.Protos.Song.Builder
[javac] return newBuilder().mergeDelimitedFrom(input).buildParsed();
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1265: cannot find symbol
[javac] symbol : method newUninitializedMessageException(org.devtcg.five.meta.data.Protos.Song)
[javac] location: class org.devtcg.five.meta.data.Protos.Song.Builder
[javac] throw newUninitializedMessageException(result);
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1273: cannot find symbol
[javac] symbol : method newUninitializedMessageException(org.devtcg.five.meta.data.Protos.Song)
[javac] location: class org.devtcg.five.meta.data.Protos.Song.Builder
[javac] throw newUninitializedMessageException(
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1740: cannot find symbol
[javac] symbol : method computeInt64SizeNoTag(long)
[javac] location: class com.google.protobuf.CodedOutputStream
[javac] .computeInt64SizeNoTag(element);
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1739: operator + cannot be applied to int,com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag
[javac] dataSize += com.google.protobuf.CodedOutputStream
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1740: inconvertible types
[javac] found : <nulltype>
[javac] required: int
[javac] .computeInt64SizeNoTag(element);
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1786: cannot find symbol
[javac] symbol : method mergeDelimitedFrom(java.io.InputStream)
[javac] location: class org.devtcg.five.meta.data.Protos.Playlist.Builder
[javac] return newBuilder().mergeDelimitedFrom(input).buildParsed();
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1859: cannot find symbol
[javac] symbol : method newUninitializedMessageException(org.devtcg.five.meta.data.Protos.Playlist)
[javac] location: class org.devtcg.five.meta.data.Protos.Playlist.Builder
[javac] throw newUninitializedMessageException(result);
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:1867: cannot find symbol
[javac] symbol : method newUninitializedMessageException(org.devtcg.five.meta.data.Protos.Playlist)
[javac] location: class org.devtcg.five.meta.data.Protos.Playlist.Builder
[javac] throw newUninitializedMessageException(
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2240: cannot find symbol
[javac] symbol : method mergeDelimitedFrom(java.io.InputStream)
[javac] location: class org.devtcg.five.meta.data.Protos.PlaylistSong.Builder
[javac] return newBuilder().mergeDelimitedFrom(input).buildParsed();
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2313: cannot find symbol
[javac] symbol : method newUninitializedMessageException(org.devtcg.five.meta.data.Protos.PlaylistSong)
[javac] location: class org.devtcg.five.meta.data.Protos.PlaylistSong.Builder
[javac] throw newUninitializedMessageException(result);
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2321: cannot find symbol
[javac] symbol : method newUninitializedMessageException(org.devtcg.five.meta.data.Protos.PlaylistSong)
[javac] location: class org.devtcg.five.meta.data.Protos.PlaylistSong.Builder
[javac] throw newUninitializedMessageException(
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2566: package com.google.protobuf.Internal does not exist
[javac] new com.google.protobuf.Internal.EnumLiteMap<Type>() {
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2764: cannot find symbol
[javac] symbol : method mergeDelimitedFrom(java.io.InputStream)
[javac] location: class org.devtcg.five.meta.data.Protos.Record.Builder
[javac] return newBuilder().mergeDelimitedFrom(input).buildParsed();
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2837: cannot find symbol
[javac] symbol : method newUninitializedMessageException(org.devtcg.five.meta.data.Protos.Record)
[javac] location: class org.devtcg.five.meta.data.Protos.Record.Builder
[javac] throw newUninitializedMessageException(result);
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:2845: cannot find symbol
[javac] symbol : method newUninitializedMessageException(org.devtcg.five.meta.data.Protos.Record)
[javac] location: class org.devtcg.five.meta.data.Protos.Record.Builder
[javac] throw newUninitializedMessageException(
[javac] ^
[javac] /home/vickey/code/five-server/gen/src/java/org/devtcg/five/meta/data/Protos.java:3312: internalBuildGeneratedFileFrom(java.lang.String,com.google.protobuf.Descriptors.FileDescriptor[],com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner) in com.google.protobuf.Descriptors.FileDescriptor cannot be applied to (java.lang.String[],com.google.protobuf.Descriptors.FileDescriptor[],com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner)
[javac] .internalBuildGeneratedFileFrom(descriptorData,
[javac] ^
[javac] 62 errors
[javac] 2 warnings
BUILD FAILED
/home/vickey/code/five-server/build.xml:150: The following error occurred while executing this line:
/home/vickey/code/five-server/build.xml:76: Compile failed; see the compiler error output for details.
Total time: 5 seconds
I think some class definitions are not getting imported . How can I get rid of these errors?
EDIT:
The cause of errors seems to be these lines in build.xml file
73 <target name="compile" depends="init, build-props, protoc" description="compile the source">
74 <!-- Compile the java code from ${src} into ${build} -->
75 <javac srcdir="${src}:${gen.src}" destdir="${build.classes}"
76 debug="true" debuglevel="lines,vars,source">
77 <classpath refid="compile.classpath" />
78 </javac>
79 </target>
Here compile.classpath may not have those class definitions .
Related
Here is the issue..
When I run the command make -j $(nproc) TARGET=linux-glibc USE_PCRE=1 USE_PCRE_JIT=1 USE_OPENSSL=1 USE_ZLIB=1 USE_LINUX_TPROXY=1 USE_REGPARM=1 USE_LUA=1 USE_THREAD=1 USE_TFO=1
I get the error below.. I'm trying to build HaProxy 2.5 with Lua 5.4 from source.
src/hlua.o: In function `hlua_yieldk':
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
src/hlua.o: In function `hlua_hook':
/src/haproxy-2.5.5/src/hlua.c:1325: undefined reference to `lua_isyieldable'
src/hlua.o: In function `hlua_yieldk':
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
src/hlua.o: In function `hlua_load_state':
/src/haproxy-2.5.5/src/hlua.c:11134: undefined reference to `luaL_loadfilex'
/src/haproxy-2.5.5/src/hlua.c:11142: undefined reference to `lua_pcallk'
src/hlua.o: In function `hlua_prepend_path':
/src/haproxy-2.5.5/src/hlua.c:11236: undefined reference to `lua_getglobal'
src/hlua.o: In function `hlua_filter_parse_fct':
/src/haproxy-2.5.5/src/hlua.c:10875: undefined reference to `lua_tointegerx'
src/hlua.o: In function `hlua_sleep_yield':
/src/haproxy-2.5.5/src/hlua.c:8289: undefined reference to `lua_tointegerx'
src/hlua.o: In function `hlua_yieldk':
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
src/hlua.o: In function `hlua_applet_tcp_recv_yield':
/src/haproxy-2.5.5/src/hlua.c:4557: undefined reference to `lua_copy'
src/hlua.o: In function `hlua_yieldk':
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
src/hlua.o: In function `hlua_txn_reply_add_header':
/src/haproxy-2.5.5/src/hlua.c:8185: undefined reference to `lua_rawlen'
src/hlua.o: In function `hlua_applet_http_addheader':
/src/haproxy-2.5.5/src/hlua.c:5242: undefined reference to `lua_rawlen'
src/hlua.o: In function `hlua_txn_reply_new':
/src/haproxy-2.5.5/src/hlua.c:8067: undefined reference to `lua_rotate'
/src/haproxy-2.5.5/src/hlua.c:8071: undefined reference to `lua_rotate'
/src/haproxy-2.5.5/src/hlua.c:8088: undefined reference to `lua_rawlen'
/src/haproxy-2.5.5/src/hlua.c:8007: undefined reference to `lua_tointegerx'
src/hlua.o: In function `hlua_filter_init_per_thread':
/src/haproxy-2.5.5/src/hlua.c:10299: undefined reference to `lua_rotate'
/src/haproxy-2.5.5/src/hlua.c:10319: undefined reference to `lua_rawlen'
/src/haproxy-2.5.5/src/hlua.c:10322: undefined reference to `lua_pcallk'
src/hlua.o: In function `hlua_lua2arg':
/src/haproxy-2.5.5/src/hlua.c:603: undefined reference to `lua_tointegerx'
src/hlua.o: In function `hlua_lua2smp':
/src/haproxy-2.5.5/src/hlua.c:739: undefined reference to `lua_tointegerx'
src/hlua.o: In function `hlua_yieldk':
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
src/hlua.o: In function `hlua_txn_forward_reply':
/src/haproxy-2.5.5/src/hlua.c:7757: undefined reference to `lua_tointegerx'
src/hlua.o: In function `hlua_yieldk':
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
src/hlua.o:/src/haproxy-2.5.5/src/hlua.c:1158: more undefined references to `lua_yieldk' follow
src/hlua.o: In function `hlua_http_get_headers':
/src/haproxy-2.5.5/src/hlua.c:5614: undefined reference to `lua_rawlen'
src/hlua.o: In function `hlua_yieldk':
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
src/hlua.o: In function `hlua_socket_connect':
/src/haproxy-2.5.5/src/hlua.c:2742: undefined reference to `luaL_prepbuffsize'
src/hlua.o: In function `hlua_yieldk':
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
src/hlua.o: In function `hlua_httpclient_get_headers':
/src/haproxy-2.5.5/src/hlua.c:7022: undefined reference to `lua_rawlen'
src/hlua.o: In function `hlua_applet_http_recv_yield':
/src/haproxy-2.5.5/src/hlua.c:5094: undefined reference to `lua_copy'
src/hlua.o: In function `hlua_yieldk':
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
src/hlua.o:/src/haproxy-2.5.5/src/hlua.c:1158: more undefined references to `lua_yieldk' follow
src/hlua.o: In function `hlua_applet_http_send_response':
/src/haproxy-2.5.5/src/hlua.c:5345: undefined reference to `lua_tointegerx'
src/hlua.o: In function `hlua_yieldk':
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
src/hlua.o: In function `hlua_socket_receive_yield':
/src/haproxy-2.5.5/src/hlua.c:2069: undefined reference to `lua_tointegerx'
src/hlua.o: In function `hlua_yieldk':
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
src/hlua.o: In function `hlua_socket_receive':
/src/haproxy-2.5.5/src/hlua.c:2279: undefined reference to `lua_copy'
/src/haproxy-2.5.5/src/hlua.c:2268: undefined reference to `lua_tointegerx'
src/hlua.o: In function `hlua_yieldk':
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
src/hlua.o: In function `hlua_filter_callback':
/src/haproxy-2.5.5/src/hlua.c:10615: undefined reference to `lua_rotate'
/src/haproxy-2.5.5/src/hlua.c:10658: undefined reference to `lua_rotate'
/src/haproxy-2.5.5/src/hlua.c:10673: undefined reference to `lua_tointegerx'
src/hlua.o: In function `hlua_filter_tcp_payload':
/src/haproxy-2.5.5/src/hlua.c:10812: undefined reference to `lua_tointegerx'
src/hlua.o: In function `hlua_filter_http_payload':
/src/haproxy-2.5.5/src/hlua.c:10776: undefined reference to `lua_tointegerx'
src/hlua.o: In function `hlua_yieldk':
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
src/hlua.o: In function `hlua_action':
/src/haproxy-2.5.5/src/hlua.c:9076: undefined reference to `lua_tointegerx'
src/hlua.o: In function `hlua_filter_new':
/src/haproxy-2.5.5/src/hlua.c:10487: undefined reference to `lua_rotate'
src/hlua.o: In function `hlua_yieldk':
/src/haproxy-2.5.5/src/hlua.c:1158: undefined reference to `lua_yieldk'
src/hlua.o: In function `hlua_init_state':
/src/haproxy-2.5.5/src/hlua.c:11723: undefined reference to `lua_setglobal'
/src/haproxy-2.5.5/src/hlua.c:11746: undefined reference to `lua_setglobal'
/src/haproxy-2.5.5/src/hlua.c:11768: undefined reference to `lua_setglobal'
/src/haproxy-2.5.5/src/hlua.c:11814: undefined reference to `lua_setglobal'
src/hlua_fcn.o: In function `hlua_stktable_dump':
/src/haproxy-2.5.5/src/hlua_fcn.c:719: undefined reference to `lua_rawlen'
/src/haproxy-2.5.5/src/hlua_fcn.c:744: undefined reference to `lua_tointegerx'
src/hlua_fcn.o: In function `hlua_fcn_post_init':
/src/haproxy-2.5.5/src/hlua_fcn.c:1390: undefined reference to `lua_getglobal'
src/hlua_fcn.o: In function `hlua_fcn_reg_core_fcn':
/src/haproxy-2.5.5/src/hlua_fcn.c:1713: undefined reference to `lua_setglobal'
collect2: error: ld returned 1 exit status
make: *** [haproxy] Error 1
When using the default Lua, which is 5.1.4 for CentOS7 then HAProxy can't find it. HaProxy doesn't work with 5.1.4 Lua. After updating the Lua to 5.3 or above and running the command
make -j $(nproc) TARGET=linux-glibc USE_PCRE=1 USE_PCRE_JIT=1 USE_OPENSSL=1 USE_ZLIB=1 USE_LINUX_TPROXY=1 USE_REGPARM=1 USE_LUA=1 LUA_LIB_NAME=lua5.4 USE_THREAD=1 USE_TFO=1
I still get the error above. Please have in mind that the CentOS7 is a ARM64 infrastructure. I tried to build the HAProxy and Lua on AMD64 and it went through successfully. Is it possible that this is an ARM issue ?
Okay to fix this issue first install the latest Lua package, then compile the HaProxy by using this command.
make -j $(nproc) USE_NS=1 > USE_TFO=1 > USE_ZLIB=1 > USE_LUA=1 > USE_PCRE=1 > USE_SYSTEMD=1 > USE_LIBCRYPT=1 > USE_THREAD=1 > TARGET=linux-glibc > LUA_INC=/src/lua-5.3.3/include > LUA_LIB=/src/lua-5.3.3/lib
Just outline the path of the Lua library and include directories.
Issues errors:
Undefined symbol: _linphone_core_mute_mic
Undefined symbol: _linphone_call_params_get_used_video_codec
Undefined symbol: _linphone_core_invite
Undefined symbol: _linphone_call_ref
Undefined symbol: _linphone_core_get_default_proxy
Undefined symbol: _linphone_proxy_config_done
Undefined symbol: _linphone_core_clear_all_auth_info
Undefined symbol: _linphone_call_get_current_params
Undefined symbol: _linphone_core_add_auth_info
Undefined symbol: _linphone_core_clear_proxy_config
Undefined symbol: _linphone_core_new
Undefined symbol: _linphone_proxy_config_edit
Undefined symbol: _linphone_core_set_default_proxy_config
Undefined symbol: _linphone_core_create_proxy_config
Undefined symbol: _linphone_call_send_dtmf
Undefined symbol: _ms_usleep
Undefined symbol: _linphone_address_get_username
Undefined symbol: _linphone_proxy_config_set_identity_address
Undefined symbol: _linphone_address_new
Undefined symbol: _linphone_call_get_state
Undefined symbol: _linphone_address_get_domain
Undefined symbol: _linphone_core_add_proxy_config
Undefined symbol: _linphone_core_destroy
Undefined symbol: _linphone_proxy_config_set_server_addr
Undefined symbol: _linphone_proxy_config_enable_register
Undefined symbol: _linphone_call_unref
Undefined symbol: _linphone_core_terminate_call
Undefined symbol: _linphone_auth_info_new
Undefined symbol: _linphone_address_destroy
Undefined symbol: _linphone_proxy_config_get_state
Undefined symbol: _linphone_core_iterate
Undefined symbol: _linphone_core_accept_call
I am trying to compile an example code from ubuntu18.04 x86 machine for raspberry. My cmake and toolchain.cmake files is missing something, I am unable to make, though cmake works perfectly fine. Please help.
I have tested the cmake and output makefile for build on my pc. I works fine, but it fails during cross compile.
the code I am trying to compile can be found here: https://github.com/adamb/opencv-samples/blob/master/hello-world.cpp
#CMakeLists.txt
cmake_minimum_required (VERSION 3.0)
#name of projekt
project (blink_example)
find_package (OpenCV REQUIRED)
include_directories( ${OpenCV_INCLUDE_DIRS} )
include_directories( ${CMAKE_FIND_ROOT_PATH}/usr/include/arm-linux-gnueabihf )
add_executable( DisplayImage helloWorld.cpp)
target_link_libraries(DisplayImage ${OpenCV_LIBS})
ToolChainRPi.cmake
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(FLAGS "-isystem $ENV{HOME}/mntsysroot/usr/include/arm-linux-gnueabihf")
UNSET(CMAKE_C_FLAGS CACHE)
UNSET(CMAKE_CXX_FLAGS CACHE)
SET(CMAKE_CXX_FLAGS ${FLAGS} CACHE STRING "" FORCE)
SET(CMAKE_C_FLAGS ${FLAGS} CACHE STRING "" FORCE)
# Specify the cross compiler
SET(CMAKE_C_COMPILER $ENV{HOME}/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc)
SET(CMAKE_CXX_COMPILER $ENV{HOME}/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++)
# Where is the target environment
SET(CMAKE_FIND_ROOT_PATH $ENV{HOME}/mntsysroot)
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --sysroot=${CMAKE_FIND_ROOT_PATH}")
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --sysroot=${CMAKE_FIND_ROOT_PATH}")
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} --sysroot=${CMAKE_FIND_ROOT_PATH}")
# Search for programs only in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# Search for libraries and headers only in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
INCLUDE_DIRECTORIES(${CMAKE_FIND_ROOT_PATH}/opt/vc/include)
INCLUDE_DIRECTORIES(${CMAKE_FIND_ROOT_PATH}/opt/vc/include/interface/vcos/pthreads)
INCLUDE_DIRECTORIES(${CMAKE_FIND_ROOT_PATH}/opt/vc/include/interface/vmcs_host/linux)
Error Log:
shekhar#shekhar-virtual-machine:~/Downloads/opencvCmake$ make
[ 50%] Linking CXX executable DisplayImage
/home/shekhar/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: warning: libz.so.1, needed by /home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libopencv_highgui.so.2.4.9, not found (try using -rpath or -rpath-link)
/home/shekhar/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: warning: libglib-2.0.so.0, needed by /home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libopencv_highgui.so.2.4.9, not found (try using -rpath or -rpath-link)
/home/shekhar/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: warning: liblzma.so.5, needed by /home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libtiff.so.5, not found (try using -rpath or -rpath-link)
/home/shekhar/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: warning: libselinux.so.1, needed by /home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0, not found (try using -rpath or -rpath-link)
/home/shekhar/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: warning: libmount.so.1, needed by /home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0, not found (try using -rpath or -rpath-link)
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_set_error'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_sequence_swap'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_queue_peek_head'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_hash_table_lookup_extended'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_hash_table_new_full'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_cond_clear'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_variant_is_container'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libssh-gcrypt.so.4: undefined reference to `gcry_randomize#GCRYPT_1.6'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `mnt_free_iter#MOUNT_2.19'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_variant_get_uint16'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_propagate_error'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_key_file_get_locale_string_list'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_get_monotonic_time'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_malloc_n'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_variant_is_of_type'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libfontconfig.so.1: undefined reference to `XML_ParserCreate'
/libopencv_ts.so.2.4.9: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >#GLIBCXX_3.4.21'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_quark_from_static_string'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_checksum_get_string'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_key_file_unref'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_unichar_toupper'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_mkstemp'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_main_loop_is_running'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_variant_n_children'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_bookmark_file_get_description'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_pattern_spec_free'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_ptr_array_remove_index'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0: undefined reference to `g_string_new_len'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_array_append_vals'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libtiff.so.5: undefined reference to `deflateInit_'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libopencv_ts.so.2.4.9: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_erase(unsigned int, unsigned int)#GLIBCXX_3.4.21'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgdk_pixbuf-2.0.so.0: undefined reference to `g_bytes_new_take'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0: undefined reference to `g_match_info_unref'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_error_matches'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_markup_parse_context_parse'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0: undefined reference to `g_time_zone_unref'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_ptr_array_remove_index_fast'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_strcmp0'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libp11-kit.so.0: undefined reference to `getauxval#GLIBC_2.16'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_variant_print_string'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_hash_table_ref'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_hash_table_remove_all'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0: undefined reference to `g_option_group_ref'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_convert'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_variant_new_from_data'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_list_copy_deep'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_error_copy'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libopenmpt.so.0: undefined reference to `std::range_error::range_error(char const*)#GLIBCXX_3.4.21'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_strjoinv'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_timeout_add_seconds'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_assertion_message_error'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0: undefined reference to `g_checksum_copy'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_file_get_contents'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_bookmark_file_to_file'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_main_loop_run'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_path_skip_root'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgdk-x11-2.0.so.0: undefined reference to `g_source_add_poll'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_slist_delete_link'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_static_private_set'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libssh-gcrypt.so.4: undefined reference to `gcry_mpi_set_ui#GCRYPT_1.6'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `mnt_new_context#MOUNT_2.19'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_list_remove'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_spawn_command_line_async'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libfontconfig.so.1: undefined reference to `XML_SetCharacterDataHandler'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_sequence_insert_before'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_ascii_strdown'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libopencv_core.so.2.4.9: undefined reference to `gzclose'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_variant_get_string'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libxml2.so.2: undefined reference to `gzdopen'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_variant_get_data_as_bytes'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libx265.so.95: undefined reference to `__log2_finite#GLIBC_2.15'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libopencv_highgui.so.2.4.9: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct(unsigned int, char)#GLIBCXX_3.4.21'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_file_open_tmp'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_pattern_spec_new'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libssh-gcrypt.so.4: undefined reference to `gcry_mpi_test_bit#GCRYPT_1.6'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_node_destroy'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_dataset_id_set_data_full'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_key_file_get_value'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_variant_builder_close'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0: undefined reference to `g_date_time_ref'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0: undefined reference to `g_variant_dict_ref'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libavcodec.so.57: undefined reference to `mmal_port_parameter_set_uint32'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_date_set_time_t'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_mkstemp_full'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_static_private_get'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libxml2.so.2: undefined reference to `gzwrite'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_sequence_foreach'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_key_file_ref'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_array_get_element_size'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_strreverse'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libopencv_ts.so.2.4.9: undefined reference to `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const#GLIBCXX_3.4.21'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libharfbuzz.so.0: undefined reference to `g_unichar_decompose'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_utf8_get_char_validated'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_completion_complete_utf8'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_get_system_data_dirs'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_main_context_unref'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_slist_insert'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0: undefined reference to `g_source_set_callback'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libssh-gcrypt.so.4: undefined reference to `gcry_mpi_print#GCRYPT_1.6'
/home/shekhar/mntsysroot/usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0: undefined reference to `g_variant_is_floating'
collect2: error: ld returned 1 exit status
CMakeFiles/DisplayImage.dir/build.make:112: recipe for target 'DisplayImage' failed
make[2]: *** [DisplayImage] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/DisplayImage.dir/all' failed
make[1]: *** [CMakeFiles/DisplayImage.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
I am very new to all this cross-compilation. Both systems rpi and x64 pc got opencv installation by using following command:
sudo apt-get install libopencv-dev
The log above is not complete log, but are repeated,
I am currently running rspec with rails 4.1.1 and ruby 2.1.1 however I'm getting a bunch of errors related to gems and such with out it even getting to the models.
This is a new version of rspec that has a spec_helper.rb as well as a rails_helper.rb
You require the rails_helper.rb in your spec with that file subsequently referencing the spec_helper.rb
I haven't made any changes to the two helper files and have just gotten started with my project. Any assistance/information would be greatly appreciated!
$ bundle exec rspec
/.rvm/gems/ruby-2.1.1/gems/simplecov-html-0.8.0/lib/simplecov-html.rb:58: warning: possibly useless use of a variable in void context
/.rvm/gems/ruby-2.1.1/gems/gibbon-1.1.3/lib/gibbon/api_category.rb:75: warning: method redefined; discarding old api_key=
/.rvm/gems/ruby-2.1.1/gems/rack-cors-0.2.9/lib/rack/cors.rb:71: warning: shadowing outer local variable - logger
/.rvm/gems/ruby-2.1.1/gems/rack-cors-0.2.9/lib/rack/cors.rb:174: warning: assigned but unused variable - x_origin
/.rvm/gems/ruby-2.1.1/gems/stripe-1.14.0/lib/stripe.rb:172: warning: assigned but unused variable - ex
/.rvm/gems/ruby-2.1.1/gems/rest-client-1.6.7/lib/restclient/exceptions.rb:157: warning: assigned but unused variable - message
/.rvm/gems/ruby-2.1.1/gems/rest-client-1.6.7/lib/restclient/exceptions.rb:167: warning: assigned but unused variable - message
/.rvm/gems/ruby-2.1.1/gems/rest-client-1.6.7/lib/restclient/response.rb:11: warning: method redefined; discarding old body
/.rvm/gems/ruby-2.1.1/gems/rest-client-1.6.7/lib/restclient/payload.rb:47: warning: mismatched indentations at 'end' with 'case' at 40
/.rvm/gems/ruby-2.1.1/gems/warden-1.2.3/lib/warden/proxy.rb:72: warning: assigned but unused variable - opts
/.rvm/gems/ruby-2.1.1/gems/warden-1.2.3/lib/warden/proxy.rb:104: warning: assigned but unused variable - opts
/.rvm/gems/ruby-2.1.1/gems/warden-1.2.3/lib/warden/manager.rb:22: warning: `*' interpreted as argument prefix
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/doublespeak/double.rb:50: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/doublespeak/double.rb:50: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/doublespeak/double.rb:50: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/doublespeak/double.rb:50: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/doublespeak/double_collection.rb:42: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/doublespeak/double_collection.rb:42: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/doublespeak/object_double.rb:28: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/doublespeak/proxy_implementation.rb:26: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/doublespeak/stub_implementation.rb:30: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/independent/delegate_matcher.rb:89: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/independent/delegate_matcher.rb:89: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/independent/delegate_matcher.rb:89: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/independent/delegate_matcher.rb:89: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/independent/delegate_matcher.rb:89: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/independent/delegate_matcher.rb:89: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/independent/delegate_matcher.rb:89: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/independent/delegate_matcher.rb:89: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/independent/delegate_matcher/stubbed_target.rb:30: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/independent/delegate_matcher/stubbed_target.rb:30: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_model/allow_value_matcher.rb:100: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_model/allow_value_matcher.rb:100: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_model/allow_value_matcher.rb:100: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_model/allow_value_matcher.rb:100: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_model/allow_value_matcher.rb:100: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_model/allow_value_matcher.rb:100: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_model/allow_value_matcher.rb:100: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_model/allow_value_matcher.rb:100: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_model/allow_value_matcher.rb:100: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_model/disallow_value_matcher.rb:51: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_model/have_secure_password_matcher.rb:52: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matcher.rb:204: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matcher.rb:204: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matcher.rb:204: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matcher.rb:204: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matcher.rb:204: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matcher.rb:204: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/counter_cache_matcher.rb:31: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/counter_cache_matcher.rb:31: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/counter_cache_matcher.rb:31: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/inverse_of_matcher.rb:31: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/inverse_of_matcher.rb:31: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/inverse_of_matcher.rb:31: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/order_matcher.rb:31: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/order_matcher.rb:31: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/order_matcher.rb:31: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/through_matcher.rb:53: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/through_matcher.rb:53: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/through_matcher.rb:53: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/dependent_matcher.rb:31: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/dependent_matcher.rb:31: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/dependent_matcher.rb:31: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/source_matcher.rb:31: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/source_matcher.rb:31: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/source_matcher.rb:31: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/model_reflector.rb:51: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/model_reflector.rb:51: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/model_reflection.rb:49: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/model_reflection.rb:49: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/option_verifier.rb:47: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/association_matchers/option_verifier.rb:47: warning: method redefined; discarding old reflector
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/active_record/have_db_column_matcher.rb:192: warning: assigned but unused variable - expected
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/route_params.rb:19: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/rescue_from_matcher.rb:41: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/rescue_from_matcher.rb:41: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/rescue_from_matcher.rb:41: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/rescue_from_matcher.rb:41: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/callback_matcher.rb:100: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/callback_matcher.rb:100: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/callback_matcher.rb:100: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/callback_matcher.rb:100: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/callback_matcher.rb:100: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb:67: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb:67: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb:67: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb:67: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb:67: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb:67: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/shoulda-matchers-2.6.1/lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb:67: warning: private attribute?
/.rvm/gems/ruby-2.1.1/gems/capybara-2.1.0/lib/capybara/dsl.rb:1: warning: loading in progress, circular require considered harmful - /.rvm/gems/ruby-2.1.1/gems/capybara-2.1.0/lib/capybara.rb
from /.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
from /.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
from /.rvm/gems/ruby-2.1.1/bin/rspec:23:in `<main>'
from /.rvm/gems/ruby-2.1.1/bin/rspec:23:in `load'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/exe/rspec:4:in `<top (required)>'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:38:in `invoke'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:70:in `run'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:85:in `run'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:97:in `setup'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in `load_spec_files'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in `each'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in `block in load_spec_files'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in `load'
from /Desktop/winesimple_ecom/spec/models/factories_spec.rb:1:in `<top (required)>'
from /Desktop/winesimple_ecom/spec/models/factories_spec.rb:1:in `require'
from /Desktop/winesimple_ecom/spec/rails_helper.rb:7:in `<top (required)>'
from /Desktop/winesimple_ecom/spec/rails_helper.rb:7:in `require'
from /Desktop/winesimple_ecom/config/environment.rb:2:in `<top (required)>'
from /Desktop/winesimple_ecom/config/environment.rb:2:in `require'
from /Desktop/winesimple_ecom/config/application.rb:14:in `<top (required)>'
from /.rvm/gems/ruby-2.1.1#global/gems/bundler-1.6.1/lib/bundler.rb:132:in `require'
from /.rvm/gems/ruby-2.1.1#global/gems/bundler-1.6.1/lib/bundler/runtime.rb:61:in `require'
from /.rvm/gems/ruby-2.1.1#global/gems/bundler-1.6.1/lib/bundler/runtime.rb:61:in `each'
from /.rvm/gems/ruby-2.1.1#global/gems/bundler-1.6.1/lib/bundler/runtime.rb:72:in `block in require'
from /.rvm/gems/ruby-2.1.1#global/gems/bundler-1.6.1/lib/bundler/runtime.rb:72:in `each'
from /.rvm/gems/ruby-2.1.1#global/gems/bundler-1.6.1/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /.rvm/gems/ruby-2.1.1#global/gems/bundler-1.6.1/lib/bundler/runtime.rb:76:in `require'
from /.rvm/gems/ruby-2.1.1/gems/capybara-webkit-1.1.1/lib/capybara-webkit.rb:1:in `<top (required)>'
from /.rvm/gems/ruby-2.1.1/gems/capybara-webkit-1.1.1/lib/capybara-webkit.rb:1:in `require'
from /.rvm/gems/ruby-2.1.1/gems/capybara-webkit-1.1.1/lib/capybara/webkit.rb:1:in `<top (required)>'
from /.rvm/gems/ruby-2.1.1/gems/capybara-webkit-1.1.1/lib/capybara/webkit.rb:1:in `require'
from /.rvm/gems/ruby-2.1.1/gems/capybara-2.1.0/lib/capybara.rb:5:in `<top (required)>'
from /.rvm/gems/ruby-2.1.1/gems/capybara-2.1.0/lib/capybara.rb:295:in `<module:Capybara>'
from /.rvm/gems/ruby-2.1.1/gems/capybara-2.1.0/lib/capybara.rb:295:in `require'
from /.rvm/gems/ruby-2.1.1/gems/capybara-2.1.0/lib/capybara/dsl.rb:1:in `<top (required)>'
from /.rvm/gems/ruby-2.1.1/gems/capybara-2.1.0/lib/capybara/dsl.rb:1:in `require'
/.rvm/gems/ruby-2.1.1/gems/capybara-2.1.0/lib/capybara/selenium/driver.rb:109: warning: assigned but unused variable - a
/.rvm/gems/ruby-2.1.1/gems/warden-1.2.3/lib/warden/manager.rb:72: warning: method redefined; discarding old serialize
/.rvm/gems/ruby-2.1.1/gems/warden-1.2.3/lib/warden/session_serializer.rb:14: warning: previous definition of serialize was here
/.rvm/gems/ruby-2.1.1/gems/warden-1.2.3/lib/warden/manager.rb:87: warning: method redefined; discarding old deserialize
/.rvm/gems/ruby-2.1.1/gems/warden-1.2.3/lib/warden/session_serializer.rb:18: warning: previous definition of deserialize was here
/.rvm/gems/ruby-2.1.1/gems/mail-2.5.4/lib/mail/network/delivery_methods/sendmail.rb:53: warning: shadowing outer local variable - to
/.rvm/gems/ruby-2.1.1/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/.rvm/gems/ruby-2.1.1/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/.rvm/gems/ruby-2.1.1/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
Coverage report generated for RSpec to /Desktop/winesimple_ecom/coverage. 76 / 113 LOC (67.26%) covered.
/.rvm/gems/ruby-2.1.1/gems/rspec-support-3.0.2/lib/rspec/support/version_checker.rb:28:in `raise_too_low_error': You are using capybara 2.1.0. RSpec requires version >= 2.2.0. (RSpec::Support::LibraryVersionTooLowError)
from /.rvm/gems/ruby-2.1.1/gems/rspec-support-3.0.2/lib/rspec/support/version_checker.rb:18:in `check_version!'
from /.rvm/gems/ruby-2.1.1/gems/rspec-rails-3.0.1/lib/rspec/rails/vendor/capybara.rb:13:in `<top (required)>'
from /.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `require'
from /.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `block in require'
from /.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:232:in `load_dependency'
from /.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `require'
from /.rvm/gems/ruby-2.1.1/gems/rspec-rails-3.0.1/lib/rspec/rails.rb:9:in `<top (required)>'
from /.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `require'
from /.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `block in require'
from /.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:232:in `load_dependency'
from /.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `require'
from /Desktop/winesimple_ecom/spec/rails_helper.rb:8:in `<top (required)>'
from /Desktop/winesimple_ecom/spec/models/factories_spec.rb:1:in `require'
from /Desktop/winesimple_ecom/spec/models/factories_spec.rb:1:in `<top (required)>'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in `load'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in `block in load_spec_files'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in `each'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in `load_spec_files'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:97:in `setup'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:85:in `run'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:70:in `run'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:38:in `invoke'
from /.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.2/exe/rspec:4:in `<top (required)>'
from /.rvm/gems/ruby-2.1.1/bin/rspec:23:in `load'
from /.rvm/gems/ruby-2.1.1/bin/rspec:23:in `<main>'
from /.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
from /.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
Found the reason why this happens here: https://stackoverflow.com/a/24005972/2491655
tl;dr - running $ rails g rspec:install now adds --warnings to the .rspec file in your root directory
Part of that output is warnings (perhaps you have warnings turned on in your .rspec)
In the middle of that is
support/version_checker.rb:28:in `raise_too_low_error': You are using capybara 2.1.0. RSpec requires version >= 2.2.0. (RSpec::Support::LibraryVersionTooLowError)
Since you are using rspec 3 you actually want capybara 2.3 - version 2.2 will work but you'll get warnings about deprecated matcher syntax.
I am creating a new logger and want to configure the log level to equal Rails configuration value.
#logger = Logger.new(STDOUT)
#logger.level = Rails.configuration.log_level
I get an error since level expects integer and log_level is a symbol (:info). How can I convert the :info into something Logger understands (Logger::INFO)?
I tried using:
#logger.level = "Logger::#{Rails.configuration.log_level.to_s.upcase}".constantize
But constantize does not recognize the symbol:
NameError: uninitialized constant Logger::INFO
Just found it:
Logger.const_get(Rails.configuration.log_level.to_s.upcase)