Hi All, 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
arm-linux-gcc -shared -Wl,-soname,libXi.so.0 -o libXi.so.0 *.o But this is causing the following error: xichangehierarchy.o: In function `ProcXIChangeHierarchy': xichangehierarchy.c:(.text+0xb14): undefined reference to `CorePointerProc' xichangehierarchy.c:(.text+0xb18): undefined reference to `CoreKeyboardProc' /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 /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 collect2: ld returned 1 exit status The same kind of problem is occurring in case of Xext also as shown below arm-linux-gcc -shared -Wl,-soname,libXext.so.0 -o libXext.so.0 *.o output: panoramiX.o: In function `PanoramiXCreateConnectionBlock': panoramiX.c:(.text+0x26a4): undefined reference to `CreateConnectionBlock' xtest.o: In function `AllocXTestDevice': xtest.c:(.text+0x2fc): undefined reference to `CorePointerProc' xtest.c:(.text+0x300): undefined reference to `CoreKeyboardProc' /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 /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 collect2: ld returned 1 exit status Even i try declaring them as below its not able to fix the above error. same error is persisting extern _X_HIDDEN Bool CreateConnectionBlock(void); // added to Xext/panoramiX.c extern int CorePointerProc(DeviceIntPtr dev, int what); // added to Xi/xichangehierarchy.c extern int CoreKeyboardProc(DeviceIntPtr dev, int what); // added to Xi/xichangehierarchy.c Am i missing to include some dependent library or some thing else? please give your valuable suggessions in order to fix this issue. And please let me know whether the X11R7.5 version is as stable as X11R7.4 version or not??
_______________________________________________ xorg-devel mailing list [email protected] http://lists.x.org/mailman/listinfo/xorg-devel
