SM64 IRIX - GL Linking error
#4
RE: SM64 IRIX - GL Linking error
(09-18-2020, 08:36 PM)jpstewart Wrote:  Interesting.  I've been poking around in the GL libraries on my Octane.  It seems libGLcore.so does have an undefined symbol gl_INTERPRET_END.  But I can't find which library it is defined in.  It must be defined somewhere!

The undefined XSGI symbols are in libXext.so.  That needs to be included in the list of libraries when you're seeing those errors.

Since partitionpenguin is using GNU ld order should not matter, but for IRIX ld libXext must be after the GL libraries.

(09-17-2020, 11:45 PM)partitionpenguin Wrote:  I'm thinking that glCore is not meant to ever be used directly in linker flags

Correct.  What does 'ldd /usr/lib32/libGL.so' output?  It should list libGLcore.so as one of the libraries used by libGL -- which is exactly why you shouldn't need to add it to the linker command.  Maybe also try using IRIX ld instead, if you can.  This might be a bug in the GNU linker.
Yeah, I figured out that Xext contains the SGI extension symbols, but as you said it's unclear where gl_interpret_end is. 

I'll run that ldd command, but I'm pretty sure it's linked properly, hence why it knows to look in GLcore in the first place. Curiously, I was poking around with 'nm' and I noticed that the nm which belongs to SGUG binutils (GNU) does not read the symbols of files I specify (It says something along the lines of no symbols found.) I wonder if this has to do with GNU ld, in that it knows to look in glCore but it can't read what's inside it, and so maybe it's a bug. 

I tried IRIX ld, but it doesn't make any sense of the GNU object files and I believe the reason for that is the LTO introduced by GCC, which Raion mentioned to me. Too many errors, most of which I have no clue how to fix. I would just use MIPSPro, but I'm a little leery given the size of the SM64 codebase and my relative unfamiliarity with C programming and porting stuff to MIPSPro. Instead I'm thinking that it might be better to instead use a Nekoware GCC toolchain, maybe that LD will be a little bit more stable. In the meantime though, I'll mention this to the SGUG folks in case it is a bug.

I'll also keep this thread updated in case I find anything.

Oh and, I wanted to ask - as a sanity check for my own system, in case the GL libraries are broken - do you know of any good OpenGL examples that compile on IRIX and don't require external dependencies like GLUT? (Because I can't seem to figure out where to obtain that, anyway, it says it's in the freeware distribution online but I don't think I have that installed.) Maybe something that uses GLX and Xlib or Motif to grab an X context. Or even SDL, since I have that installed.

systems:
Indy x2  :Altix-350: O2  :where's-my-altix-330-emote:
(This post was last modified: 09-19-2020, 02:11 AM by partitionpenguin.)
partitionpenguin
panther_

Trade Count: (0)
Posts: 16
Threads: 5
Joined: Dec 2018
Find Reply
09-19-2020, 02:05 AM


Messages In This Thread
SM64 IRIX - GL Linking error - by partitionpenguin - 09-17-2020, 11:45 PM
RE: SM64 IRIX - GL Linking error - by Raion - 09-18-2020, 04:04 PM
RE: SM64 IRIX - GL Linking error - by jpstewart - 09-18-2020, 08:36 PM
RE: SM64 IRIX - GL Linking error - by partitionpenguin - 09-19-2020, 02:05 AM
RE: SM64 IRIX - GL Linking error - by soviet - 10-14-2020, 05:22 PM
RE: SM64 IRIX - GL Linking error - by Raion - 09-19-2020, 02:15 AM
RE: SM64 IRIX - GL Linking error - by partitionpenguin - 09-19-2020, 02:36 AM
RE: SM64 IRIX - GL Linking error - by Raion - 09-19-2020, 03:14 AM
RE: SM64 IRIX - GL Linking error - by partitionpenguin - 09-19-2020, 04:13 AM
RE: SM64 IRIX - GL Linking error - by Raion - 09-19-2020, 04:23 AM
RE: SM64 IRIX - GL Linking error - by jpstewart - 09-19-2020, 03:35 PM
RE: SM64 IRIX - GL Linking error - by Raion - 09-19-2020, 04:01 PM
RE: SM64 IRIX - GL Linking error - by jpstewart - 09-19-2020, 11:35 PM
RE: SM64 IRIX - GL Linking error - by Raion - 09-28-2020, 04:34 AM
RE: SM64 IRIX - GL Linking error - by soviet - 10-08-2020, 02:11 PM
RE: SM64 IRIX - GL Linking error - by Raion - 10-08-2020, 02:55 PM
RE: SM64 IRIX - GL Linking error - by chulofiasco - 10-08-2020, 07:48 PM
RE: SM64 IRIX - GL Linking error - by soviet - 10-08-2020, 08:35 PM
RE: SM64 IRIX - GL Linking error - by partitionpenguin - 10-19-2020, 05:28 AM
RE: SM64 IRIX - GL Linking error - by Raion - 10-19-2020, 05:44 AM
RE: SM64 IRIX - GL Linking error - by partitionpenguin - 10-19-2020, 07:07 AM
RE: SM64 IRIX - GL Linking error - by Raion - 10-19-2020, 08:17 AM
RE: SM64 IRIX - GL Linking error - by partitionpenguin - 10-19-2020, 03:54 PM
RE: SM64 IRIX - GL Linking error - by Raion - 10-19-2020, 04:28 PM
RE: SM64 IRIX - GL Linking error - by soviet - 10-19-2020, 11:13 PM
RE: SM64 IRIX - GL Linking error - by partitionpenguin - 10-20-2020, 03:54 PM
RE: SM64 IRIX - GL Linking error - by jpstewart - 10-20-2020, 12:28 AM
RE: SM64 IRIX - GL Linking error - by Raion - 10-20-2020, 03:12 AM
RE: SM64 IRIX - GL Linking error - by soviet - 10-24-2020, 11:01 PM
RE: SM64 IRIX - GL Linking error - by soviet - 02-01-2021, 04:01 PM
RE: SM64 IRIX - GL Linking error - by Raion - 02-01-2021, 05:32 PM
RE: SM64 IRIX - GL Linking error - by chulofiasco - 02-03-2021, 06:38 PM
RE: SM64 IRIX - GL Linking error - by soviet - 02-03-2021, 07:38 PM
RE: SM64 IRIX - GL Linking error - by Raion - 02-03-2021, 10:49 PM
RE: SM64 IRIX - GL Linking error - by octaneirix6530 - 02-06-2021, 12:15 PM
RE: SM64 IRIX - GL Linking error - by Irinikus - 10-25-2021, 06:09 PM
RE: SM64 IRIX - GL Linking error - by vishnu - 10-25-2021, 11:57 PM
RE: SM64 IRIX - GL Linking error - by Shiunbird - 10-26-2021, 07:47 AM
RE: SM64 IRIX - GL Linking error - by Irinikus - 10-26-2021, 10:36 AM
RE: SM64 IRIX - GL Linking error - by Shiunbird - 10-27-2021, 05:28 PM
RE: SM64 IRIX - GL Linking error - by soviet - 10-27-2021, 05:53 PM
RE: SM64 IRIX - GL Linking error - by Irinikus - 10-27-2021, 06:07 PM
RE: SM64 IRIX - GL Linking error - by Raion - 10-27-2021, 06:38 PM
RE: SM64 IRIX - GL Linking error - by Anonymoose - 06-28-2025, 03:59 PM
RE: SM64 IRIX - GL Linking error - by Raion - 06-28-2025, 06:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)