Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

Building myth against xorg from svn

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


yan at seiner

Feb 9, 2010, 6:13 AM

Post #1 of 7 (1475 views)
Permalink
Building myth against xorg from svn

My system is based on Debian Lenny. I have the standard Debian xorg
installed at /usr. However, I am running bleeding edge xorg at /usr/local/.

I'm trying to build myth against the new xorg, and it wants to pull in
the X libs from /usr. The net result is that the linking fails:

g++ -o mythavtest version.o main.o -L/usr/lib -L../../libs/libmyth
-L../../libs/libmythtv -L../../libs/libavutil -L../../libs/libavcodec
-L../../libs/libavformat -L../../libs/libswscale -L../../libs/libmythdb
-L../../libs/libmythui -L../../libs/libmythupnp -lmythtv-0.22
-lmythavformat-0.22 -lmythavutil-0.22 -lmythavcodec-0.22
-lmythswscale-0.22 -lmythupnp-0.22 -lmythdb-0.22 -lmythui-0.22
-lmyth-0.22 -L../../libs/libmythlivemedia -lmythlivemedia-0.22
-L../../libs/libmythfreemheg -lmythfreemheg-0.22
-L../../libs/libmythhdhomerun -lmythhdhomerun-0.22 -lfreetype -lz
-L/usr/lib -ldirectfb -lfusion -ldirect -L/usr/X11R6/lib -lXinerama
-lX11 -lXext -lXxf86vm -lXv -lXrandr -lXvMCNVIDIA -lXvMC
-L/usr/local/lib -lpthread -lGLU -lGL -lQtSql -lQtXml -lQtOpenGL -lQtGui
-lQtNetwork -lQtCore
/usr/bin/ld: warning: libxcb-xlib.so.0, needed by /usr/lib/libX11.so,
not found (try using -rpath or -rpath-link)
/usr/lib/libX11.so: undefined reference to `xcb_xlib_lock'
/usr/lib/libX11.so: undefined reference to `xcb_get_request_sent'
/usr/local/lib/libXi.so.6: undefined reference to `XESetWireToEventCookie'
/usr/local/lib/libXi.so.6: undefined reference to `XESetCopyEventCookie'
/usr/lib/libX11.so: undefined reference to `xcb_xlib_unlock'
collect2: ld returned 1 exit status
make[2]: *** [mythavtest] Error 1
make[2]: Leaving directory
`/data20/src/mythtv/mythtv-trunk/mythtv/programs/mythavtest'
make[1]: *** [sub-mythavtest-make_default] Error 2
make[1]: Leaving directory `/data20/src/mythtv/mythtv-trunk/mythtv/programs'
make: *** [sub-programs-make_default-ordered] Error 2

My build script:

PREFIX="/usr/local"
ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig:/usr/lib/pkgconfig

export ACLOCAL
export PKG_CONFIG
export PREFIX

#make clean

./configure --extra-ldflags=-L/usr/local/lib --xvmc-lib=XvMCNVIDIA

make && make install

However, in spite of specifically setting the prefix and ldflags, the
g++ line above still has -L/usr/lib as the first lib argument, which
means that myth tries to link against the older xorg.

How do I tell it not to link against /usr/lib, ever?

--Yan


--

o__
,>/'_ o__
(_)\(_) ,>/'_ o__
A day may come (_)\(_) ,>/'_ o__
when the courage of men fails, (_)\(_) ,>/'_
when we forsake our friends and break all (_)\(_)
bonds of fellowship, but it is not this day.
It is not this day!
This day we ride!

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


yan at seiner

Feb 9, 2010, 6:15 AM

Post #2 of 7 (1432 views)
Permalink
Re: Building myth against xorg from svn [In reply to]

Yan Seiner wrote:
> My system is based on Debian Lenny. I have the standard Debian xorg
> installed at /usr. However, I am running bleeding edge xorg at
> /usr/local/.
>
> I'm trying to build myth against the new xorg, and it wants to pull in
> the X libs from /usr. The net result is that the linking fails:
>
> g++ -o mythavtest version.o main.o -L/usr/lib -L../../libs/libmyth
> -L../../libs/libmythtv -L../../libs/libavutil -L../../libs/libavcodec
> -L../../libs/libavformat -L../../libs/libswscale
> -L../../libs/libmythdb -L../../libs/libmythui -L../../libs/libmythupnp
> -lmythtv-0.22 -lmythavformat-0.22 -lmythavutil-0.22 -lmythavcodec-0.22
> -lmythswscale-0.22 -lmythupnp-0.22 -lmythdb-0.22 -lmythui-0.22
> -lmyth-0.22 -L../../libs/libmythlivemedia -lmythlivemedia-0.22
> -L../../libs/libmythfreemheg -lmythfreemheg-0.22
> -L../../libs/libmythhdhomerun -lmythhdhomerun-0.22 -lfreetype -lz
> -L/usr/lib -ldirectfb -lfusion -ldirect -L/usr/X11R6/lib -lXinerama
> -lX11 -lXext -lXxf86vm -lXv -lXrandr -lXvMCNVIDIA -lXvMC
> -L/usr/local/lib -lpthread -lGLU -lGL -lQtSql -lQtXml -lQtOpenGL
> -lQtGui -lQtNetwork -lQtCore
> /usr/bin/ld: warning: libxcb-xlib.so.0, needed by /usr/lib/libX11.so,
> not found (try using -rpath or -rpath-link)
> /usr/lib/libX11.so: undefined reference to `xcb_xlib_lock'
> /usr/lib/libX11.so: undefined reference to `xcb_get_request_sent'
> /usr/local/lib/libXi.so.6: undefined reference to
> `XESetWireToEventCookie'
> /usr/local/lib/libXi.so.6: undefined reference to `XESetCopyEventCookie'
> /usr/lib/libX11.so: undefined reference to `xcb_xlib_unlock'
> collect2: ld returned 1 exit status
> make[2]: *** [mythavtest] Error 1
> make[2]: Leaving directory
> `/data20/src/mythtv/mythtv-trunk/mythtv/programs/mythavtest'
> make[1]: *** [sub-mythavtest-make_default] Error 2
> make[1]: Leaving directory
> `/data20/src/mythtv/mythtv-trunk/mythtv/programs'
> make: *** [sub-programs-make_default-ordered] Error 2
>
> My build script:
>
> PREFIX="/usr/local"
> ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
> PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig:/usr/lib/pkgconfig
>
> export ACLOCAL
> export PKG_CONFIG
> export PREFIX
>
> #make clean
>
> ./configure --extra-ldflags=-L/usr/local/lib --xvmc-lib=XvMCNVIDIA
>
> make && make install
>
> However, in spite of specifically setting the prefix and ldflags, the
> g++ line above still has -L/usr/lib as the first lib argument, which
> means that myth tries to link against the older xorg.
>
> How do I tell it not to link against /usr/lib, ever?
>
> --Yan
>
>
I forgot to add that if I manually change the g++ line above to
/usr/local/lib, it links just fine:

