[GL2PS] Build errors on default

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[GL2PS] Build errors on default

Juan Pablo Carbajal-2
Hi,

I am having a trouble with gl2ps on Ubuntu 17.10.
when trying to compile default I get the following symbols undefined

./default/libinterp/corefcn/gl2ps-print.cc:197:25: error:
‘GL2PS_LINE_CAP_BUTT’ was not declared in this scope
           gl2psLineCap (GL2PS_LINE_CAP_BUTT);
                         ^~~~~~~~~~~~~~~~~~~
../default/libinterp/corefcn/gl2ps-print.cc:197:25: note: suggested
alternative: ‘GL2PS_LINE_STIPPLE’
           gl2psLineCap (GL2PS_LINE_CAP_BUTT);
                         ^~~~~~~~~~~~~~~~~~~
                         GL2PS_LINE_STIPPLE
../default/libinterp/corefcn/gl2ps-print.cc:197:11: error:
‘gl2psLineCap’ was not declared in this scope
           gl2psLineCap (GL2PS_LINE_CAP_BUTT);
           ^~~~~~~~~~~~
../default/libinterp/corefcn/gl2ps-print.cc:197:11: note: suggested
alternative: ‘gl2psLineWidth’
           gl2psLineCap (GL2PS_LINE_CAP_BUTT);
           ^~~~~~~~~~~~
           gl2psLineWidth
../default/libinterp/corefcn/gl2ps-print.cc:199:25: error:
‘GL2PS_LINE_CAP_SQUARE’ was not declared in this scope
           gl2psLineCap (GL2PS_LINE_CAP_SQUARE);
                         ^~~~~~~~~~~~~~~~~~~~~
../default/libinterp/corefcn/gl2ps-print.cc:199:25: note: suggested
alternative: ‘GL2PS_LINE_STIPPLE’
           gl2psLineCap (GL2PS_LINE_CAP_SQUARE);
                         ^~~~~~~~~~~~~~~~~~~~~
                         GL2PS_LINE_STIPPLE
../default/libinterp/corefcn/gl2ps-print.cc:199:11: error:
‘gl2psLineCap’ was not declared in this scope
           gl2psLineCap (GL2PS_LINE_CAP_SQUARE);
           ^~~~~~~~~~~~
../default/libinterp/corefcn/gl2ps-print.cc:199:11: note: suggested
alternative: ‘gl2psLineWidth’
           gl2psLineCap (GL2PS_LINE_CAP_SQUARE);
           ^~~~~~~~~~~~
           gl2psLineWidth
../default/libinterp/corefcn/gl2ps-print.cc:201:25: error:
‘GL2PS_LINE_CAP_ROUND’ was not declared in this scope
           gl2psLineCap (GL2PS_LINE_CAP_ROUND);
                         ^~~~~~~~~~~~~~~~~~~~
../default/libinterp/corefcn/gl2ps-print.cc:201:25: note: suggested
alternative: ‘GL2PS_DRAW_BACKGROUND’
           gl2psLineCap (GL2PS_LINE_CAP_ROUND);
                         ^~~~~~~~~~~~~~~~~~~~
                         GL2PS_DRAW_BACKGROUND
../default/libinterp/corefcn/gl2ps-print.cc:201:11: error:
‘gl2psLineCap’ was not declared in this scope
           gl2psLineCap (GL2PS_LINE_CAP_ROUND);
           ^~~~~~~~~~~~
../default/libinterp/corefcn/gl2ps-print.cc:201:11: note: suggested
alternative: ‘gl2psLineWidth’
           gl2psLineCap (GL2PS_LINE_CAP_ROUND);
           ^~~~~~~~~~~~
           gl2psLineWidth
../default/libinterp/corefcn/gl2ps-print.cc: In member function
‘virtual void octave::gl2ps_renderer::set_linejoin(const string&)’:
../default/libinterp/corefcn/gl2ps-print.cc:211:24: error:
‘GL2PS_LINE_JOIN_ROUND’ was not declared in this scope
         gl2psLineJoin (GL2PS_LINE_JOIN_ROUND);
                        ^~~~~~~~~~~~~~~~~~~~~
../default/libinterp/corefcn/gl2ps-print.cc:211:24: note: suggested
alternative: ‘GL2PS_LINE_STIPPLE’
         gl2psLineJoin (GL2PS_LINE_JOIN_ROUND);
                        ^~~~~~~~~~~~~~~~~~~~~
                        GL2PS_LINE_STIPPLE
../default/libinterp/corefcn/gl2ps-print.cc:211:9: error:
‘gl2psLineJoin’ was not declared in this scope
         gl2psLineJoin (GL2PS_LINE_JOIN_ROUND);
         ^~~~~~~~~~~~~
../default/libinterp/corefcn/gl2ps-print.cc:211:9: note: suggested
alternative: ‘gl2psLineWidth’
         gl2psLineJoin (GL2PS_LINE_JOIN_ROUND);
         ^~~~~~~~~~~~~
         gl2psLineWidth
