Using Burstly and Adfonic together - iphone

I am getting the error while i am integrating Adfonic and Burstly Ad integration Frameworks are at a same time.
duplicate symbol _OBJC_IVAR_$_LoadingView.actIndicator in:
/Users/kunalthakkar/kunal/displayAds/AdfonicSDK/libAdfonic.a(ORMMAAVPlayer.o)
/Users/kunalthakkar/kunal/displayAds/BurstlySDK/libBurstly.a(BurstlyORMMAAVPlayer.o)
duplicate symbol _OBJC_CLASS_$_LoadingView in:
/Users/kunalthakkar/kunal/displayAds/AdfonicSDK/libAdfonic.a(ORMMAAVPlayer.o)
/Users/kunalthakkar/kunal/displayAds/BurstlySDK/libBurstly.a(BurstlyORMMAAVPlayer.o)
duplicate symbol _OBJC_METACLASS_$_LoadingView in:
/Users/kunalthakkar/kunal/displayAds/AdfonicSDK/libAdfonic.a(ORMMAAVPlayer.o)
/Users/kunalthakkar/kunal/displayAds/BurstlySDK/libBurstly.a(BurstlyORMMAAVPlayer.o)
ld: 3 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Related

Protobuf for MATLAB fails to build in Cygwin

I am trying to build the protobuf compiler for MATLAB using github.com/BraunPhilipp/protobuf-matlab (forked from farsounders code). I followed the instructions at the site and I keep getting this error:
/usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/protoc.dir/home/kiran/protobuf/src/google/protobuf/compiler/main.cc.o:main.cc:(.text+0x2f3): undefined reference to farsounder::protobuf::compiler::matlab::MatlabGenerator::MatlabGenerator()' /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/protoc.dir/home/kiran/protobuf/src/google/protobuf/compiler/main.cc.o:main.cc:(.text+0x3dc): undefined reference to farsounder::protobuf::compiler::matlab::MatlabGenerator::~MatlabGenerator()' /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/protoc.dir/home/kiran/protobuf/src/google/protobuf/compiler/main.cc.o:main.cc:(.text+0x57e): undefined reference to `farsounder::protobuf::compiler::matlab::MatlabGenerator::~MatlabGenerator()' collect2: error: ld returned 1 exit status
Any help would be great

/usr/bin/ld: cannot find -ll collect2: error: ld returned 1 exit status

I am trying to compile this lex program but the i am getting this message
/usr/bin/ld: cannot find -ll
collect2: error: ld returned 1 exit status
I tried to compile by typing this
cc first.yy.c -oexe -ly

Redis build fails on new RaspberryPi 4 using Raspbian Buster

I am getting a linker error when trying to build redis-stable (should be 5.0.5) on raspbian buster running on the latest Raspberry Pi 4
make goes through the motions and then fails with the following
LINK redis-server
/usr/bin/ld: networking.o: in function `createClient':
/home/pi/redis-stable/src/networking.c:109: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:219: redis-server] Error 1
make[1]: Leaving directory '/home/pi/redis-stable/src'
make: *** [Makefile:6: all] Error 2
Am I missing a setting somewhere?
I was able to get all the tests to run successfully by adding the compiler flag -latomic only to the redis-server
# redis-server
$(REDIS_SERVER_NAME): $(REDIS_SERVER_OBJ)
$(REDIS_LD) -o $# $^ ../deps/hiredis/libhiredis.a ../deps/lua/src/liblua.a $(FINAL_LIBS) -latomic
EDIT: This is with Redis 5.0.5
I was able to run by adding the compiler flag -latomic only to the haproxy
[error]
/home/pi/CQ/LB/haproxy-1.8.21/src/proto_http.c:12152: undefined reference to `__atomic_fetch_add_8'
..........................................
..........................................
/usr/bin/ld: src/proto_http.o:/home/pi/CQ/LB/haproxy-1.8.21/src/proto_http.c:4200: more undefined references to `__atomic_fetch_add_8' follow
/usr/bin/ld: src/time.o: in function `tv_update_date':
/home/pi/CQ/LB/haproxy-1.8.21/src/time.c:229: undefined reference to `__atomic_compare_exchange_8'
collect2: error: ld returned 1 exit status
make: *** [Makefile:914: haproxy] error 1
[adding]
913 haproxy: $(OPTIONS_OBJS) $(EBTREE_OBJS) $(OBJS)
914 $(LD) $(LDFLAGS) -o $# $^ $(LDOPTS) -latomic

suppress solaris CC linker warning symbol XXX has differing sizes

I got this linker error message:
ld: warning: symbol `_VersioN' has differing sizes:
(file ./libsfc/libssl48.so value=0x16; file ./libsfc/libsipc.so value=0x15);
When I try to do link things:
CC -o foo foo.o bar.o ....
ld: warning: symbol `_VersioN' has differing sizes:
(file ./libsfc/libssl48.so value=0x16; file ./libsfc/libsipc.so valu15);
[still generate foo binary]
I want to supress the warning message. if I've try to add -t option, but failed:
CC -t -o foo foo.o bar.o ...
CC: Warning: Option -t passed to ld, if ld is invoked, ignored otherwise
[won't generate foo binary]
It appears that your libssl48.so was built using a mapfile which specified a size for that particular variable.
If you want the Solaris Studio compiler to pass '-t' through to the linker, then you need to use -Xlinker -t rather than a bare -t.
You need to post a bit more info to let people give you a more useful response.

Jailbreak dev - error creating tweak

I'm trying to create an iphone tweak, but I can not compile the tweak. It always comes up with this error.
What could be the problem?
TWEAK.M
%hook SBCallAlertDisplay
- (void)updateLCDWithName:(id)name label:(id)label breakPoint:(unsigned)point
{
name = #"dasdasdasdasdasds";
%orig;
}
%end
MAKE FILE
include theos/makefiles/common.mk
export GO_EASY_ON_ME=1
TWEAK_NAME = tete
tete_FILES = Tweak.xm
tete_FRAMEWORKS = UIKit
include $(THEOS_MAKE_PATH)/tweak.mk
MAKE
sudo make
Making all for tweak tete...
Linking tweak tete...
Undefined symbols for architecture armv6:
"_MSHookMessageEx", referenced from:
global constructors keyed to Tweak.xm.mmin Tweak.xm.o
ld: symbol(s) not found for architecture armv6
collect2: ld returned 1 exit status
make[2]: *** [.theos/obj/tete.dylib] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [tete.all.tweak.variables] Error 2
"substrate.h" defines it. Lib is libsubstrate.dylib. But you don't have to #include the .h or link explicitly with the library. Theos should take care of it when you create a Tweak.