selene:/data20/src/mythtv/mythtv-trunk/mythtv# cd
/data20/src/mythtv/mythtv-trunk/mythtv/programs/mythavtest
selene:/data20/src/mythtv/mythtv-trunk/mythtv/programs/mythavtest# g++
-o mythavtest version.o main.o -L/usr/local/lib -L../../libs/libmyth
-L../../libs/libmythtv -L../../libs/libavutil -L../../libs/libavcodec
-L../../libs/libavformat -L../../libs/libswscale -L../../libs/libmythdb
-L../../libs/libmythui -L../../libs/libmythupnp -lmythtv-0.22
-lmythavformat-0.22 -lmythavutil-0.22 -lmythavcodec-0.22
-lmythswscale-0.22 -lmythupnp-0.22 -lmythdb-0.22 -lmythui-0.22
-lmyth-0.22 -L../../libs/libmythlivemedia -lmythlivemedia-0.22
-L../../libs/libmythfreemheg -lmythfreemheg-0.22
-L../../libs/libmythhdhomerun -lmythhdhomerun-0.22 -lfreetype -lz
-L/usr/lib -ldirectfb -lfusion -ldirect -L/usr/X11R6/lib -lXinerama
-lX11 -lXext -lXxf86vm -lXv -lXrandr -lXvMCNVIDIA -lXvMC
-L/usr/local/lib -lpthread -lGLU -lGL -lQtSql -lQtXml -lQtOpenGL -lQtGui
-lQtNetwork -lQtCore
selene:/data20/src/mythtv/mythtv-trunk/mythtv/programs/mythavtest#

--Yan

--

o__
,>/'_ o__
(_)\(_) ,>/'_ o__
A day may come (_)\(_) ,>/'_ o__
when the courage of men fails, (_)\(_) ,>/'_
when we forsake our friends and break all (_)\(_)
bonds of fellowship, but it is not this day.
It is not this day!
This day we ride!

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


warlord at MIT

Feb 9, 2010, 6:30 AM

Post #3 of 7 (1430 views)
Permalink
Re: Building myth against xorg from svn [In reply to]

Yan Seiner <yan [at] seiner> writes:

>> /usr/bin/ld: warning: libxcb-xlib.so.0, needed by
>> /usr/lib/libX11.so, not found (try using -rpath or -rpath-link)

This looks like a b0rked /usr/lib/libX11.so -- you should fix that!

>> How do I tell it not to link against /usr/lib, ever?

Remove it from /etc/ld.so.conf?
Or set LDFLAGS in configure?

Seriously, why not fix /usr/lib?

-derek

--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord [at] MIT PGP key available
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


yan at seiner

Feb 9, 2010, 6:38 AM

Post #4 of 7 (1426 views)
Permalink
Re: Building myth against xorg from svn [In reply to]

