Re: [ros-users] Fedora rosdep patches

Top Page
Attachments:
Message as email
+ (text/plain)
+ opende_link_x11.patch (text/x-patch)
Delete this message
Reply to this message
Author: User discussions
Date:  
To: User discussions
Subject: Re: [ros-users] Fedora rosdep patches
2010/11/30 Matthieu Herrb <>:
> On Thu, Nov 04, 2010 at 06:50:27PM +0100, Steven Bellens wrote:
>> 2010/11/4 Severin Lemaignan <>:
>> >> /usr/bin/ld: note: 'XNextEvent' is defined in DSO
>> >> /usr/lib64/libX11.so.6 so try adding it to the linker command line
>> >> /usr/lib64/libX11.so.6: could not read symbols: Invalid operation
>> >>
>> >> which I'm not able to solve at the moment :). It's not package
>> >> related, I checked out the svn version from the opende homepage, which
>> >> behaves the same.
>> >
>> > Well, this bug is due to a change in the Fedora linker in Fedora 13, and
>> > basically, if you add manually a -lX11, it should compile.
>> > This is due to a stricter policy in linking, and should actually be
>> > filled as a bug upstream, I guess.
>>
>> I've filed a ticket at the openDE project page:
>> https://sourceforge.net/tracker/index.php?func=detail&aid=3103061&group_id=24884&atid=382799#
>>
>
> Would it be possible to add a patch in the ros tree in the meantime?
>
> So far I fail to see how the patches present in the patches/ subdir
> are used, but it seems to be the mechanism for this kind of issues...


In appendix my changes to the Makefiles ... they probably don't
represent the most elegant solution, but they solve all the trouble. A
simple "patch < opende_link_x11.patch" should do the trick.

Steven

>
> --
> Matthieu Herrb
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>

Index: Makefile.ode.svn
===================================================================
--- Makefile.ode.svn    (revision 34368)
+++ Makefile.ode.svn    (working copy)
@@ -43,7 +43,7 @@
                 LDFLAGS='-L$(ROOT)/lib $(BOOST_LFLAGS) $(GCC_OPENMP_LFLAGS) -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
 else
 GCC_FLAGS     += \
-                LDFLAGS='-L$(ROOT)/lib $(BOOST_LFLAGS) $(GCC_OPENMP_LFLAGS)'
+                LDFLAGS='-L$(ROOT)/lib $(BOOST_LFLAGS) $(GCC_OPENMP_LFLAGS) -L/usr/lib64 -lX11'
 endif



Index: Makefile.ode.tarball
===================================================================
--- Makefile.ode.tarball    (revision 34368)
+++ Makefile.ode.tarball    (working copy)
@@ -46,7 +46,7 @@
                 LDFLAGS='-L$(ROOT)/lib $(BOOST_LFLAGS) $(GCC_OPENMP_LFLAGS) -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
 else
 GCC_FLAGS     += \
-                LDFLAGS='-L$(ROOT)/lib $(BOOST_LFLAGS) $(GCC_OPENMP_LFLAGS)'
+                LDFLAGS='-L$(ROOT)/lib $(BOOST_LFLAGS) $(GCC_OPENMP_LFLAGS) -L/usr/lib64 -lX11'
 endif



Index: Makefile.ode.mpi
===================================================================
--- Makefile.ode.mpi    (revision 34368)
+++ Makefile.ode.mpi    (working copy)
@@ -44,7 +44,7 @@
                 LDFLAGS='-L$(ROOT)/lib $(BOOST_LFLAGS) $(GCC_OPENMP_LFLAGS) -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
 else
 GCC_FLAGS     += \
-                LDFLAGS='-L$(ROOT)/lib $(BOOST_LFLAGS) $(GCC_OPENMP_LFLAGS)'
+                LDFLAGS='-L$(ROOT)/lib $(BOOST_LFLAGS) $(GCC_OPENMP_LFLAGS) -L/usr/lib64 -lX11'
 endif



Index: Makefile.ode.simpar
===================================================================
--- Makefile.ode.simpar    (revision 34368)
+++ Makefile.ode.simpar    (working copy)
@@ -34,7 +34,7 @@
                       CFLAGS='-march=core2 -msse3 -ip  -no-prec-div         -parallel -O3 -fPIC -I$(ROOT)/include -I$(ROOT)/usr/include $(BOOST_CFLAGS) $(THREADPOOL_CFLAGS)'
 INTEL_C_FLAGS_OMP  =  CXXFLAGS='-march=core2 -msse3 -ip  -no-prec-div -openmp -parallel -O3 -fPIC -I$(ROOT)/include $(BOOST_CFLAGS) $(THREADPOOL_CFLAGS)' \
                       CFLAGS='-march=core2 -msse3 -ip  -no-prec-div -openmp -parallel -O3 -fPIC -I$(ROOT)/include -I$(ROOT)/usr/include $(BOOST_CFLAGS) $(THREADPOOL_CFLAGS)'
-INTEL_LD_FLAGS     =  LDFLAGS='-Wl,-rpath,/opt/intel/Compiler/11.1/046/lib/ia32 -L/opt/intel/Compiler/11.1/046/lib/ia32 -lguide -lcxaguard -limf -lsvml -lirc -pthread -lintlc'
+INTEL_LD_FLAGS     =  LDFLAGS='-Wl,-rpath,/opt/intel/Compiler/11.1/046/lib/ia32 -L/opt/intel/Compiler/11.1/046/lib/ia32 -lguide -lcxaguard -limf -lsvml -lirc -pthread -lintlc -L/usr/lib64 -lX11'
 INTEL_LD_FLAGS_OMP =  LDFLAGS='-Wl,-rpath,/opt/intel/Compiler/11.1/046/lib/ia32 -L/opt/intel/Compiler/11.1/046/lib/ia32 -lguide -lcxaguard -limf -lsvml -lirc -pthread -lintlc -lompstub -liomp5 -lomp_db'


 INTEL_FLAGS     = $(INTEL_OPTIONS) $(INTEL_C_FLAGS) $(INTEL_LD_FLAGS)
@@ -59,7 +59,7 @@
                 LDFLAGS='-L$(ROOT)/lib $(BOOST_LFLAGS) $(GCC_OPENMP_LFLAGS) -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
 else
 GCC_FLAGS     += \
-                LDFLAGS='-L$(ROOT)/lib $(BOOST_LFLAGS) $(GCC_OPENMP_LFLAGS)'
+                LDFLAGS='-L$(ROOT)/lib $(BOOST_LFLAGS) $(GCC_OPENMP_LFLAGS) -L/usr/lib64 -lX11'
 endif