Unix Technical Forum

X11/MP3/configure issue

This is a discussion on X11/MP3/configure issue within the Sco Unix forums, part of the Unix Operating Systems category; --> After installing maintenance pack 3 on OSR507, GNU configure for at least two X11 packages, xpdf (v3.0) and ImageMagick ...


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-15-2008, 03:55 PM
Roger Cornelius
 
Posts: n/a
Default X11/MP3/configure issue

After installing maintenance pack 3 on OSR507, GNU configure for at
least two X11 packages, xpdf (v3.0) and ImageMagick (v6.0x), does the
wrong thing when determining where to find X11 libraries and headers.
I suspect other X packages will also have this problem.

If configure is invoked without the --x-* options, it will use the
X11R6 libraries in /usr/X11R6/lib and the X11R5 headers from
/usr/include. This mix will cause the compilation to fail. Solution
is to force use of either X11R5 or X11R6 components using:

--x-libraries=/usr/lib
--x-includes=/usr/include
or
--x-libraries=/usr/X11R6/lib
--x-includes=/usr/X11R6/include

In the case of xpdf 3.0, using the X11R6 components allows the build
to finish, but the resulting xpdf executable produces a memory
fault/core dump on invocation. The fault occurs in the call to
XtAppInitialize() at line 119 of XPDFApp.cc. xpdf built with the
X11R5 components works.
--
Roger Cornelius rac@tenzing.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-15-2008, 03:56 PM
J. L. Schilling
 
Posts: n/a
Default Re: X11/MP3/configure issue

rac@tenzing.org (Roger Cornelius) wrote in message news:<450ab60f.0408090802.28d5dd60@posting.google. com>...
> After installing maintenance pack 3 on OSR507, GNU configure for at
> least two X11 packages, xpdf (v3.0) and ImageMagick (v6.0x), does the
> wrong thing when determining where to find X11 libraries and headers.
> I suspect other X packages will also have this problem.
>
> If configure is invoked without the --x-* options, it will use the
> X11R6 libraries in /usr/X11R6/lib and the X11R5 headers from
> /usr/include. This mix will cause the compilation to fail. Solution
> is to force use of either X11R5 or X11R6 components using:
>
> --x-libraries=/usr/lib
> --x-includes=/usr/include
> or
> --x-libraries=/usr/X11R6/lib
> --x-includes=/usr/X11R6/include


This is a known issue, but it's really in "configure", which is using
one approach to detect the X11 headers and another approach to detect
the X11 libraries. Since OSR 5.0.7 supp 3 has two sets of X11 libraries
on it, the problem results. I guess you'll just have to carry on with
this work-around.

Jonathan Schilling
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-15-2008, 03:56 PM
Roger Cornelius
 
Posts: n/a
Default Re: X11/MP3/configure issue

"J. L. Schilling" wrote:
>
> rac@tenzing.org (Roger Cornelius) wrote in message news:<450ab60f.0408090802.28d5dd60@posting.google. com>...
> > After installing maintenance pack 3 on OSR507, GNU configure for at
> > least two X11 packages, xpdf (v3.0) and ImageMagick (v6.0x), does the
> > wrong thing when determining where to find X11 libraries and headers.
> > I suspect other X packages will also have this problem.
> >
> > If configure is invoked without the --x-* options, it will use the
> > X11R6 libraries in /usr/X11R6/lib and the X11R5 headers from
> > /usr/include. This mix will cause the compilation to fail. Solution
> > is to force use of either X11R5 or X11R6 components using:
> >
> > --x-libraries=/usr/lib
> > --x-includes=/usr/include
> > or
> > --x-libraries=/usr/X11R6/lib
> > --x-includes=/usr/X11R6/include

>
> This is a known issue, but it's really in "configure", which is using
> one approach to detect the X11 headers and another approach to detect
> the X11 libraries. Since OSR 5.0.7 supp 3 has two sets of X11 libraries
> on it, the problem results. I guess you'll just have to carry on with
> this work-around.


I figured it was a configure problem. I just wanted to get this
archived so the next person won't have to figure it out.
--
Roger Cornelius racpop@tenzing.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-15-2008, 04:08 PM
Jean-Pierre Radley
 
Posts: n/a
Default Re: X11/MP3/configure issue

