Page 1 of 1

Class nnn is implemented in both

Posted: Fri May 31, 2013 4:00 pm
by Kukulkan
Hi,

we did a SDK dylib using PureBasic. This is used by another PureBasic executable. If we run this, we get the following output:

Code: Select all

objc[75986]: Class PB_NSFlippedView is implemented in both /Users/MyName/src/clients/./MyName_client and /Users/MyName/src/includes/third-party/libMyName2.dylib. One of the two will be used. Which one is undefined.
objc[75986]: Class PBGadgetFunctions is implemented in both /Users/MyName/src/clients/./MyName_client and /Users/MyName/src/includes/third-party/libMyName2.dylib. One of the two will be used. Which one is undefined.
objc[75986]: Class PBMatrix is implemented in both /Users/MyName/src/clients/./MyName_client and /Users/MyName/src/includes/third-party/libMyName2.dylib. One of the two will be used. Which one is undefined.
objc[75986]: Class PBOptionGadgetFunctions is implemented in both /Users/MyName/src/clients/./MyName_client and /Users/MyName/src/includes/third-party/libMyName2.dylib. One of the two will be used. Which one is undefined.
objc[75986]: Class PBDragDrop is implemented in both /Users/MyName/src/clients/./MyName_client and /Users/MyName/src/includes/third-party/libMyName2.dylib. One of the two will be used. Which one is undefined.
objc[75986]: Class PBApplicationDelegate is implemented in both /Users/MyName/src/clients/./MyName_client and /Users/MyName/src/includes/third-party/libMyName2.dylib. One of the two will be used. Which one is undefined.
objc[75986]: Class PBMenuDelegate is implemented in both /Users/MyName/src/clients/./MyName_client and /Users/MyName/src/includes/third-party/libMyName2.dylib. One of the two will be used. Which one is undefined.
objc[75986]: Class PBMenuObject is implemented in both /Users/MyName/src/clients/./MyName_client and /Users/MyName/src/includes/third-party/libMyName2.dylib. One of the two will be used. Which one is undefined.
objc[75986]: Class PBFlippedWindowView is implemented in both /Users/MyName/src/clients/./MyName_client and /Users/MyName/src/includes/third-party/libMyName2.dylib. One of the two will be used. Which one is undefined.
objc[75986]: Class PBWindowEvents is implemented in both /Users/MyName/src/clients/./MyName_client and /Users/MyName/src/includes/third-party/libMyName2.dylib. One of the two will be used. Which one is undefined.
objc[75986]: Class PBWindow is implemented in both /Users/MyName/src/clients/./MyName_client and /Users/MyName/src/includes/third-party/libMyName2.dylib. One of the two will be used. Which one is undefined.
objc[75986]: Class PBGadgetList is implemented in both /Users/MyName/src/clients/./MyName_client and /Users/MyName/src/includes/third-party/libMyName2.dylib. One of the two will be used. Which one is undefined.
I dont see a reason why the dylib includes the GUI stuff. We normally do not even use a requester or any other GUI things for the dylib.

1) How to get rid of these warnings!
2) How to find which function forces PB to include/link that GUI stuff?

I forgot to mention that this makes my program crash in 50% of the calls. The same executable sometimes stops with Bus Error 10 or Bus Error 11 or runs fine. It was not recompiled. The executable has just been restarted.

Kukulkan

Re: Class nnn is implemented in both

Posted: Mon Jun 03, 2013 8:04 am
by Kukulkan
This is what GDB says:

Code: Select all

Program received signal EXC_BAD_ACCESS, Could Not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x000000b7
0x8fe11179 in __dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkContextE ()
In 50% of the starts it runs and the other times it returns the above error.