Code Monkey home page Code Monkey logo

glextrusion's Issues

Recent MacOSX doesn't have <malloc.h>.

Please use <stdlib.h> instead of <malloc.h> for MacOS.

ex_raw.c:20:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
         ^~~~~~~~~~
#include <malloc.h>
         ^~~~~~~~~~
ex_cut_round.c:23:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
         ^~~~~~~~~~
In file included from ex_alpha.c:52:
./ex_angle.c:21:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
         ^~~~~~~~~~
1 error generated.
1 error generated.
1 error generated.
make[1]: *** [ex_raw.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [ex_angle.lo] Error 1
make[1]: *** [ex_cut_round.lo] Error 1
1 error generated.
make[1]: *** [ex_alpha.lo] Error 1
make: *** [install-recursive] Error 1

Makefile.am: required file `./README' not found

$autoreconf -vi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal 
autoreconf: configure.ac: tracing
autoreconf: running: glibtoolize --copy
glibtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
glibtoolize: and rerunning glibtoolize and aclocal.
glibtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoconf
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoheader
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader: 
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader: WARNING: `acconfig.h':
autoheader: 
autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: 		[Define if a function `main' is needed.])
autoheader: 
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
autoreconf: running: automake --add-missing --copy --no-force
configure.ac:27: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.ac:27: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:33: installing './compile'
Makefile.am: error: required file './README' not found
examples/Makefile.am: installing './depcomp'
src/Makefile.am:53: warning: 'CFLAGS' is a user variable, you should not override it;
src/Makefile.am:53: use 'AM_CFLAGS' instead
autoreconf: automake failed with exit status: 1

There are several methods to resolve. See https://stackoverflow.com/questions/15013672/use-autotools-with-readme-md

`src/Makefile.am` is missing `LIBADD` for dependent libraries

configure.ac checks for and appends required libraries to the @X_LIBS@ variable, and then uses that in examples/Makefile.am's LDADD, which is great for compiling the examples in-project.

But the generated libgle.so.3.1.0 does not link with @X_LIBS@ and so ldd src/.libs/libgle.so.3.1.0 is missing dependency information on libGL, libGLU, libglut, etc.

This manifests as link-time errors:

gcc -o test test.c -lgle:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libgle.so: undefined reference to `gluNewTess'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libgle.so: undefined reference to `gluTessVertex'

(actual example code: https://salsa.debian.org/debian/gle/-/blob/debian/debian/tests/build and build log: https://salsa.debian.org/debian/gle/-/jobs/4572587 )

Putting all of @X_LIBS@ into src/Makefile.am's libgle_la_LIBADD is almost correct, except that configure.ac also inserts -lgle in X_LIBS.

X_LIBS="-lgle $X_LIBS -lXt -lX11"

I think a fix could be to stop inserting -lgle into X_LIBS, using X_LIBS to set libgle_la_LIBADD in src/Makefile.am, and inserting -lgle in only the examples/Makefile.am LIBADD variable.

Could you release a new version please?

Hi! I'm the Debian package maintainer and having some trouble with the old autoconf files against the current Debian autoconf tool versions. I see you fixed all these problems a few years back.

I'm attempting to roll the patches into the Debian package on top of 3.1.0, but it'd be very helpful if you could tag and release a new version with all the changes since 3.1.0.

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.