J. L. Schilling typed (on Tue, Aug 10, 2004 at 02:21:57PM -0700):
| rac@tenzing.org (Roger Cornelius) wrote in message news:<450ab60f.0408090802.28d5dd60@posting.google. com>...
| > After installing maintenance pack 3 on OSR507, GNU configure for at
| > least two X11 packages, xpdf (v3.0) and ImageMagick (v6.0x), does the
| > wrong thing when determining where to find X11 libraries and headers.
| > I suspect other X packages will also have this problem.
| >
| > If configure is invoked without the --x-* options, it will use the
| > X11R6 libraries in /usr/X11R6/lib and the X11R5 headers from
| > /usr/include. This mix will cause the compilation to fail. Solution
| > is to force use of either X11R5 or X11R6 components using:
| >
| > --x-libraries=/usr/lib
| > --x-includes=/usr/include
| > or
| > --x-libraries=/usr/X11R6/lib
| > --x-includes=/usr/X11R6/include
|
| This is a known issue, but it's really in "configure", which is using
| one approach to detect the X11 headers and another approach to detect
| the X11 libraries. Since OSR 5.0.7 supp 3 has two sets of X11 libraries
| on it, the problem results. I guess you'll just have to carry on with
| this work-around.

I just grabbed the source for ghostscript-8.31. I did NOT use either of
those sets of --x-* options when I ran configure. Compilation was no
problem (except for some nonsense regarding bool if I didn't exclude
jasper).

Explicitly, I did NOT see that "... without the --x-* options,it will
use the X11R6 libraries in /usr/X11R6/lib and the X11R5 headers from
/usr/include. This mix will cause the compilation to fail." It didn't
fail at all.

I've now got a gs binary about which ldd reports:

/usr/local/bin/gs needs:
/usr/X11R6/lib/libXt.so.6.0
/usr/X11R6/lib/libSM.so.6.0
/usr/X11R6/lib/libICE.so.6.3
/usr/X11R6/lib/libXext.so.6.4
/usr/X11R6/lib/libX11.so.6.2
/usr/lib/libsocket.so.2
/usr/lib/libpng.so.2
/usr/lib/libjpeg.so.62
/usr/lib/libz.so.1
/usr/lib/libm.so.1
/usr/lib/libc.so.1

The binary runs just fine.

--
JP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-15-2008, 04:08 PM
Roger Cornelius
 
Posts: n/a
Default Re: X11/MP3/configure issue

Jean-Pierre Radley wrote:
>
> J. L. Schilling typed (on Tue, Aug 10, 2004 at 02:21:57PM -0700):
> | rac@tenzing.org (Roger Cornelius) wrote in message news:<450ab60f.0408090802.28d5dd60@posting.google. com>...
> | > After installing maintenance pack 3 on OSR507, GNU configure for at
> | > least two X11 packages, xpdf (v3.0) and ImageMagick (v6.0x), does the
> | > wrong thing when determining where to find X11 libraries and headers.
> | > I suspect other X packages will also have this problem.
> | >
> | > If configure is invoked without the --x-* options, it will use the
> | > X11R6 libraries in /usr/X11R6/lib and the X11R5 headers from
> | > /usr/include. This mix will cause the compilation to fail. Solution
> | > is to force use of either X11R5 or X11R6 components using:
> | >
> | > --x-libraries=/usr/lib
> | > --x-includes=/usr/include
> | > or
> | > --x-libraries=/usr/X11R6/lib
> | > --x-includes=/usr/X11R6/include
> |
> | This is a known issue, but it's really in "configure", which is using
> | one approach to detect the X11 headers and another approach to detect
> | the X11 libraries. Since OSR 5.0.7 supp 3 has two sets of X11 libraries
> | on it, the problem results. I guess you'll just have to carry on with
> | this work-around.
>
> I just grabbed the source for ghostscript-8.31. I did NOT use either of
> those sets of --x-* options when I ran configure. Compilation was no
> problem (except for some nonsense regarding bool if I didn't exclude
> jasper).
>
> Explicitly, I did NOT see that "... without the --x-* options,it will
> use the X11R6 libraries in /usr/X11R6/lib and the X11R5 headers from
> /usr/include. This mix will cause the compilation to fail." It didn't
> fail at all.
>
> I've now got a gs binary about which ldd reports:
>
> /usr/local/bin/gs needs:
> /usr/X11R6/lib/libXt.so.6.0
> /usr/X11R6/lib/libSM.so.6.0
> /usr/X11R6/lib/libICE.so.6.3
> /usr/X11R6/lib/libXext.so.6.4
> /usr/X11R6/lib/libX11.so.6.2
> /usr/lib/libsocket.so.2
> /usr/lib/libpng.so.2
> /usr/lib/libjpeg.so.62
> /usr/lib/libz.so.1
> /usr/lib/libm.so.1
> /usr/lib/libc.so.1
>
> The binary runs just fine.


If you check config.log you will see that the X11R6 libs were used but
with the X11R5 headers. At least that is the case when I build it. The
fact it compiles and runs is a fluke. Mixing versions is asking for
problems.
--
Roger Cornelius racpop@tenzing.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:04 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com