Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - KO Myung-Hun

Pages: [1] 2 3
1
Networking / Re: Updated Samba Client
« on: August 12, 2024, 02:06:06 pm »
Any reason to omit socket dir part such as lp_ncalrpc_dir() and socket_dir?

And in

Code: [Select]
diff --git a/source3/rpc_client/local_np.c b/source3/rpc_client/local_np.c
index 791ded99a..e8f97f127 100644
--- a/source3/rpc_client/local_np.c
+++ b/source3/rpc_client/local_np.c
@@ -555,8 +555,13 @@ struct tevent_req *local_np_connect_send(
  return tevent_req_post(req, ev);
  }
 
+#ifndef __OS2__
+ state->socketpath = talloc_asprintf(
+ state, "\\socket\\np\\%s", lower_case_pipename);
+#else
  state->socketpath = talloc_asprintf(
  state, "%s/np/%s", socket_dir, lower_case_pipename);
+#endif
  if (tevent_req_nomem(state->socketpath, req)) {
  return tevent_req_post(req, ev);
  }

I think, #ifndef is a typo. It should be #ifdef, right ?

2
Programming / Re: GCC - updates
« on: August 11, 2024, 01:28:40 pm »
I think gcc_assert() is intentional to prohibit to use `%b' and/or `%B' in linker command. The comment is for gcc_assert() line.

In future, it would be better to drop to use `%b' on OS/2, too.

`a.exe' vs `name.exe' is not the show stopper.

Thanks!

3
Networking / Re: Updated Samba Client
« on: August 11, 2024, 01:24:12 pm »
Hi/2.

I suggest to check sun_path which should start with `\socket\'. In case of

  https://github.com/psmedley/samba-os2/blob/samba-os2-4.19.x/source3/lib/util_sock.c#L930

it processes properly.

However,

  https://github.com/psmedley/samba-os2/blob/samba-os2-4.19.x/source3/rpc_client/local_np.c#L558

and

  https://github.com/psmedley/samba-os2/blob/samba-os2-4.19.x/source3/rpc_client/cli_pipe.c#L2976

do not.

These are the result which I've searched with `printf', so I might miss any other parts.

4
Programming / Re: GCC - updates
« on: August 07, 2024, 04:27:15 pm »
Hi/2.

I've fixed and attached the patch.

This is based on 13.3.0. But I think there will be no problem to apply to 14.2.0 tree.

Thanks!

5
Programming / Re: GCC - updates
« on: August 03, 2024, 04:38:39 pm »
This has passed my regression test.

Thanks a lot!

6
Programming / Re: GCC - updates
« on: July 21, 2024, 01:38:54 pm »
If anyone is feeling brave :)

https://smedley.id.au/tmp/binutils-2.42-os2-20240720.zip

add \binutils\lib to libpath & \binutils\bin to path to test....

I'm trying and have no problems so far.

Thanks!

7
General Discussion / Re: gmail validation is not supported ?
« on: July 16, 2024, 02:09:53 am »
I've confirmed. Thanks!

8
Hi/2.

You can append `asm("variable_name")' to a variable declaration like:

Quote
__attribute__ ((dllexport)) extern const char *NdpTypes[] asm("NdpTypes");

You can use `__asm__' instead of `asm'.

For details, see http://trac.netlabs.org/libc/wiki/Faq#Howtodeclareavariablesoitwontgetanunderscore and https://gcc.gnu.org/onlinedocs/gcc/Asm-Labels.html.

9
General Discussion / Re: gmail validation is not supported ?
« on: July 14, 2024, 03:24:37 pm »
I want to change my email to [komh78 at gmail.com].

However, if I try to change on OS2 World, I cannot login because my new email has not been validated. I cannot receive any emails from OS2 World.

Anyway, if you change my email to [komh78 at gmail.com] it would be grateful.

In addition, it would be better that I can receive emails from OS2 World to gmail.

Thanks!


10
General Discussion / gmail validation is not supported ?
« on: July 13, 2024, 04:40:04 pm »
Hi/2.

I'm trying to my email of OS2World to gmail. But I could not receive validation email from OS2World.

OTOH, I could receive validation email to other email address than gmail.

OS2World does not support Google gmail ? I could not find validation emails in SPAM, too.

11
Programming / Re: GCC - updates
« on: July 12, 2024, 02:08:23 pm »
At the beginning, ctype.cpp had no problems with gcc v14.1.0, but with gcc v13.3.0 only.

For both gcc v14.1.0-20240712 and v13.3.0-20240712

