Hi All,<br><br>I am trying to cross compile xorg-server-1.7.1 (X11R7.5 release) for arm platform using armv7 toolchain. All the server libraries are succesfully compiled and static libraries (lib***.a) are created. But we need shared libraries and while trying to generate shared libraries using object (.o) files with this command<br>
<br>arm-linux-gcc -shared -Wl,-soname,libXi.so.0 -o libXi.so.0 *.o<br><br>But this is causing the following error:<br><br>xichangehierarchy.o: In function `ProcXIChangeHierarchy':<br>xichangehierarchy.c:(.text+0xb14): undefined reference to `CorePointerProc'<br>
xichangehierarchy.c:(.text+0xb18): undefined reference to `CoreKeyboardProc'<br>/home/smuthu/webkit_gtk_tinyx/toolchain/arm_v7_vfp_le/bin/../lib/gcc/armv7fl-montavista-linux-gnueabi/4.2.0/../../../../armv7fl-montavista-linux-gnueabi/bin/ld: libXi.so.0: hidden symbol `CoreKeyboardProc' isn't defined<br>
/home/smuthu/webkit_gtk_tinyx/toolchain/arm_v7_vfp_le/bin/../lib/gcc/armv7fl-montavista-linux-gnueabi/4.2.0/../../../../armv7fl-montavista-linux-gnueabi/bin/ld: final link failed: Nonrepresentable section on output<br>collect2: ld returned 1 exit status<br>
<br>The same kind of problem is occurring in case of Xext also as shown below<br><br>arm-linux-gcc -shared -Wl,-soname,libXext.so.0 -o libXext.so.0 *.o<br><br>output:<br><br>panoramiX.o: In function `PanoramiXCreateConnectionBlock':<br>
panoramiX.c:(.text+0x26a4): undefined reference to `CreateConnectionBlock'<br>xtest.o: In function `AllocXTestDevice':<br>xtest.c:(.text+0x2fc): undefined reference to `CorePointerProc'<br>xtest.c:(.text+0x300): undefined reference to `CoreKeyboardProc'<br>
/home/smuthu/webkit_gtk_tinyx/toolchain/arm_v7_vfp_le/bin/../lib/gcc/armv7fl-montavista-linux-gnueabi/4.2.0/../../../../armv7fl-montavista-linux-gnueabi/bin/ld: libXext.so.0: hidden symbol `CreateConnectionBlock' isn't defined<br>
/home/smuthu/webkit_gtk_tinyx/toolchain/arm_v7_vfp_le/bin/../lib/gcc/armv7fl-montavista-linux-gnueabi/4.2.0/../../../../armv7fl-montavista-linux-gnueabi/bin/ld: final link failed: Nonrepresentable section on output<br>collect2: ld returned 1 exit status <br>
<br>Even i try declaring them as below its not able to fix the above error. same error is persisting<br><br>extern _X_HIDDEN Bool CreateConnectionBlock(void); // added to Xext/panoramiX.c<br>extern int CorePointerProc(DeviceIntPtr dev, int what); // added to Xi/xichangehierarchy.c<br>
extern int CoreKeyboardProc(DeviceIntPtr dev, int what); // added to Xi/xichangehierarchy.c<br><br>Am i missing to include some dependent library or some thing else?<br>please give your valuable suggessions in order to fix this issue.<br>
<br>And please let me know whether the X11R7.5 version is as stable as X11R7.4 version or not??<br>