dyld

Symbol not found: _libintl_gettext

若如初见. 提交于 2019-12-11 00:52:35
问题 I am trying to create a NodeJS module using C++ and node-gyp . The package depends on GNU's Gettext library. I am currently using Mac OS X Mountain Lion. I have tried installing the package myself via manual efforts, via Homebrew, and even via Fink. The program works via Terminal.app and the package compiles. I can use the .node module just fine, except until I use a method in the library that uses gettext . I get the following errors in REPL and then REPL exits. dyld: lazy symbol binding

EXC_BREAKPOINT when starting iPhone app

微笑、不失礼 提交于 2019-12-10 21:52:17
问题 A user of our app sent me the following crash log (already symbolicated): Incident Identifier: 59D4D5E7-570A-4047-A679-3016B2A226C4 CrashReporter Key: d8284d671ee22ad17511360ce73409ebfa8b84bb Process: .... [63] Path: /var/mobile/Applications/.... Identifier: ... Version: ??? (???) Code Type: ARM (Native) Parent Process: launchd [1] Date/Time: 2010-03-08 17:00:15.437 -0800 OS Version: iPhone OS 2.2.1 (5H11a) Report Version: 103 Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes:

How to force the linker to honor object file order?

我的梦境 提交于 2019-12-10 17:54:43
问题 I'm catching a Valgrind finding on an uninitialized read. I know exactly where its coming from - its an empty std::string declared in a cpp file with static storage class. The object file that has the std::string 's storage allocation is listed first in the static archive. # string of interest is located in a.o LIBOBJS := a.o b.o c.o ... x.o y.o z.o library.a: $(LIBOBJS) $(AR) $(ARFLAGS) $@ $(LIBOBJS) $(RANLIB) $@ In addition, I modified the link recipe to the following (I know it looks silly

dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social

北战南征 提交于 2019-12-10 16:11:23
问题 I have the following execution problem when the application is runing on simulator: dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social Referenced from: /Users/Development1/Library/Application Support/iPhoneSimulator/4.3.2/Applications/730C5B6A-130C-471D-B8C8-CE119B06ACF5/Emisora Atlantico.app/Emisora Atlantico Reason: image not found Does anyone know how to fix it? 回答1: The Social framework was added in iOS 6.0. You can't use it under iOS 4.3 or 5.x. You need proper

Sharing executable memory pages in Linux?

旧街凉风 提交于 2019-12-10 11:14:50
问题 Is it possible to share executable pages on Linux for the sake of preserving space? I know that there are shared memory APIs that can be used to share memory between different processes but I don't think that is meant to be used for that. Basically, I want to have a shared memory region where some commonly used shared libraries can be loaded into. I want to get the dynamic linker to link against the preloaded (read only) images instead of having to load all of the shared library images into

Makefile can not find boost libraries installed by macports

随声附和 提交于 2019-12-09 22:59:12
问题 I just installed boost 1.42.0 from macports using sudo port install boost . Everything worked fine. Now I have a project that I'm trying to build using a makefile. Everything builds fine until it comes to the file that needs the boost library. It says: src/graph.h:20:42: error: boost/graph/adjacency_list.hpp: No such file or directory That file is actually located in two places: /opt/local/include/boost/graph/adjacency_list.hpp and /opt/local/var/macports/software/boost/1.42.0_0/opt/local

DYLD_INSERT_LIBRARIES doesn't work for app signed with entitlements on Mountain Lion

前提是你 提交于 2019-12-09 03:34:19
问题 I notice that DYLD_INSERT_LIBRARIES no longer works in Mountion Lion if the application is codesigned with entitlements. For example: DYLD_INSERT_LIBRARIES=./mylib.dylib /Applications/Safari.app/Contents/MacOS/Safari dyld: DYLD_ environment variables being ignored because main executeable is code signed with entitlements. I know this is probably a new security feature added to Mountion Lion. Anyone knows if there is an alternative way to do similar thing on Mountain Lion? Thanks! 回答1: There

Avoid automatic framework linking in swift

强颜欢笑 提交于 2019-12-08 16:22:47
问题 I have an example project consisting of a main target ( LinkerTests ) and a dependent dynamic framework ( Dynamic ). If you run the project, you will see the following dyld binary load: dyld: loaded: {DerivedDataPath}/Build/Products/Debug-iphonesimulator/Dynamic.framework/Dynamic This dyld binary load happens due to import Dynamic in AppDelegate.swift despite of the following: Link Binary With Libraries build phase is empty CLANG_MODULES_AUTOLINK is set to false What I need to achieve is

Problem while including custom framework in Project

夙愿已清 提交于 2019-12-08 05:27:08
问题 I am trying to learn how to create custom frameworks and use them in a project in cocoa, so I began with a simple custom framework named - SimpleFramework. It contains one class with only one class method: // class name: SimpleClass, role: Public + (void)displayMessage{ NSLog(@"Hello World"); } I also set its Installation Directory path to - @executable_path/../Frameworks then compiled it. I included it in another project - SimpleTest, using following steps- Dragged SimpleFramework.framework

Add load command to mach-o binary

前提是你 提交于 2019-12-07 23:08:47
问题 Is it possible to add an LC_LOAD_DYLIB to a binary? There has been protection against DYLD_INSERT_LIBRARIES being used so I need another to load a dylib into an app 回答1: I open-sourced optool which does exactly this. 来源: https://stackoverflow.com/questions/8862602/add-load-command-to-mach-o-binary