They cause SIGSEGV when executing `exception_ptr.exe'.

Quote
g++ -std=c++11 -c -o cxx11/exception_ptr.o cxx11/exception_ptr.cpp
g++  -o cxx11/exception_ptr.exe cxx11/exception_ptr.o
./cxx11/exception_ptr.exe > /dev/null

Killed by SIGSEGV
pid=0x00e2 ppid=0x00e1 tid=0x0001 slot=0x00ad pri=0x0200 mc=0x0001 ps=0x0010
F:\LANG\WORK\TEST\GCCTEST\CXX11\EXCEPTION_PTR.EXE
cs:eip=0000:00000000      ss:esp=0000:00000000      ebp=d003ffff
 ds=021fff8c      es=0000      fs=0000      gs=0000     efl=00000000
eax=021ff70c ebx=021ff730 ecx=00000053 edx=000a3cb3 edi=021ff6f8 esi=1c029d48

I attach .trp file for this.

And SIGABRT.

Quote
Assertion failed: !"Dead lock" || mutex->recursive || ulCount == 1, file
../.././libgcc/gthr-os2.c, line 93

Killed by SIGABRT
pid=0x00e2 ppid=0x00e1 tid=0x0001 slot=0x00ad pri=0x0200 mc=0x0002 ps=0x0017
F:\LANG\WORK\TEST\GCCTEST\CXX11\EXCEPTION_PTR.EXE

12
Programming / Re: GCC - updates
« on: July 12, 2024, 08:02:19 am »
Quote
oops gcc-14.1.0-os2-20240711.zip is there now

GCC 14.1.0 - please retest with latest  drop

I've downloaded and tested it, but it has no differences.

Quote
GCC 13.3.0 -  suspect you need to manually add the libs with those symbols - the solution is probably to generate a stdcppxx.dll instead of shipping a static lib...

I had tested without `-static-libgcc', and failed due to 'undefined symbols'. However, if it is given, it has the same results as 14.1.0.

I've investigated further more, and found that `gcc1.dll' does not have any export entry. As a resut, `libgcc_so_d.a' has no import entries at all. This was the cause.

13
Programming / Re: GCC - updates
« on: July 11, 2024, 08:34:16 am »
Hi/2.

For
Quote
Working debug with 14.1.0  (with a hack still in place):  https://smedley.id.au/tmp/gcc-14.1.0-os2-20240711.zip

404 not found error.

For
Quote
even lighter tested GCC 14.1.0 at https://smedley.id.au/tmp/gcc-14.1.0-os2-20240709.zip

1. 'a.exe' is generated unless -o is given.

2. SIGABRT because of C++ exceptions.
Quote
terminate called after throwing an instance of 'std::out_of_range'
terminate called recursively
Testcases are https://github.com/komh/gcctest/blob/master/xcpt.cpp, https://github.com/komh/gcctest/blob/master/cxx11/exception_ptr.cpp.

For
Quote
VERY lightly tested - but early build of GCC 13.3.0 is at https://smedley.id.au/tmp/gcc-13.3.0-os2-20240709.zip

1. 'a.exe' is generated unless `-o' is given.

