On Mon, Aug 18, 2008 at 7:54 PM, mabshoff <[EMAIL PROTECTED]> wrote:
>
>
>
> On Aug 18, 10:37 am, "Ondrej Certik" <[EMAIL PROTECTED]> wrote:
>> On Mon, Aug 18, 2008 at 7:29 PM, Martin Albrecht
>
> Hi,
>
>> <[EMAIL PROTECTED]> wrote:
>>
>> >> Ah I see thanks. I used some other spkg package as a template.
>>
>> > Which one? It needs to be fixed :-)
>
> Yes :)
>
>> Well, some unofficial one:
>>
>> http://sage.math.washington.edu/home/gfurnish/spkg/glib-2.14.5.spkg
>>
>> I thought that's the way to do spkg packages.
>
> Nope, that one is likely a bad example.

Next time I'll start from some of your spkg packages. :)

>
>> Ondrej
>
> In general the issue you are hitting with Giac are bugs in its build
> system. Setting CXXFLAGS work around those issues, but the proper fix
> is that have a --with-$FOO=$LOCATION flag that then adds proper -I and
> -L locations in the makefiles.

Yep. Bernard fixed that, so I updated the package:

http://sage.math.washington.edu/home/ondrej/spkg/giac-unstable.spkg

Now it fails with:

$ sage -f giac-unstable.spkg
[...]
Configuration done. Now type "make".
make  all-recursive
make[1]: Entering directory
`/home/ondrej/ext/sage-3.1/spkg/build/giac-unstable/src'
Making all in src
make[2]: Entering directory
`/home/ondrej/ext/sage-3.1/spkg/build/giac-unstable/src/src'
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.
-I..    -g -O2 -c sym2poly.cc
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -g -O2 -c sym2poly.cc  -fPIC
-DPIC -o .libs/sym2poly.lo
In file included from gen.h:39,
                 from sym2poly.h:25,
                 from sym2poly.cc:32:
vecteur.h:25:28: error: gsl/gsl_vector.h: No such file or directory
vecteur.h:26:28: error: gsl/gsl_matrix.h: No such file or directory
vecteur.h:27:33: error: gsl/gsl_permutation.h: No such file or directory
vecteur.h:270: error: expected constructor, destructor, or type
conversion before '*' token
vecteur.h:271: error: 'gsl_vector' has not been declared
vecteur.h:272: error: 'gsl_vector' has not been declared
vecteur.h:273: error: expected ',' or '...' before '*' token
vecteur.h:273: error: ISO C++ forbids declaration of 'gsl_vector' with no type
vecteur.h:274: error: 'gsl_matrix' has not been declared
vecteur.h:275: error: expected constructor, destructor, or type
conversion before '*' token
vecteur.h:276: error: expected ',' or '...' before '*' token
vecteur.h:276: error: ISO C++ forbids declaration of 'gsl_matrix' with no type
vecteur.h:277: error: expected ',' or '...' before '*' token
vecteur.h:277: error: ISO C++ forbids declaration of 'gsl_permutation'
with no type
make[2]: *** [sym2poly.lo] Error 1
make[2]: Leaving directory
`/home/ondrej/ext/sage-3.1/spkg/build/giac-unstable/src/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/ondrej/ext/sage-3.1/spkg/build/giac-unstable/src'
make: *** [all-recursive-am] Error 2
Error building giac.

real    0m33.790s
user    0m19.289s
sys     0m13.977s
sage: An error occurred while installing giac-unstable
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /home/ondrej/ext/sage/install.log.  Describe your computer,
operating system, etc.
If you want to try to fix the problem, yourself *don't* just cd to
/home/ondrej/ext/sage/spkg/build/giac-unstable and type 'make'.
Instead type "/home/ondrej/ext/sage/sage -sh"
in order to set all environment variables correctly, then cd to
/home/ondrej/ext/sage/spkg/build/giac-unstable
(When you are done debugging, you can type "exit" to leave the
subshell.)



Bernard, could you please try this yourself and fix the package
yourself? First try to reproduce the above error. Then follow
the instructions that Sage printed, e.g.:

$ /home/ondrej/ext/sage/sage -sh
$ cd /home/ondrej/ext/sage/spkg/build/giac-unstable
$ ./spkg-install

Sage will of course print different paths in your case. It will
reproduce the problem and you will then look into the spkg-install
script and fix it. Your sources are in the src dir. Just send here a
patch that fixes the problem and I'll then help you create a new spkg
package if you don't figure it out yourself.

Now it's your turn. :)

Ondrej

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to