../default/libinterp/corefcn/gl2ps-print.cc:213:24: error:
‘GL2PS_LINE_JOIN_MITER’ was not declared in this scope
         gl2psLineJoin (GL2PS_LINE_JOIN_MITER);
                        ^~~~~~~~~~~~~~~~~~~~~
../default/libinterp/corefcn/gl2ps-print.cc:213:24: note: suggested
alternative: ‘GL2PS_LINE_STIPPLE’
         gl2psLineJoin (GL2PS_LINE_JOIN_MITER);
                        ^~~~~~~~~~~~~~~~~~~~~
                        GL2PS_LINE_STIPPLE
../default/libinterp/corefcn/gl2ps-print.cc:213:9: error:
‘gl2psLineJoin’ was not declared in this scope
         gl2psLineJoin (GL2PS_LINE_JOIN_MITER);
         ^~~~~~~~~~~~~
../default/libinterp/corefcn/gl2ps-print.cc:213:9: note: suggested
alternative: ‘gl2psLineWidth’
         gl2psLineJoin (GL2PS_LINE_JOIN_MITER);
         ^~~~~~~~~~~~~
         gl2psLineWidth
../default/libinterp/corefcn/gl2ps-print.cc:215:24: error:
‘GL2PS_LINE_JOIN_BEVEL’ was not declared in this scope
         gl2psLineJoin (GL2PS_LINE_JOIN_BEVEL);
                        ^~~~~~~~~~~~~~~~~~~~~
../default/libinterp/corefcn/gl2ps-print.cc:215:24: note: suggested
alternative: ‘GL2PS_LINE_STIPPLE’
         gl2psLineJoin (GL2PS_LINE_JOIN_BEVEL);
                        ^~~~~~~~~~~~~~~~~~~~~
                        GL2PS_LINE_STIPPLE
../default/libinterp/corefcn/gl2ps-print.cc:215:9: error:
‘gl2psLineJoin’ was not declared in this scope
         gl2psLineJoin (GL2PS_LINE_JOIN_BEVEL);
         ^~~~~~~~~~~~~
../default/libinterp/corefcn/gl2ps-print.cc:215:9: note: suggested
alternative: ‘gl2psLineWidth’
         gl2psLineJoin (GL2PS_LINE_JOIN_BEVEL)

From official repositories I have libgl2ps-dev: 1.3.9-4

The only fix is to manually compile and install 1.4.0.

Shouldn't configure give a warning?

Reply | Threaded
Open this post in threaded view
|

Re: [GL2PS] Build errors on default

John W. Eaton
Administrator
On 11/08/2017 05:48 PM, Juan Pablo Carbajal wrote:

> ../default/libinterp/corefcn/gl2ps-print.cc:215:9: error:
> ‘gl2psLineJoin’ was not declared in this scope
>           gl2psLineJoin (GL2PS_LINE_JOIN_BEVEL);
>           ^~~~~~~~~~~~~
> ../default/libinterp/corefcn/gl2ps-print.cc:215:9: note: suggested
> alternative: ‘gl2psLineWidth’
>           gl2psLineJoin (GL2PS_LINE_JOIN_BEVEL)
>
>  From official repositories I have libgl2ps-dev: 1.3.9-4
>
> The only fix is to manually compile and install 1.4.0.
>
> Shouldn't configure give a warning?

These symbols should only be used if configure finds the gl2psLineJoin
function.  Does it?  How?

jwe

Reply | Threaded
Open this post in threaded view
|

Re: [GL2PS] Build errors on default

Juan Pablo Carbajal-2
> These symbols should only be used if configure finds the gl2psLineJoin
> function.  Does it?  How?
>
> jwe

going back to the system's gl2ps I see that confure.log says

52528:configure:69611: checking for gl2psLineJoin
52529:configure:69611: gcc -o conftest -g -O2 -pthread -fopenmp
conftest.c -lgl2ps -lm   >&5
52530-configure:69611: $? = 0
52531-configure:69611: result: yes

I couldn't find what's the content of conftest.c by searching the m4
scripts. Any hint?

Anyways, by setting the links to 1.3.9 indeed gl2psLineJoin is deactivated:
/usr/lib/x86_64-linux-gnu/libgl2ps.so.1 -> libgl2ps.so.1.3.9
/usr/local/lib/libgl2ps.so.1 -> /usr/lib/x86_64-linux-gnu/libgl2ps.so.1.3.9

Instead of
/usr/lib/x86_64-linux-gnu/libgl2ps.so.1 -> libgl2ps.so.1.4.0
/usr/local/lib/libgl2ps.so.1 -> libgl2ps.so.1.4.0

It might be that there were residual links from previous 1.4.0 installations.

Sorry for taking your time.

Cheers