public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: cygwin@cygwin.com
Cc: Lloyd Wood <lloyd.wood@yahoo.co.uk>
Subject: Re: configure fails on checking ino_t
Date: Fri, 09 Jun 2017 20:38:00 -0000	[thread overview]
Message-ID: <8da5b745-451e-df8b-e034-b7ed092b32d1@cornell.edu> (raw)
In-Reply-To: <310357481.6222896.1496816466443@mail.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 783 bytes --]

On 6/7/2017 2:21 AM, Lloyd Wood via cygwin wrote:
> download geomview 1.9.5 from http://www.geomview.org
> this used to build on cygwin 32-bit.

I've just build geomview-1.9.5 on both 32-bit and 64-bit Cygwin, using 
the attached cygport file and patches.

If it works well, I'll propose it for inclusion in the Cygwin 
distribution.  I have no experience with geomview, so I can't really 
test it adequately.  Would you be willing to try out my build and tell 
me if it seems OK?

If so, you can get it from my personal Cygwin repository:

   http://sanibeltranquility.com/cygwin/

There are instructions at that site.  Note: I have other packages there 
that you probably don't want to install, so be careful to just choose 
geomview (and let setup install its dependencies).

Ken

[-- Attachment #2: geomview.cygport --]
[-- Type: text/plain, Size: 1218 bytes --]

NAME="geomview"
VERSION=1.9.5
RELEASE=1

SRC_URI="https://sourceforge.net/projects/geomview/files/geomview/${PV}/${P}.tar.xz"

PATCH_URI="no_undefined.patch"
PATCH_URI+=" weak_symbols.patch"

HOMEPAGE="http://www.geomview.org/"
SUMMARY="An interactive 3D viewing program"
DESCRIPTION="Geomview lets you view and manipulate three-dimensional objects: you
use the mouse to rotate, translate, zoom in and out, and so on.
Geomview can be used as a standalone viewer for static objects or as a
display engine for other programs which produce dynamically changing
geometry.  Geomview can display objects described in a variety of file
formats.  Geomview comes with a wide selection of example objects, and
you can create your own objects too."

PKG_NAMES="${PN}
 lib${PN}_${PV}
 lib${PN}-devel
"

geomview_CATEGORY="Math"
libgeomview_1_9_5_CATEGORY="Math Libs"
libgeomview_devel_CATEGORY="Math Devel"


geomview_CONTENTS="
  usr/bin/*.exe
  usr/bin/geomview
  usr/bin/hvectext
  usr/bin/remotegv
  usr/libexec
  usr/share
"

libgeomview_1_9_5_CONTENTS="usr/bin/cyg*-1-9-5.dll"

libgeomview_devel_CONTENTS="
  usr/include
  usr/lib
"

CYGCONF_ARGS="--with-htmlbrowser=cygstart"

DEPEND="libXm-devel libGL-devel libGLU-devel"

[-- Attachment #3: no_undefined.patch --]
[-- Type: text/plain, Size: 470 bytes --]

--- origsrc/geomview-1.9.5/src/lib/Makefile.am	2014-03-12 12:51:13.000000000 -0400
+++ src/geomview-1.9.5/src/lib/Makefile.am	2017-06-08 17:07:53.078591900 -0400
@@ -11,4 +11,4 @@ libgeomview_la_SOURCES =
 libgeomview_la_LIBADD = \
  $(OOGLLIBS) $(OPENGLLIBS) $(SOCKETLIBS) $(XLIBS) $(ZLIB_LIB)
 libgeomview_la_DEPENDENCIES = $(OOGLLIBS) Makefile.am
-libgeomview_la_LDFLAGS = -release @PACKAGE_VERSION@
+libgeomview_la_LDFLAGS = -no-undefined -release @PACKAGE_VERSION@

[-- Attachment #4: weak_symbols.patch --]
[-- Type: text/plain, Size: 776 bytes --]

--- origsrc/geomview-1.9.5/src/lib/mg/opengl/mgopenglshade.c	2014-03-12 12:51:13.000000000 -0400
+++ src/geomview-1.9.5/src/lib/mg/opengl/mgopenglshade.c	2017-06-09 10:25:41.647550600 -0400
@@ -413,10 +413,15 @@ mgopengl_lightmodeldef(int lightmodel, L
  *	  supports it;
  *  - or, if we're on a system that claims to support it at compile time,
  *	  we'll just hope that that system also supports it at run time.
+ * But Cygwin does not support weak symbols, and the use of "#pragma
+ * weak" causes "undefined symbol" errors when linking on x86_64
+ * Cygwin.
  */
 
+#ifndef __CYGWIN__
 # pragma weak glBindTextureEXT
 # pragma weak glDeleteTexturesEXT
+#endif
 
 # ifndef GL_EXT_texture_object
 /* If <GL/gl.h> doesn't know about glBindTextureEXT etc., declare here. */

[-- Attachment #5: Type: text/plain, Size: 219 bytes --]


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  parent reply	other threads:[~2017-06-09 20:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <310357481.6222896.1496816466443.ref@mail.yahoo.com>
2017-06-07  6:21 ` Lloyd Wood via cygwin
2017-06-07  9:35   ` Corinna Vinschen
2017-06-07 19:10   ` Csaba Raduly
2017-06-07 20:37     ` Lloyd Wood via cygwin
2017-06-07 22:11       ` Lloyd Wood via cygwin
2017-06-07 22:19         ` Eric Blake
2017-06-08  8:27           ` Csaba Raduly
2017-06-08  2:44       ` Brian Inglis
2017-06-09 20:38   ` Ken Brown [this message]
2017-06-09 23:22     ` Lloyd Wood via cygwin
2017-06-10  1:53       ` Ken Brown
2017-06-11  0:22         ` Lloyd Wood via cygwin

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

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

  git send-email \
    --in-reply-to=8da5b745-451e-df8b-e034-b7ed092b32d1@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=cygwin@cygwin.com \
    --cc=lloyd.wood@yahoo.co.uk \
    /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.
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).