LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-11-2018, 09:45 AM   #1366
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,434

Rep: Reputation: Disabled

Its also a sandbox violation, but this is not restricted to current.

Code:
---------------------------------------------
First listen to the white noise input signal:
---------------------------------------------
sndfile-play ../snd/noise.wav
Playing ../snd/noise.wav
 * ACCESS DENIED:  open_wr:      /dev/snd/controlC0
 * ACCESS DENIED:  open_wr:      /dev/snd/controlC0
ALSA lib confmisc.c:674:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:3559:(snd_config_hooks_call) function snd_config_hook_load_for_all_cards returned error: Permission denied
 * ACCESS DENIED:  open_wr:      /dev/snd/controlC0
 * ACCESS DENIED:  open_wr:      /dev/snd/controlC0
ALSA lib confmisc.c:674:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: Permission denied
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: Permission denied
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: Permission denied
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: Permission denied
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.default
cannot open audio device "default" (Permission denied)
-------------------------
Compare to plugin output.
-------------------------
Should be a noise band around 6000Hz, repeated quietly after 1s.
sndfile-play /tmp/test.wav
Playing /tmp/test.wav
 * ACCESS DENIED:  open_wr:      /dev/snd/controlC0
 * ACCESS DENIED:  open_wr:      /dev/snd/controlC0
ALSA lib confmisc.c:674:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:3559:(snd_config_hooks_call) function snd_config_hook_load_for_all_cards returned error: Permission denied
 * ACCESS DENIED:  open_wr:      /dev/snd/controlC0
 * ACCESS DENIED:  open_wr:      /dev/snd/controlC0
ALSA lib confmisc.c:674:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: Permission denied
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: Permission denied
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: Permission denied
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: Permission denied
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.default
cannot open audio device "default" (Permission denied)
Test complete.
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/tmp/sandbox-24100.log"
 * 
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: sndfile-play ../snd/noise.wav 

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: sndfile-play ../snd/noise.wav 

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: sndfile-play ../snd/noise.wav 

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: sndfile-play ../snd/noise.wav 

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: sndfile-play /tmp/test.wav 

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: sndfile-play /tmp/test.wav 

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: sndfile-play /tmp/test.wav 

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: sndfile-play /tmp/test.wav 
 * --------------------------------------------------------------------------------
I think both issues can be worked around by changing:

Code:
make \
to:
Code:
make targets \
But this is probably should be done in the SBo repo and not your current repo.

Edit: I've suggested the fix to both the maintainer and the mailing list.

Last edited by orbea; 08-11-2018 at 09:55 AM.
 
Old 08-11-2018, 12:16 PM   #1367
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 472

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
FlightGear : finally got it working by recompiling all the packages.

Thanks to Ponce.
 
Old 08-12-2018, 03:09 PM   #1368
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 403

Rep: Reputation: 133Reputation: 133
veusz-3.0.1 could not be built originally in my box, but I discovered the reason and I share it here in case it would help someone else.

The problem: numpy complained that libgfortran.so.4 could not be found.

Rebuilding numpy initially was to no avail, that is, even after rebuilding numpy it was not possible to build veusz.

The culprit: old blas and lapack packages. Rebuilding blas and lapack, and then rebuilding numpy, solved the problem. After that veusz could be built without issues.
 
Old 08-12-2018, 08:21 PM   #1369
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,434

Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
upstream seems to haven't fixed it yet: until a patch for it surfaces I think it's fine (archlinux is doing the same since more than an year).
thanks for reporting!
mailutils now builds with the newest guile, here is the commit.

http://git.savannah.gnu.org/cgit/mai...06a811a506c8e0

Here is a patch, note I had to remove NEWS, .gitignore, and po/.gitignore from the diff before it would apply.

Code:
From b489f28373b6567fcace9160b506a811a506c8e0 Mon Sep 17 00:00:00 2001
From: Sergey Poznyakoff <gray@gnu.org.ua>
Date: Sat, 2 Jun 2018 12:09:54 +0200
Subject: Switch to Guile 2.2.0