Derek Atkins wrote:
> Yan Seiner <yan [at] seiner> writes:
>
>
>>> /usr/bin/ld: warning: libxcb-xlib.so.0, needed by
>>> /usr/lib/libX11.so, not found (try using -rpath or -rpath-link)
>>>
>
> This looks like a b0rked /usr/lib/libX11.so -- you should fix that!
>
Well, I borked it on purpose - it was looking for another lib, which I
moved out of the way. This exposed the real culprit - that it was
trying to link against /usr/lib/ and not /usr/local/lib.


>
>>> How do I tell it not to link against /usr/lib, ever?
>>>
>
> Remove it from /etc/ld.so.conf?
> Or set LDFLAGS in configure?
>
I'll try LDFLAGS


> Seriously, why not fix /usr/lib?
>
Because it would bork the Lenny install. I went that way once; had to
rebuild the system from the ground up. Since then I've learned to keep
the two versions of xorg separate in their own homes.

--Yan

--

o__
,>/'_ o__
(_)\(_) ,>/'_ o__
A day may come (_)\(_) ,>/'_ o__
when the courage of men fails, (_)\(_) ,>/'_
when we forsake our friends and break all (_)\(_)
bonds of fellowship, but it is not this day.
It is not this day!
This day we ride!

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mtdean at thirdcontact

Feb 9, 2010, 1:10 PM

Post #5 of 7 (1417 views)
Permalink
Re: Building myth against xorg from svn [In reply to]

On 02/09/2010 09:30 AM, Derek Atkins wrote:
> Yan Seiner writes:
>
>>> /usr/bin/ld: warning: libxcb-xlib.so.0, needed by
>>> /usr/lib/libX11.so, not found (try using -rpath or -rpath-link)
> This looks like a b0rked /usr/lib/libX11.so -- you should fix that!
>
>>> How do I tell it not to link against /usr/lib, ever?
>>>
> Remove it from /etc/ld.so.conf?
> Or set LDFLAGS in configure?
>

Actually /usr/lib is a "trusted directory" that's always included (along
with /lib). See man 8 ldconfig and man 1 ld .

> Seriously, why not fix /usr/lib?
>

Since we now know it's not a Myth problem, how about taking the rest of
the discussion to -users list.

Thanks,
Mike
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


yan at seiner

Feb 9, 2010, 1:22 PM

Post #6 of 7 (1413 views)
Permalink
Re: Building myth against xorg from svn [In reply to]

On Tue, February 9, 2010 9:10 pm, Michael T. Dean wrote:
>
> Since we now know it's not a Myth problem, how about taking the rest of
> the discussion to -users list.
>

If I could impose for one more question.... While not a myth problem,
it's a qmake + myth configuration question.

qmake always inserts -L/usr/lib as the first libdir to look in:

g++ -o mythavtest version.o main.o -L/usr/lib -L/usr/local/lib
-L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavutil -L../
../libs/libavcodec -L../../libs/libavformat -L../../libs/libswscale
-L../../libs/libmythdb -L../../libs/libmythui -L../../libs/libmythupnp

In order to make things work the way I've always expected them, -L/usr/lib
should be last, not first. I've gotten qt to add the local libs, but only
after /usr/lib, which means the linker never finds my local libs.

I would see this as a potential problem for anyone who builds local libs
and still has the original system libs.

Where in the various qmake config files is this set? I can't find any
place that sets /usr/lib as the primary and first place to look.

--Yan

--
If you have eight hours to chop down a tree
spend six sharpening your axe.
--Abraham Lincoln

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mtdean at thirdcontact

Feb 9, 2010, 1:45 PM

Post #7 of 7 (1412 views)
Permalink
Re: Building myth against xorg from svn [In reply to]

On 02/09/2010 04:22 PM, Yan Seiner wrote:
> On Tue, February 9, 2010 9:10 pm, Michael T. Dean wrote:
>
>> Since we now know it's not a Myth problem, how about taking the rest of
>> the discussion to -users list.
>>
> If I could impose for one more question.... While not a myth problem,
> it's a qmake + myth configuration question.
>
> qmake always inserts -L/usr/lib as the first libdir to look in:
>
> g++ -o mythavtest version.o main.o -L/usr/lib -L/usr/local/lib
> -L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavutil -L../
> ../libs/libavcodec -L../../libs/libavformat -L../../libs/libswscale
> -L../../libs/libmythdb -L../../libs/libmythui -L../../libs/libmythupnp
>
> In order to make things work the way I've always expected them, -L/usr/lib
> should be last, not first. I've gotten qt to add the local libs, but only
> after /usr/lib, which means the linker never finds my local libs.
>
> I would see this as a potential problem for anyone who builds local libs
> and still has the original system libs.
>
> Where in the various qmake config files is this set? I can't find any
> place that sets /usr/lib as the primary and first place to look.
>

http://www.gossamer-threads.com/lists/mythtv/dev/332208#332208

Mike
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.