Subject: Re: MesaLib in OpenSolaris
To: None <tech-pkg@NetBSD.org, alan.jumpi@gmail.com>
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
List: tech-pkg
Date: 04/24/2006 18:40:30
--Family_of_Sardines_450_000
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: uChbaTij2jkMstrU0v3WnQ==



> From: Alan Silva <alan.jumpi@gmail.com>
> User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7) Gecko/20060307
> X-Accept-Language: en-us, en
> To: tech-pkg@NetBSD.org
> Subject: MesaLib in OpenSolaris
> X-Virus-Scanned: amavisd-new at enst.fr
> 
> hi ppl,
> 
> I need a help.. I have try to compile MesaLib in my OpenSolaris/X86
> using pkgsrc and don't obtain success
> 
> If any member of list hope this
> 
> The error is:
> 
> ranlib libGL.a
> /usr/pkgsrc/graphics/MesaLib/work/.wrapper/bin/libtool[51]: ./libGL.la:
> not found
> libtool: link: warning: `-L' is ignored for archives/objects
> libtool: link: cannot find the library `libGL.la' or unhandled argument
> `libGL.la'
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/pkgsrc/graphics/MesaLib/work/Mesa-6.4.2/src/mesa
> *** Error code 1
> 
> Tkz...
> 
> Alan

Hope this help, put the file in patches/ and
bmake mps 

Gilles

--Family_of_Sardines_450_000
Content-Type: TEXT/plain; name=patch-ak; charset=us-ascii; x-unix-mode=0644
Content-Description: patch-ak
Content-MD5: GpKxQ2AjSv3lShXanovutg==

--- configs/solaris-x86-gcc.orig	Mon Sep 13 23:00:36 2004
+++ configs/solaris-x86-gcc	Tue Aug 23 13:03:07 2005
@@ -10,15 +10,15 @@
 CFLAGS = -O3 -m486 -fPIC -I/usr/openwin/include -DUSE_XSHM
 CXXFLAGS = -O3 -m486 -fPIC
 GLUT_CFLAGS = -fexceptions
-MKLIB_OPTIONS = -static
+#MKLIB_OPTIONS = -static
 
 GL_LIB_DEPS = -L/usr/openwin/lib -lX11 -lXext -lm -lpthread
 GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm
 GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lX11 -lXmu -lXt -lXi -lm
-APP_LIB_DEPS = -L$(LIB_DIR) -L/usr/openwin/lib -R/usr/openwin/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
+APP_LIB_DEPS = -L$(LIB_DIR) -L/usr/openwin/lib -R/usr/openwin/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lm
 
-GL_LIB_NAME = libGL.a
-GLU_LIB_NAME = libGLU.a
-GLUT_LIB_NAME = libglut.a
-GLW_LIB_NAME = libGLw.a
-OSMESA_LIB_NAME = libOSMesa.a
+#GL_LIB_NAME = libGL.a
+#GLU_LIB_NAME = libGLU.a
+#GLUT_LIB_NAME = libglut.a
+#GLW_LIB_NAME = libGLw.a
+#OSMESA_LIB_NAME = libOSMesa.a

--Family_of_Sardines_450_000
Content-Type: TEXT/plain; name=patch-am; charset=us-ascii; x-unix-mode=0644
Content-Description: patch-am
Content-MD5: mPGQ+Suus0Q3dk/CSuWclQ==

--- include/GL/glxext.h.orig	Mon Nov  7 22:20:29 2005
+++ include/GL/glxext.h	Tue Jan 24 19:18:49 2006
@@ -333,7 +333,7 @@
 
 #if defined(__sun__)
 #include <inttypes.h>
-#if defined(__STDC__)
+#if defined(__STDC__) && !defined(_INT64_TYPE)
 #if defined(__arch64__)
 typedef long int int64_t;
 #else

--Family_of_Sardines_450_000
Content-Type: TEXT/plain; name=patch-dl; charset=us-ascii; x-unix-mode=0644
Content-Description: patch-dl
Content-MD5: LnTPQfReZps1XooKGyOGsg==

$

--- /dev/null	Tue Jan 17 13:06:04 2006
+++ configs/solaris-x86-64-gcc	Tue Jan 17 14:33:09 2006
@@ -0,0 +1,17 @@
+# Configuration for Solaris on x86 with gcc, static libs
+
+include $(TOP)/configs/default
+
+CONFIG_NAME = solaris-x86-64-gcc
+
+# Compiler and flags
+CC = gcc
+CXX = g++
+CFLAGS = -m64 -O3 -fPIC -I${X11BASE}/include -DUSE_XSHM
+CXXFLAGS = -m64 -O3 -fPIC
+GLUT_CFLAGS = -fexceptions
+
+GL_LIB_DEPS = -L${X11BASE}/lib/64 -R${X11BASE}/lib/64 -lX11 -lXext -lm -lpthread
+GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm
+GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L${X11BASE}/lib/64 -R${X11BASE}/lib/64 -lX11 -lXmu -lXt -lXi -lm
+APP_LIB_DEPS = -L$(LIB_DIR) -L${X11BASE}/lib/64 -R${X11BASE}/lib/64 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXext -lm

--Family_of_Sardines_450_000
Content-Type: TEXT/plain; name=patch-ac; charset=us-ascii; x-unix-mode=0644
Content-Description: patch-ac
Content-MD5: XQam7IX7aeqAnSR8/pH8qA==

--- Makefile.orig	Tue Nov 29 23:38:49 2005
+++ Makefile	Tue Jan 24 18:50:17 2006
@@ -2,7 +2,7 @@
 
 TOP = .
 
-SUBDIRS = src progs
+SUBDIRS = src
 
 
 default: $(TOP)/configs/current
@@ -74,6 +74,7 @@
 hpux11-64-static \
 hpux9 \
 hpux9-gcc \
+interix3 \
 irix6-64 \
 irix6-64-static \
 irix6-n32 \
@@ -117,10 +118,12 @@
 linux-x86-glide \
 linux-x86-static \
 netbsd \
+pkgsrc \
 openbsd \
 osf1 \
 solaris-x86 \
 solaris-x86-gcc \
+solaris-x86-64-gcc \
 sunos4 \
 sunos4-gcc \
 sunos4-static \

--Family_of_Sardines_450_000--