Dario Niedermann | 14 May 17:53 2015
Picon

[LINUX] HasTIRPCLib should be documented, but...

Hello! I recently built CDE 2.2.3 on Slackware 14.0 (i686).

Noticing that libtirpc is among the requirements, I thought what follows
could be of interest and might need to be documented and/or tested.

IME, if symbol HasTIRPCLib is not defined (assigned 1 or YES) in
'./config/cf/host.def' (or in 'site.def', same path), the dtcm build
will fail with the following error:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../exports/lib/libcsa.so: undefined reference to `registerrpc'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

HOWEVER, if I do #define HasTIRPCLib, then the resulting CDE build won't
be able to connect to ToolTalk, will abort at startup, returning this
error in ~/.dt/errorlog :

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*** ERROR(4): Dtwm: PID 1242: Tue May 12 21:24:25 2015
"Could not connect to ToolTalk:
TT_ERR_NOMP	No ttsession process is running, probably because tt_open() has not been called yet. If this
code is returned from tt_open() it means ttsession could not be started, which generally means ToolTalk
is not installed on this system.
"
*** [330]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Might the error be due to the fact that I don't have inetd installed?
More testing is in order... Anyway, now I have installed a build with
HasTIRPCLib undefined over a previous build that had it defined. So the
(Continue reading)

Jon Trulson | 10 May 01:52 2015

CDE 2.2.3 released

CDE 2.2.3 has been tagged and released.

Thanks to everybody who contributed to this release!

Here is the blurb from the HISTORY file:

# 2.2.3 05/09/2015

This release incorporates several hundred fixes identified by Coverity
scans and patches supplied by users.  In addition,
OpenIndiana/OpenSolaris support was significantly enhanced thanks to
Ulrich Wilkens, and a few hundred compiler warnings were squashed.

There is also a new default CDE logo :)

Here is the shortlog:

Edmond ORIGNAC (1):
       Fix dtprintinfo parser

Isaac Dunham (1):
       contrib/rc/linux/dtlogin: Make the init script work.

Johannes von Rotz (1):
       Let "make World" run through on OpenBSD

Jon Trulson (63):
       contrib/rc/freebsd: Add FreeBSD start script from Douglas Carmichael
       Add new Dtlogo from Jeff Pierquet.  Original renamed to TOGDtlogo.pm
       dtmail: MotifCmds.C: NULL is not False
(Continue reading)

Ulrich Wilkens | 9 May 01:58 2015
Picon

[PATCH] Remove warnings on Linux with glibc 2.20

And here's the last one:

If CDE is built on linux systems with at least glibc 2.20
a lot of new warnings are issued. This patch avoids them.

Regards, Ulrich

--

-- 
Ulrich Wilkens
Email: mail@...

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@...
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
Ulrich Wilkens | 9 May 01:48 2015
Picon

[PATCH] Fix broken build on OpenBSD


This one adds some missing includes of stdint.h.
Now CDE builds again on OpenBSD, also on older versions.

--

-- 
Ulrich Wilkens
Email: mail@...

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@...
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
Ulrich Wilkens | 9 May 01:15 2015
Picon

[PATCH] Support for new Solaris / OpenIndiana versions

Hello,

I've some patches for the upcoming CDE release. It's not much, have
been too busy in my job.

This one allows to build CDE on the newest Solaris version 11.2 for
both x86 and sparc. And it allows to build on OpenIndiana Hipster
(x86 only).

--

-- 
Ulrich Wilkens
Email: mail@...

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@...
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
Stuart Brady | 5 May 10:53 2015
Picon

[PATCH] DtTerm: fix formatted text in history buffer

Formatted text currently gets corrupted by DtTerm when copied into its
history buffer.

As soon as a line of text is copied into the history, the text of each
segment of formatted text is altered so that it contains the text from
the start of the line.  For example:

    echo -e '\e[1mbold\e[m \e[4munderlined\e[m'

When the text has scrolled off the screen, scrolling back to it reveals:

    boldbbold under

This is fixed by adding the calls to _DtTermPrimBufferGetCharacterPointer
that were missing which would update the buffer pointer when inserting
text into the history buffer.
---
 cde/lib/DtTerm/TermPrim/TermPrimRender.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/cde/lib/DtTerm/TermPrim/TermPrimRender.c b/cde/lib/DtTerm/TermPrim/TermPrimRender.c
index 3f250f0..9582795 100644
--- a/cde/lib/DtTerm/TermPrim/TermPrimRender.c
+++ b/cde/lib/DtTerm/TermPrim/TermPrimRender.c
 <at>  <at>  -854,6 +854,9  <at>  <at>  _DtTermPrimFillScreenGap(Widget w)
 					    eCol, eIndex, eValues[eIndex]);
 				    }

+				    c1 = _DtTermPrimBufferGetCharacterPointer(
+					    tBuffer, i1, eCol);
(Continue reading)

Jon Trulson | 30 Apr 01:35 2015

Time for another release?

Hi, it's been awhile and I think we are overdue for another release.

There have been quite a few fixes and enhancments (initial open
solaris support).  I had hoped to get more coverity fixes in, but
$dayjob isn't making that likely in the short term.

I would propose a release of 2.2.3 on, or about the weekend of May
9th.

If anyone has some outstanding patches they want merged, please send
them along before then.

Thanks!

--

-- 
Jon Trulson

"Don't believe everything you read on the internet."
    --Abraham Lincoln

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
Pouar | 26 Apr 02:58 2015
Picon

Re: problems when trying to run in FreeBSD 10.1

On 04/25/2015 05:32 PM, Scot Jenkins wrote:
Pouar <thepouar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I get the following compile error if libiconv is installed (which I need) Session.C:1661:18: error: no matching function for call to 'libiconv' if ((ret = iconv(cd, &ip, &ileft, &op, &oleft)) == (size_t) -1) { I managed to work around it by moving /usr/local/include/iconv.h, but then it complained about invalid characters when building programs/localized which I worked around by only building the C locale which got it to compile, but then ttsession segfaulted. I've attached ~/.dt/startlog and a backtrace from gdb to this email from the segfault
I ran into a similar error on the same line when compiling the source tarball cde-src-2.2.2.tar.gz on FreeBSD 9.3 i386 32-bit using the OS stock gcc 4.2.1 C/C++ compilers. Session.C: In member function 'int DtMail::Session::csConvert(char**, long unsigned int&, int, char*, char*)': Session.C:1661: error: invalid conversion from 'const char**' to 'char**' Session.C:1661: error: initializing argument 2 of 'size_t libiconv(void*, char**, size_t*, char**, size_t*)' *** [Session.o] Error code 1 I also tried the latest git version of CDE source, build died at the same spot with the same error. A web search on the error message brought me here: http://stackoverflow.com/questions/20984220/invalid-conversion-from-const-char-to-char I changed line 1661 in $BUILDDIR/cde-2.2.2/programs/dtmail/libDtMail/Common/Session.C to this (line number display in left margin): 1661 if ((ret = iconv(cd, const_cast<char**>(&ip), &ileft, &op, &oleft) ) == (size_t) -1) { This "casts away the const" according to Stroustroup 3rd edition: section 10.2.7.1 and 15.4.2.1 Adding the const_cast<char**> and ()'s around &ip allowed Session.C to compile. CDE continued building but soon failed with the same error on line 1073 of $BUILDDIR/cde-2.2.2/programs/dtmail/libDtMail/RFC/RFCBodyPart.C Again, same fix (line number displayed in left margin): 1073 ret = iconv(cd, const_cast<char**>(&ip), &ileft, &op, &oleft); After that CDE built successfully. I've been using it since last night and everything seems to work OK so far. I'm using binary packages for xorg, motif, etc. I have this version of iconv package installed: libiconv-1.14_8 if it matters. I don't know if my hack is the correct fix but it worked for me. Can someone more familiar with the code please tell me if this is the correct fix? If so, I'd be happy to submit patches. scot
Well that fixed the issue with iconv.h, there was also LC_ALL that was being set in ~/.profile that FreeBSD put there automatically which I took out which seemed to be causing the "invalid characters", now all that's left is the segfault
--
Pouar
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@...
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
Pouar | 25 Apr 19:01 2015
Picon

problems when trying to run in FreeBSD 10.1

I get the following compile error if libiconv is installed (which I need)

Session.C:1661:18: error: no matching function for call to 'libiconv'
      if ((ret = iconv(cd, &ip, &ileft, &op, &oleft)) == (size_t) -1) {

I managed to work around it by moving /usr/local/include/iconv.h, but then it complained about invalid characters when building programs/localized which I worked around by only building the C locale which got it to compile, but then ttsession segfaulted. I've attached ~/.dt/startlog and a backtrace from gdb to this email from the segfault

--
Pouar
#0  0x0000000800983eb8 in _Tt_new_ptr::operator= (this=0x7fffffffd558, x= <at> 0x10)
    at tt_new_ptr.C:88
#1  0x0000000000414a98 in _Tt_string_buf_ptr::operator= (this=0x7fffffffd558, 
    x= <at> 0x10) at tt_string.h:71
#2  0x0000000000414077 in _Tt_string::operator= (this=0x7fffffffd558, s= <at> 0x10)
    at tt_string.h:110
#3  0x0000000800953c13 in parse_Xdisplay_string (
    display=<value optimized out>, host= <at> 0x7fffffffd558, 
    svnum= <at> 0x7fffffffd540, hostname= <at> 0x7fffffffd550) at mp_desktop.C:420
#4  0x00000008009536b1 in _Tt_desktop::init (this=0x803408380, 
    dt_handle=<value optimized out>) at mp_desktop.C:128
#5  0x000000000042af08 in _Tt_s_session::s_init (this=0x803412100)
    at mp_s_session.C:192
#6  0x000000000041ea44 in _Tt_s_mp::s_init (this=0x80340a540) at mp_s_mp.C:134
#7  0x000000000040f0f6 in main (argc=2, argv=0x7fffffffe328) at mp_server.C:387
--- Sat Apr 25 11:58:43 CDT 2015
--- /usr/dt/bin/Xsession starting...
--- Xsession started by xinit
--- setting font path...
--- sourcing /home/pouar/.dtprofile...
--- sourcing /usr/dt/config/Xsession.d/0010.dtpaths...
--- sourcing /usr/dt/config/Xsession.d/0020.dtims...
--- sourcing /usr/dt/config/Xsession.d/0030.dttmpdir...
--- sourcing /usr/dt/config/Xsession.d/0060.dtsysenv...
--- starting /usr/dt/bin/dthello -file /usr/dt/copyright &
--- starting /usr/dt/bin/dtsearchpath -ksh
--- starting /usr/dt/bin/dtappgather &
--- execing /usr/dt/bin/dtsession ...
not execing /home/pouar/.profile (see /home/pouar/.dtprofile)
/usr/dt/bin/Xsession: line 659: 62576: Memory fault
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@...
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
Edmond Orignac | 16 Mar 21:42 2015
Picon

CUPS, locales and dtprintinfo

I have found a problem with dtprintinfo when using CUPS with a locale 
other than "C". If the locale is set to fr_FR.ISO8859-1 the CUPS lpq 
message "no entries" is translated into "aucune entrée" and if it is set 
to it_IT.ISO8859-1 the message "no entries" becomes "nessuna voce". The 
code
in programs/dtprintinfo/objects/PrintObj/ParseJobs.C (line 933)
will then fail to recognize that the print queue is empty and will
exit with the error message

*** STDERR(1): (/usr/dt/bin/dtexec) /usr/dt/bin/dtprintinfo: PID 4650: 
sam. mars 14 19:02:32 2015
Unexpected legend column: aucune != Rank
Unexpected legend column: entrée != Owner

i. e. the "aucune entrée" message is treated as the legend line in the 
lines 978 and following.

One possible workaround could be to set explicitly the environment to
LANG=C with a command "LANG=C lpq" in the lines 874 and 876.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
Isaac Dunham | 9 Mar 04:29 2015
Picon

Re: Where to add new filetypes?

On Sun, Mar 08, 2015 at 12:37:48PM +0100, Edmond Orignac wrote:
> I have a file with datatypes for PDF, DJVU, wordprocessor and spreadsheets
> formats, multimedia formats, compressed formats (bzip, gzip, zoo, pkzip,
> winrar, lzma) and some programming languages.
> 
> I have not tried to generate a source file for it, but it could be included
> in contrib/

Ah, that's almost all that I wanted, and more besides.

So I've hacked up a little tool that will convert it into the source.
Said tool is rather clumsy; it *must* be invoked as:
 nlsize file.dt <NUMBER>

and it will generate temp.dt.src and temp.dt.tmsg,
overwriting them if they exist.
<NUMBER> is whereever you want the index number for localization to start.
There is of course no sanity checking; it calls
fopen(argv[1]); atoi(argv[2]);
and doesn't check them. Also note the hardcoded output filenames.
It also assumes that the input file is valid, and that all lines are under
4096 chars long.

But here it is, along with the output from
nlsize extra_datatypes.dt 4000

You may treat it as public domain, via CC0.

> The associated actions are defined in separate files. They can be found
> from my homepage at:
> 
> http://edmond.orignac.pagesperso-orange.fr/appconfig.tgz
> 
> I also have a set of XPM icons (*.l.pm, *.m.pm, *.s.pm, *.t.pm) for the
> various OpenOffice formats obtained by converting Windows .ico files created
> by Lee Corbin in 2002 for OpenOffice 2.0 that might be used in CDE to
> support Openoffice files. If you are interested to use them, I may add a tgz
> file to my homepage.

I haven't been using OO/LO recently, though if I had I'd be
interested.

Thank you,
Isaac Dunham

Attachment (cde-data.tgz): application/x-gtar-compressed, 7629 bytes
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@...
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Gmane