unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Marius Bakke <mbakke@fastmail.com>
To: Tim Gesthuizen <tim.gesthuizen@yahoo.de>, 32458@debbugs.gnu.org
Subject: bug#32458: Acknowledgement (SDL SEGFAULTs on foreign distro)
Date: Sun, 07 Oct 2018 22:06:37 +0200	[thread overview]
Message-ID: <87a7npiks2.fsf@fastmail.com> (raw)
In-Reply-To: <c0f44a39-374a-4f11-2255-ab34697d3d98@yahoo.de>


[-- Attachment #1.1: Type: text/plain, Size: 2016 bytes --]

Hello!  Sorry for dropping the ball on this.

Tim Gesthuizen <tim.gesthuizen@yahoo.de> writes:

> Hi,
> I tried to find some free time to investigate a little bit further in
> what exactly triggers the crash to happen.
> A few days ago I had the idea of getting a GL context through GLUT and
> don't use SDL at all. So I quickly investigated whether this would also
> crash.
> So I fetched the cube example (cube.c) from the OpenGL example archive:
>
> https://www.opengl.org/archives/resources/code/samples/glut_examples/examples/examples.html
>
> and compiled it through guix. You can find the exact procedure by
> inspecting the log attached. If I did not make an error this should
> proof that the problem lies in OpenGL and not in SDL.
>
> Tim.
> tibbe@tibbe-pc:~/src/glut-example$ guix environment --ad-hoc freeglut
> tibbe@tibbe-pc:~/src/glut-example$ echo $GUIX_ENVIRONMENT
> /gnu/store/gsfq0h6hpjz9ddvgn4g3gkl5r6gg3ink-profile
> tibbe@tibbe-pc:~/src/glut-example$ ls $GUIX_ENVIRONMENT
> etc  include  lib  manifest  share
> tibbe@tibbe-pc:~/src/glut-example$ gcc cube.c -L $GUIX_ENVIRONMENT/lib -l glut -l GL -I $GUIX_ENVIRONMENT/include
> /tmp/ccXMXGNS.o: In function `init':
> cube.c:(.text+0x321): undefined reference to `gluPerspective'
> cube.c:(.text+0x372): undefined reference to `gluLookAt'
> collect2: error: ld returned 1 exit status
> tibbe@tibbe-pc:~/src/glut-example$ gcc cube.c -L $GUIX_ENVIRONMENT/lib -l glut -l glu -l GL -I $GUIX_ENVIRONMENT/include
> ld: cannot find -lglu
> collect2: error: ld returned 1 exit status
> tibbe@tibbe-pc:~/src/glut-example$ gcc cube.c -L $GUIX_ENVIRONMENT/lib -l glut -l GLU -l GL -I $GUIX_ENVIRONMENT/include
> tibbe@tibbe-pc:~/src/glut-example$ ls
> a.out  cube.c
> tibbe@tibbe-pc:~/src/glut-example$ ./a.out 
> Segmentation fault

Nice catch!  Earlier in the bisect, you found
5318b103ff277efbac248a066d162589a9083baa (gnu: libepoxy: Update to
1.5.1.).  Can you try this patch and see if it makes a difference?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-libepoxy-Downgrade-to-1.5.0.patch --]
[-- Type: text/x-patch, Size: 1152 bytes --]

From 2fa87c8c06b0a20e1f6c5c4e9edcc6a6fdd0c3d1 Mon Sep 17 00:00:00 2001
From: Marius Bakke <mbakke@fastmail.com>
Date: Sun, 7 Oct 2018 22:04:27 +0200
Subject: [PATCH] gnu: libepoxy: Downgrade to 1.5.0.

This reverts commit 5318b103ff277efbac248a066d162589a9083baa.
---
 gnu/packages/gl.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index b88fab492..d512f10f7 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -550,7 +550,7 @@ OpenGL graphics API.")
 (define-public libepoxy
   (package
     (name "libepoxy")
-    (version "1.5.2")
+    (version "1.5.0")
     (source (origin
               (method url-fetch)
               (uri (string-append
@@ -558,7 +558,7 @@ OpenGL graphics API.")
                     version "/libepoxy-" version ".tar.xz"))
               (sha256
                (base32
-                "1n57xj5i6giw4mp5s59w1m9bm33sd6gjg7r00dzzvcwya6326mm9"))))
+                "1md58amxyp34yjnw4xa185hw5jm0hnb2xnhdc28zdsx6k19rk52c"))))
     (arguments
      `(#:phases
        (modify-phases %standard-phases
-- 
2.19.0


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2018-10-07 20:07 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-16 17:25 bug#32458: SDL SEGFAULTs on foreign distro Tim Gesthuizen
     [not found] ` <handler.32458.B.153444037626013.ack@debbugs.gnu.org>
2018-08-20 16:12   ` bug#32458: Acknowledgement (SDL SEGFAULTs on foreign distro) Tim Gesthuizen
2018-08-20 20:35     ` Marius Bakke
2018-08-20 20:59     ` Marius Bakke
2018-08-22 19:18       ` Tim Gesthuizen
2018-10-07 16:22         ` Tim Gesthuizen
2018-10-07 20:06           ` Marius Bakke [this message]
2018-10-08 18:07             ` Tim Gesthuizen
2018-10-08 18:28               ` Marius Bakke
2018-10-10 15:35                 ` Tim Gesthuizen
2018-10-15 19:19                   ` Marius Bakke
2018-10-15 19:31                     ` Marius Bakke
2018-10-16 18:20                       ` Tim Gesthuizen
2018-10-17 15:13                         ` Marius Bakke
2018-10-22 17:23                           ` Tim Gesthuizen
2018-10-22 20:50                             ` Marius Bakke
2018-10-29 18:43                               ` Tim Gesthuizen
2018-11-14 19:49                                 ` Marius Bakke
     [not found] ` <87zhs0hbre.fsf@fastmail.com>
2019-01-18 20:14   ` Tim Gesthuizen
2019-01-23 17:32   ` Tim Gesthuizen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a7npiks2.fsf@fastmail.com \
    --to=mbakke@fastmail.com \
    --cc=32458@debbugs.gnu.org \
    --cc=tim.gesthuizen@yahoo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).