2. Some symbols are missing:
Quote
g++  -o ctype.exe ctype.o
../../.././libstdc++-v3/libsupc++/eh_personality.cc:457 (g:/usr/local1330/lib/libstdc++.a()): Undefined symbol __Unwind_GetIPInfo referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:157 (g:/usr/local1330/lib/libstdc++.a(guard.o)): Undefined symbol ___gthread_os2_mutex_lock referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:261 (g:/usr/local1330/lib/libstdc++.a(guard.o)): Undefined symbol ___gthread_os2_cond_wait_recursive referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:169 (g:/usr/local1330/lib/libstdc++.a(guard.o)): Undefined symbol ___gthread_os2_mutex_unlock referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:169 (g:/usr/local1330/lib/libstdc++.a(guard.o)): Undefined symbol ___gthread_os2_mutex_unlock referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:157 (g:/usr/local1330/lib/libstdc++.a(guard.o)): Undefined symbol ___gthread_os2_mutex_lock referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:248 (g:/usr/local1330/lib/libstdc++.a(guard.o)): Undefined symbol ___gthread_os2_cond_broadcast referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:169 (g:/usr/local1330/lib/libstdc++.a(guard.o)): Undefined symbol ___gthread_os2_mutex_unlock referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:157 (g:/usr/local1330/lib/libstdc++.a(guard.o)): Undefined symbol ___gthread_os2_mutex_lock referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:248 (g:/usr/local1330/lib/libstdc++.a(guard.o)): Undefined symbol ___gthread_os2_cond_broadcast referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:169 (g:/usr/local1330/lib/libstdc++.a(guard.o)): Undefined symbol ___gthread_os2_mutex_unlock referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:139 (g:/usr/local1330/lib/libstdc++.a(locale.o)): Undefined symbol ___gthread_os2_mutex_unlock referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:127 (g:/usr/local1330/lib/libstdc++.a(locale.o)): Undefined symbol ___gthread_os2_mutex_lock referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:139 (g:/usr/local1330/lib/libstdc++.a(locale.o)): Undefined symbol ___gthread_os2_mutex_unlock referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:139 (g:/usr/local1330/lib/libstdc++.a(locale_init.o)): Undefined symbol ___gthread_os2_mutex_unlock referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:127 (g:/usr/local1330/lib/libstdc++.a(locale_init.o)): Undefined symbol ___gthread_os2_mutex_lock referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:139 (g:/usr/local1330/lib/libstdc++.a(locale_init.o)): Undefined symbol ___gthread_os2_mutex_unlock referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:127 (g:/usr/local1330/lib/libstdc++.a(locale_init.o)): Undefined symbol ___gthread_os2_mutex_lock referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:139 (g:/usr/local1330/lib/libstdc++.a(locale_init.o)): Undefined symbol ___gthread_os2_mutex_unlock referenced from text segment
U:/dev/gcc-os2-13.x/libstdc++-v3/include/bits/locale_facets_nonio.tcc:601 (g:/usr/local1330/lib/libstdc++.a()): Undefined symbol ___chkstk_ms referenced from text segment
U:/dev/gcc-os2-13.x/libstdc++-v3/include/bits/locale_facets_nonio.tcc:610 (g:/usr/local1330/lib/libstdc++.a()): Undefined symbol ___chkstk_ms referenced from text segment
U:/dev/gcc-os2-13.x/libstdc++-v3/include/bits/locale_facets_nonio.tcc:1095 (g:/usr/local1330/lib/libstdc++.a()): Undefined symbol ___chkstk_ms referenced from text segment
U:/dev/gcc-os2-13.x/libstdc++-v3/include/bits/locale_facets_nonio.tcc:1256 (g:/usr/local1330/lib/libstdc++.a()): Undefined symbol ___chkstk_ms referenced from text segment
U:/dev/gcc-os2-13.x/libstdc++-v3/include/bits/locale_facets_nonio.tcc:1277 (g:/usr/local1330/lib/libstdc++.a()): Undefined symbol ___chkstk_ms referenced from text segment
U:/dev/gcc-os2-13.x/libstdc++-v3/include/bits/locale_facets_nonio.tcc:601 (g:/usr/local1330/lib/libstdc++.a()): Undefined symbol ___chkstk_ms referenced from text segment
U:/dev/gcc-os2-13.x/libstdc++-v3/include/bits/locale_facets_nonio.tcc:610 (g:/usr/local1330/lib/libstdc++.a()): Undefined symbol ___chkstk_ms referenced from text segment
U:/dev/gcc-os2-13.x/libstdc++-v3/include/bits/locale_facets_nonio.tcc:1095 (g:/usr/local1330/lib/libstdc++.a()): Undefined symbol ___chkstk_ms referenced from text segment
U:/dev/gcc-os2-13.x/libstdc++-v3/include/bits/locale_facets_nonio.tcc:1256 (g:/usr/local1330/lib/libstdc++.a()): Undefined symbol ___chkstk_ms referenced from text segment
U:/dev/gcc-os2-13.x/libstdc++-v3/include/bits/locale_facets_nonio.tcc:0 (g:/usr/local1330/lib/libstdc++.a()): More undefined symbol ___chkstk_ms refs follow
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:127 (g:/usr/local1330/lib/libstdc++.a(eh_alloc.o)): Undefined symbol ___gthread_os2_mutex_lock referenced from text segment
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:0 (g:/usr/local1330/lib/libstdc++.a(eh_alloc.o)): More undefined symbol ___gthread_os2_mutex_unlock refs follow
U:/dev/gcc-os2-13.x/i686-pc-os2-emx/libstdc++-v3/include/i686-pc-os2-emx/bits/gthr-default.h:127 (g:/usr/local1330/lib/libstdc++.a(eh_alloc.o)): Undefined symbol ___gthread_os2_mutex_lock referenced from text segment
A testcase is https://github.com/komh/gcctest/blob/master/ctype.cpp. However, this error occurs with any other testcases with g++, too.

Thanks a lot!

14
Programming / Re: GCC - updates
« on: June 21, 2024, 03:41:09 pm »
First of all, thanks a lot!

I've done regression test with my own test suites(https://github.com/komh/gcctest). This release passed all tests but it still generates `a.exe'.

Any plan to fix this problem ?

15
Programming / Re: Strange autoconf / autoreconf / configure behavior
« on: June 21, 2024, 03:28:34 pm »
I hope your reinstallation helpful.

Pages: [1] 2 3