**** BEGIN LOGGING AT Sat Nov 20 02:59:56 2021 Nov 20 03:39:21 It works for me. Even I do not have modem Nov 20 08:13:55 well, echo "at+cfun=0"| pnatd - no need for nifty python. or simply pnatd; type "at+cfun=0" then close terminal or try ^C Nov 20 08:15:10 I'm not sure a stop sscd && stop csd is really useful. Basically best bet would be flight-mode Nov 20 08:15:23 rather tablet-mode Nov 20 08:18:16 [5 Nov 2021 19:25:38] you killed your DMM or your N900. The circuitry in N900 as well as the circuitry in a legit Nokia BL-5J battery forbids charging to anything >4.3V Nov 20 08:19:05 *sigh* Nov 20 08:20:38 not sure if ... Nov 20 08:21:04 ...maybe that's the problem? Nov 20 08:22:18 sicelo: what tells zzztop? Nov 20 11:22:46 anyone had a problem with gcc10 and ovewriting functions? Nov 20 12:31:33 KotCzarny: you mean where gcc fixed its linkage bug that lots of code was making use of? Nov 20 12:33:01 gcc used to allow multiple compilation units to declare the same symbol, without using extern. Nov 20 12:34:06 https://gcc.gnu.org/gcc-10/porting_to.html#common Nov 20 12:39:25 -fcommon fixed my problem Nov 20 12:39:51 thing is, i'm overwriting funcion name depending on things Nov 20 12:39:56 *function Nov 20 12:40:09 and sometimes it got proper address and sometimes it was null Nov 20 12:41:10 with -fno-common default in gcc10 it was kind of random behaviour Nov 20 12:42:14 how do i declare function extern ? Nov 20 12:42:27 its not about variable, but function Nov 20 12:44:52 Hmm.. Presumably you'd be getting a linkage error when not using -fcommon, rather than getting some random behaviour. Nov 20 12:45:04 no, it linked ok Nov 20 12:45:28 just was incosistent behaviour, depending which function called that overloaded function Nov 20 12:45:39 (overloaded is not the right word but eh) Nov 20 12:46:03 in particular example: Nov 20 12:46:04 void (*oscp_s_seek)(int a); Nov 20 12:46:20 Okay, that's not a function. It's a pointer to a function. Nov 20 12:46:28 then i'm setting address of that function Nov 20 12:46:47 and when called, sometime function is set properly, sometimes a null Nov 20 12:47:26 Right, so only one compilation unit should have what you wrote above. The other compilation units should declare it extern. Nov 20 12:47:40 how do i declare function extern? Nov 20 12:47:44 extern void (*oscp_s_seek)(int a); Nov 20 12:48:00 and no, i'm not redefining it anywhere Nov 20 12:48:09 just set during initialization of submodule Nov 20 12:49:05 i'm doing that trick to avoid having bazillion of if/elses everywhere in the code Nov 20 12:50:40 and no, i'm not defining/redefining oscp_s_seek anywhere else Nov 20 12:50:47 just set the pointer during init Nov 20 12:51:11 Each compilation unit that declares it using `void (*oscp_s_seek)(int a);` is trying to declare another variable. Nov 20 12:51:34 i'm declaring it only in oscp-slave.c Nov 20 12:51:50 but you want them all to refer to the same variable, so it should only be declared like that in one compilation unit, and the other compilation units should just have it as an extern. Nov 20 12:52:04 unless .h declarations matter Nov 20 12:52:41 In the .h file you should probably have it as extern. Nov 20 12:53:29 in every .h file i saw functions without extern, although those were normal functions, not declared as (*name) Nov 20 12:53:32 compilation units that import the .h file can still read/write to that function pointer variable, it's just that the variable is only created in one compilation unit, probably in the .c file. Nov 20 12:53:48 Right, it's different for functions. What you have is a variable, not a function. Nov 20 12:54:26 (particularly, a variable that stores a pointer to a function) Nov 20 12:59:02 lets see if it compiles/works with extern Nov 20 13:08:18 interesting Nov 20 13:08:36 adding extern indeed fixed the symbol visibility/sharing Nov 20 13:08:51 now i have to rewrite my .h generator, heh Nov 20 13:10:24 it's just a thing that i wrote .h wrong for all those years Nov 20 13:10:34 (and so everyone else) Nov 20 13:25:13 KotCzarny: are you still withholding the source code? Nov 20 13:25:19 nope Nov 20 13:26:32 couldn't find the VCS repo Nov 20 13:27:04 there is no vcs of any kind Nov 20 13:27:14 just an aur package Nov 20 13:40:51 :-) Nov 20 13:40:57 nice! Nov 20 13:44:33 absolutely disgusting **** ENDING LOGGING AT Sun Nov 21 02:59:57 2021