* configure.ac" Set minimum supported Guile version to 2.2.0
* libmu_scm/mu_body.c: Rewrite.
* libmu_scm/mu_dbgport.c: Rewrite.
* libmu_scm/mu_mailbox.c: Update types.
* libmu_scm/mu_message.c: Likewise.
* libmu_scm/mu_mime.c: Likewise.
* libmu_scm/mu_port.c: Likewise.
---
 NEWS                   |   4 +-
 configure.ac           |   2 +-
 libmu_scm/mu_body.c    |   2 +-
 libmu_scm/mu_dbgport.c |  74 ++++------------
 libmu_scm/mu_mailbox.c |   2 +-
 libmu_scm/mu_message.c |   2 +-
 libmu_scm/mu_mime.c    |   2 +-
 libmu_scm/mu_port.c    | 230 ++++++++-----------------------------------------
 10 files changed, 70 insertions(+), 258 deletions(-)

diff --git a/configure.ac b/configure.ac
index 9351f13..a21a156 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1160,7 +1160,7 @@ AC_SUBST([GUILE_BINDIR])
 AC_SUBST([LIBMU_SCM])
 AC_SUBST([LIBMU_SCM_DEPS])
 AC_SUBST([MU_GUILE_SIEVE_MOD_DIR])
-GINT_INIT([gint],[1.8 with-guile],
+GINT_INIT([gint],[2.2.0 with-guile],
 	  [useguile=yes
  	   AC_DEFINE([WITH_GUILE],1,[Enable Guile support])
            GUILE_BINDIR=`guile-config info bindir`
diff --git a/libmu_scm/mu_body.c b/libmu_scm/mu_body.c
index c54fabb..fa4652d 100644
--- a/libmu_scm/mu_body.c
+++ b/libmu_scm/mu_body.c
@@ -40,7 +40,7 @@ mu_scm_body_mark (SCM body_smob)
   return mbp->msg;
 }
 
-static scm_sizet
+static size_t
 mu_scm_body_free (SCM body_smob)
 {
   struct mu_body *mbp = (struct mu_body *) SCM_CDR (body_smob);
diff --git a/libmu_scm/mu_dbgport.c b/libmu_scm/mu_dbgport.c
index f4a0032..304714c 100644
--- a/libmu_scm/mu_dbgport.c
+++ b/libmu_scm/mu_dbgport.c
@@ -23,81 +23,45 @@ struct _mu_debug_port
   int level;
 };
 
-static long     scm_tc16_mu_debug_port;
+static scm_t_port_type *scm_mu_debug_port_type;
 
 SCM
 mu_scm_make_debug_port (int level)
 {
   struct _mu_debug_port *dp;
-  SCM             port;
-  scm_port       *pt;
   mu_stream_t str;
   
   if (mu_dbgstream_create (&str, level))
     return SCM_BOOL_F;
-  dp = scm_gc_malloc (sizeof (struct _mu_debug_port), "mu-debug-port");
+
+  dp = scm_gc_typed_calloc (struct _mu_debug_port);
   dp->level = level;
   dp->stream = str;
-  port = scm_cell (scm_tc16_mu_debug_port, 0);
-  pt = scm_add_to_port_table (port);
-  SCM_SETPTAB_ENTRY (port, pt);
-  pt->rw_random = 0;
-  SCM_SET_CELL_TYPE (port,
-		     (scm_tc16_mu_debug_port | SCM_OPN | SCM_WRTNG |
-		      SCM_BUF0));
-  SCM_SETSTREAM (port, dp);
-  return port;
+  return scm_c_make_port (scm_mu_debug_port_type, SCM_WRTNG, (scm_t_bits) dp);
 }
 
 #define MU_DEBUG_PORT(x) ((struct _mu_debug_port *) SCM_STREAM (x))
 
-static SCM
-_mu_debug_port_mark (SCM port)
-{
-  return SCM_BOOL_F;
-}
-
 static void
-_mu_debug_port_flush (SCM port)
-{
-  /* struct _mu_debug_port *dp = MU_DEBUG_PORT (port); */
-
-  /* FIXME: */
-}
-
-static int
 _mu_debug_port_close (SCM port)
 {
   struct _mu_debug_port *dp = MU_DEBUG_PORT (port);
 
-  if (dp)
+  if (dp && dp->stream)
     {
-      _mu_debug_port_flush (port);
-      SCM_SETSTREAM (port, NULL);
-      scm_gc_free (dp, sizeof (struct _mu_debug_port), "mu-debug-port");
+      mu_stream_flush (dp->stream);
+      mu_stream_destroy (&dp->stream);
     }
-  return 0;
 }
 
-static scm_sizet
-_mu_debug_port_free (SCM port)
-{
-  _mu_debug_port_close (port);
-  return 0;
-}
-
-static int
-_mu_debug_port_fill_input (SCM port)
-{
-  return EOF;
-}
-
-static void
-_mu_debug_port_write (SCM port, const void *data, size_t size)
+static size_t
+_mu_debug_port_write (SCM port, SCM src, size_t start, size_t count)
 {
   struct _mu_debug_port *dp = MU_DEBUG_PORT (port);
 
-  mu_stream_write (dp->stream, data, size, NULL);
+  mu_stream_write (dp->stream, SCM_BYTEVECTOR_CONTENTS (src) + start, count,
+		   NULL);
+  return count;
 }
 
 static int
@@ -108,14 +72,12 @@ _mu_debug_port_print (SCM exp, SCM port, scm_print_state * pstate)
 }
 
 void
-mu_scm_debug_port_init ()
+mu_scm_debug_port_init (void)
 {
-  scm_tc16_mu_debug_port = scm_make_port_type ("mu-debug-port",
-					       _mu_debug_port_fill_input,
+  scm_mu_debug_port_type = scm_make_port_type ("mu-debug-port",
+					       NULL,
 					       _mu_debug_port_write);
-  scm_set_port_mark (scm_tc16_mu_debug_port, _mu_debug_port_mark);
-  scm_set_port_free (scm_tc16_mu_debug_port, _mu_debug_port_free);
-  scm_set_port_print (scm_tc16_mu_debug_port, _mu_debug_port_print);
-  scm_set_port_flush (scm_tc16_mu_debug_port, _mu_debug_port_flush);
-  scm_set_port_close (scm_tc16_mu_debug_port, _mu_debug_port_close);
+  scm_set_port_print (scm_mu_debug_port_type, _mu_debug_port_print);
+  scm_set_port_close (scm_mu_debug_port_type, _mu_debug_port_close);
+  scm_set_port_needs_close_on_gc (scm_mu_debug_port_type, 1);
 }
diff --git a/libmu_scm/mu_mailbox.c b/libmu_scm/mu_mailbox.c
index 4949fa2..68d1f68 100644
--- a/libmu_scm/mu_mailbox.c
+++ b/libmu_scm/mu_mailbox.c
@@ -37,7 +37,7 @@ mu_scm_mailbox_mark (SCM mailbox_smob)
   return SCM_BOOL_F;
 }
 
-static scm_sizet
+static size_t
 mu_scm_mailbox_free (SCM mailbox_smob)
 {
   struct mu_mailbox *mum = (struct mu_mailbox *) SCM_CDR (mailbox_smob);
diff --git a/libmu_scm/mu_message.c b/libmu_scm/mu_message.c
index 6208bde..ee77d6d 100644
--- a/libmu_scm/mu_message.c
+++ b/libmu_scm/mu_message.c
@@ -39,7 +39,7 @@ mu_scm_message_mark (SCM message_smob)
   return mum->mbox;
 }
 
-static scm_sizet
+static size_t
 mu_scm_message_free (SCM message_smob)
 {
   struct mu_message *mum = (struct mu_message *) SCM_CDR (message_smob);
diff --git a/libmu_scm/mu_mime.c b/libmu_scm/mu_mime.c
index 1cf34b1..2346d2c 100644
--- a/libmu_scm/mu_mime.c
+++ b/libmu_scm/mu_mime.c
@@ -35,7 +35,7 @@ mu_scm_mime_mark (SCM mime_smob)
   return mum->owner;
 }
 
-static scm_sizet
+static size_t
 mu_scm_mime_free (SCM mime_smob)
 {
   struct mu_mime *mum = (struct mu_mime *) SCM_CDR (mime_smob);
diff --git a/libmu_scm/mu_port.c b/libmu_scm/mu_port.c
index 702034e..f240420 100644
--- a/libmu_scm/mu_port.c
+++ b/libmu_scm/mu_port.c
@@ -29,227 +29,69 @@ struct mu_port
   SCM msg;                 /* Message the port belongs to */		
 };
 
-#define DEFAULT_BUF_SIZE 1024
 #define MU_PORT(x) ((struct mu_port *) SCM_STREAM (x))
 
-static void
-mu_port_alloc_buffer (SCM port, size_t read_size, size_t write_size)
-{
-  scm_port *pt = SCM_PTAB_ENTRY (port);
-  static char *s_mu_port_alloc_buffer = "mu_port_alloc_buffer";
-  
-  if (!read_size)
-    read_size = DEFAULT_BUF_SIZE;
-  if (!write_size)
-    write_size = DEFAULT_BUF_SIZE;
-
-  if (SCM_INPUT_PORT_P (port))
-    {
-      pt->read_buf = malloc (read_size);
-      if (pt->read_buf == NULL)
-	scm_memory_error (s_mu_port_alloc_buffer);
-      pt->read_pos = pt->read_end = pt->read_buf;
-      pt->read_buf_size = read_size;
-    }
-  else
-    {
-      pt->read_pos = pt->read_buf = pt->read_end = &pt->shortbuf;
-      pt->read_buf_size = 1;
-    }
-  
-  if (SCM_OUTPUT_PORT_P (port))
-    {
-      pt->write_buf = malloc (write_size);
-      if (pt->write_buf == NULL)
-	scm_memory_error (s_mu_port_alloc_buffer);
-      pt->write_pos = pt->write_buf;
-      pt->write_buf_size = write_size;
-      pt->write_end = pt->write_buf + pt->write_buf_size;
-    }
-  else
-    {
-      pt->write_buf = pt->write_pos = &pt->shortbuf;
-      pt->write_buf_size = 1;
-    }
-  
-  SCM_SET_CELL_WORD_0 (port, SCM_CELL_WORD_0 (port) & ~SCM_BUF0);
-}
-
-static long scm_tc16_smuport;
+static scm_t_port_type *scm_mu_port_type;
 
 SCM
 mu_port_make_from_stream (SCM msg, mu_stream_t stream, long mode)
 {
   struct mu_port *mp;
-  SCM port;
-  scm_port *pt;
-  int flags;
-  
-  mp = scm_gc_malloc (sizeof (struct mu_port), "mu-port");
+
+  mp = scm_gc_typed_calloc (struct mu_port);
   mp->msg = msg;
   mp->stream = stream;
-
-  port = scm_new_port_table_entry (scm_tc16_smuport | mode);
-  pt = SCM_PTAB_ENTRY (port);
-  mu_stream_get_flags (stream, &flags);
-  pt->rw_random = flags & MU_STREAM_SEEK;
-  SCM_SETSTREAM (port, mp);
-  mu_port_alloc_buffer (port, 0, 0);
-  /* FIXME:
-     SCM_PTAB_ENTRY (port)->file_name = "name";*/
-  return port;
-}
-
-static SCM
-mu_port_mark (SCM port)
-{
-  if (SCM_CELL_WORD_0 (port) & SCM_OPN)
-    {
-      struct mu_port *mp = MU_PORT (port);
-      return mp->msg;
-    }
-  return SCM_BOOL_F;
+  return scm_c_make_port (scm_mu_port_type, mode, (scm_t_bits) mp);
 }
 
 static void
-mu_port_flush (SCM port)
-{
-  struct mu_port *mp = MU_PORT (port);
-  scm_port *pt = SCM_PTAB_ENTRY (port);
-  int wrsize = pt->write_pos - pt->write_buf;
-  
-  if (wrsize)
-    {
-      int status = mu_stream_write (mp->stream, pt->write_buf, wrsize, NULL);
-      if (status)
- 	mu_scm_error ("mu_port_flush", status,
- 		      "Error writing to stream", SCM_BOOL_F);
-    }
-  pt->write_pos = pt->write_buf;
-  pt->rw_active = SCM_PORT_NEITHER;
-}
-
-static int
 mu_port_close (SCM port)
 {
   struct mu_port *mp = MU_PORT (port);
-  scm_port *pt = SCM_PTAB_ENTRY (port);
-
-  mu_port_flush (port);
-  mu_stream_close (mp->stream);
-  SCM_SETSTREAM (port, NULL);
-		
-  if (pt->read_buf != &pt->shortbuf)
-    free (pt->read_buf);
-  if (pt->write_buf != &pt->shortbuf)
-    free (pt->write_buf);
-  free (mp);
-  return 0;
-}
-
-static scm_sizet
-mu_port_free (SCM port)
-{
-  struct mu_port *mp = MU_PORT (port);
-  mu_stream_unref (mp->stream);
-  mu_port_close (port);
-  return 0;
+  mu_stream_destroy (&mp->stream);
 }
 
-static int
-mu_port_fill_input (SCM port)
+static size_t
+mu_port_read (SCM port, SCM dst, size_t start, size_t count)
 {
   struct mu_port *mp = MU_PORT (port);
-  scm_port *pt = SCM_PTAB_ENTRY (port);
-  size_t nread = 0;
   int status;
+  size_t nread;
   
-  status = mu_stream_read (mp->stream, (char*) pt->read_buf, pt->read_buf_size,
+  status = mu_stream_read (mp->stream,
+			   SCM_BYTEVECTOR_CONTENTS (dst) + start,
+			   count,
 			   &nread);
   if (status)
-    mu_scm_error ("mu_port_fill_input", status,
+    mu_scm_error ("mu_port_read", status,
 		  "Error reading from stream", SCM_BOOL_F);
-
-  if (nread == 0)
-    return EOF;
-
-  pt->read_pos = pt->read_buf;
-  pt->read_end = pt->read_buf + nread;
-  return *pt->read_buf;
+  return nread;
 }
-
-static void
-mu_port_write (SCM port, const void *data, size_t size)
-{
-  scm_port *pt = SCM_PTAB_ENTRY (port);
-  size_t remaining = size;
-  char *input = (char*) data;
   
-  while (remaining > 0)
-    {
-      int space = pt->write_end - pt->write_pos;
-      int write_len = (remaining > space) ? space : remaining;
-      
-      memcpy (pt->write_pos, input, write_len);
-      pt->write_pos += write_len;
-      remaining -= write_len;
-      input += write_len;
-      if (write_len == space)
-	mu_port_flush (port);
-    }
-}
-
-/* Perform the synchronisation required for switching from input to
-   output on the port.
-   Clear the read buffer and adjust the file position for unread bytes. */
-static void
-mu_port_end_input (SCM port, int offset)
+static size_t
+mu_port_write (SCM port, SCM src, size_t start, size_t count)
 {
   struct mu_port *mp = MU_PORT (port);
-  scm_port *pt = SCM_PTAB_ENTRY (port);
-  int delta = pt->read_end - pt->read_pos;
-  
-  offset += delta;
+  int status;
+  size_t nwrite;
 
-  if (offset > 0)
-    {
-      pt->read_pos = pt->read_end;
-      mu_stream_seek (mp->stream, - delta, MU_SEEK_CUR, NULL);
-    }
-  pt->rw_active = SCM_PORT_NEITHER;
+  status = mu_stream_write (mp->stream,
+			    SCM_BYTEVECTOR_CONTENTS (src) + start, count,
+			    &nwrite);
+  if (status)
+    mu_scm_error ("mu_port_read", status,
+		  "Error reading from stream", SCM_BOOL_F);
+  return nwrite;
 }
 
 static scm_t_off
 mu_port_seek (SCM port, scm_t_off offset, int whence)
 {
   struct mu_port *mp = MU_PORT (port);
-  scm_port *pt = SCM_PTAB_ENTRY (port);
-  int mwhence;
   mu_off_t pos;
   int status;
-  
-  if (pt->rw_active == SCM_PORT_WRITE)
-    {
-      mu_port_flush (port);
-    }
-  else if (pt->rw_active == SCM_PORT_READ)
-    {
-      scm_end_input (port);
-    }
-
-  switch (whence)
-    {
-    case SEEK_SET:
-      mwhence = MU_SEEK_SET;
-      break;
-    case SEEK_CUR:
-      mwhence = MU_SEEK_CUR;
-      break;
-    case SEEK_END:
-      mwhence = MU_SEEK_END;
-    }
 
-  status = mu_stream_seek (mp->stream, offset, mwhence, &pos);
+  status = mu_stream_seek (mp->stream, offset, whence, &pos);
   if (status)
     pos = -1;
   return (scm_t_off) pos;
@@ -262,7 +104,7 @@ mu_port_truncate (SCM port, mu_off_t length)
   int status;
   status = mu_stream_truncate (mp->stream, length);
   if (status)
-    mu_scm_error ("mu_stream_truncate", status,
+    mu_scm_error ("mu_port_truncate", status,
 		  "Error truncating stream", SCM_BOOL_F);
 }
   
@@ -290,17 +132,13 @@ mu_port_print (SCM exp, SCM port, scm_print_state *pstate)
 }
      
 void
-mu_scm_port_init ()
+mu_scm_port_init (void)
 {
-    scm_tc16_smuport = scm_make_port_type ("mu-port",
-					   mu_port_fill_input, mu_port_write);
-    scm_set_port_mark (scm_tc16_smuport, mu_port_mark);
-    scm_set_port_free (scm_tc16_smuport, mu_port_free);
-    scm_set_port_print (scm_tc16_smuport, mu_port_print);
-    scm_set_port_flush (scm_tc16_smuport, mu_port_flush);
-    scm_set_port_end_input (scm_tc16_smuport, mu_port_end_input);
-    scm_set_port_close (scm_tc16_smuport, mu_port_close);
-    scm_set_port_seek (scm_tc16_smuport, mu_port_seek);
-    scm_set_port_truncate (scm_tc16_smuport, mu_port_truncate);
-    /*    scm_set_port_input_waiting (scm_tc16_smuport, mu_port_input_waiting);*/
+    scm_mu_port_type = scm_make_port_type ("mu-port",
+					   mu_port_read, mu_port_write);
+    scm_set_port_print (scm_mu_port_type, mu_port_print);
+    scm_set_port_close (scm_mu_port_type, mu_port_close);
+    scm_set_port_needs_close_on_gc (scm_mu_port_type, 1);
+    scm_set_port_seek (scm_mu_port_type, mu_port_seek);
+    scm_set_port_truncate (scm_mu_port_type, mu_port_truncate);
 }
-- 
cgit v1.0-41-gc330
 
Old 08-18-2018, 04:14 AM   #1370
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 472

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
git-cola segfaults in sbopkg-14.2 and sbopkg-current?
 
Old 08-18-2018, 05:39 AM   #1371
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,480

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by orbea View Post
mailutils now builds with the newest guile, here is the commit.

http://git.savannah.gnu.org/cgit/mai...06a811a506c8e0

Here is a patch, note I had to remove NEWS, .gitignore, and po/.gitignore from the diff before it would apply.
sorry for the late reply (I read this while at the seaside and forgot to answer)...
in the end I opted for using a git snapshot: I just noted also that the SBo maintainer is the same of upstream

http://cgit.ponce.cc/slackbuilds/commit/?h=mailutils
 
1 members found this post helpful.
Old 08-18-2018, 05:46 AM   #1372
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,480

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nobodino View Post
git-cola segfaults in sbopkg-14.2 and sbopkg-current?
I just tested it on current and it doesn't segfaults here...
 
Old 08-18-2018, 08:15 AM   #1373
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 472

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
removed and rebuilt, it works now. Strange.
 
Old 08-19-2018, 12:10 AM   #1374
Lockywolf
Member
 
Registered: Jul 2007
Posts: 127

Rep: Reputation: 27
ntop?

Code:
make[4]: Leaving directory '/tmp/SBo/ntop-5.0.1'
gcc: error: netflowPlugin.o: No such file or directory
gcc: error: unrecognized command line option ‘-flat_namespace’; did you mean ‘-Wnamespaces’?
gcc: fatal error: no input files
compilation terminated.
make[3]: *** [Makefile:940: .libs/libnetflowPlugin.so] Error 1
make[3]: Leaving directory '/tmp/SBo/ntop-5.0.1/plugins'
make[2]: *** [Makefile:643: all-recursive] Error 1
make[2]: Leaving directory '/tmp/SBo/ntop-5.0.1/plugins'
make[1]: *** [Makefile:941: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/ntop-5.0.1'
make: *** [Makefile:596: all] Error 2
 
Old 08-19-2018, 01:57 AM   #1375
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,480

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Lockywolf View Post
ntop?

Code:
make[4]: Leaving directory '/tmp/SBo/ntop-5.0.1'
gcc: error: netflowPlugin.o: No such file or directory
gcc: error: unrecognized command line option ‘-flat_namespace’; did you mean ‘-Wnamespaces’?
gcc: fatal error: no input files
compilation terminated.
make[3]: *** [Makefile:940: .libs/libnetflowPlugin.so] Error 1
make[3]: Leaving directory '/tmp/SBo/ntop-5.0.1/plugins'
make[2]: *** [Makefile:643: all-recursive] Error 1
make[2]: Leaving directory '/tmp/SBo/ntop-5.0.1/plugins'
make[1]: *** [Makefile:941: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/ntop-5.0.1'
make: *** [Makefile:596: all] Error 2
I'm afraid you have to refer to the ntop upstream maintainers for this: looks like a completely different plugins/Makefile gets generated on current but I don't know why...
 
Old 09-04-2018, 05:10 AM   #1376
kgha
LQ Newbie
 
Registered: May 2018
Location: Sweden
Distribution: AlienBob's LiveSlak MATE
Posts: 25

Rep: Reputation: 23
FileZilla

FileZilla builds without errors, but when I try to launch it after install I get

Code:
bash-4.4$ filezilla
Reading locale option from /home/kgha/.config/filezilla/filezilla.xml
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1011,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1013,wx containers,compatible with 2.8).
Aborted
Same error when building with Willy S's script for 14.2 from Slackbuilds.org and Ponce's modified script for -current (I'm on -current)
 
Old 09-04-2018, 05:40 AM   #1377
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,480

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kgha View Post
FileZilla builds without errors, but when I try to launch it after install I get

Code:
bash-4.4$ filezilla
Reading locale option from /home/kgha/.config/filezilla/filezilla.xml
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1011,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1013,wx containers,compatible with 2.8).
Aborted
Same error when building with Willy S's script for 14.2 from Slackbuilds.org and Ponce's modified script for -current (I'm on -current)
you most probably should rebuild also all of its dependencies.
 
2 members found this post helpful.
Old 09-04-2018, 08:44 AM   #1378
kgha
LQ Newbie
 
Registered: May 2018
Location: Sweden
Distribution: AlienBob's LiveSlak MATE
Posts: 25

Rep: Reputation: 23
Quote:
Originally Posted by ponce View Post
you most probably should rebuild also all of its dependencies.
Thanks a lot, ponce :thumbup:
After rebuilding wxGTK3 everything worked.
 
Old 09-12-2018, 07:41 AM   #1379
giomat
LQ Newbie
 
Registered: Jul 2017
Posts: 27

Rep: Reputation: Disabled
acpi_call

some time ago i tried to build acpi_call on slackware -current.
The build failed due to an undefined copy_from_user method.
I found out on the acpi_call github issue tracker that the method declaration was moved from <asm/uaccess.h> to <linux/uaccess.h>.
The patch suggested there:

-#include <asm/uaccess.h> /* copy_user /
+#include <linux/uaccess.h> / copy_user */

I noticed the slackbuild in the ponce repository already has a patch to fix some headers, but it doesn't address this issue.
 
1 members found this post helpful.
Old 09-12-2018, 07:59 AM   #1380
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,480

Original Poster
Rep: Reputation: Disabled
hi giomat,

as you can see here I don't apply any additional patch to SBo's acpi_call, because build failures with this hadn't been reported yet: thanks for doing it!
I'll commit a fix before the next update: it will be this sed just before the "make" line
Code:
sed -i 's|asm/uaccess.h|linux/uaccess.h|' acpi_call.c
 
1 members found this post helpful.
  


Reply

Tags
current, sbo, sbopkg, slackrepo


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error building gst1-plugins-good 1.4.1 from SBO l0rddarkf0rce Slackware 4 10-06-2014 06:58 PM
[SOLVED] Failure building nvidia-kernel Slackbuild from SBo sysfce2 Slackware 7 07-02-2011 02:10 AM
problems building fontforge from SBo gtludwig Slackware 7 05-12-2010 02:52 PM
Pls help me take my 1st step! verysoon Fedora - Installation 2 12-12-2005 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration