Re: [Xpert] stripping X server modules on Alpha makes them unusable
On Thu, 7 Dec 2000, Branden Robinson wrote: > Stuart may not be familiar with the vagaries of Debian packaging. > > I build with debugging symbols enabled, but Debian Policy insists that they > be stripped out when the package is generated. > > My completely uneducated guess is that something in module loader "knows" > that debugging symbols are enabled and depends on this, so that when later > this same code is run stripped, it becomes confused? Just as a note... I don't know how other rpm based distributions did it, but in the rpms I built, what I did was this: %define __os_install_post %{___build_post} in the top of the spec file, so that rpm post scripts will not insist in strip everything. and added this to the bottom of the %install (set +x; strip %{buildroot}%{prefix}/bin/* || :) (set +x; strip %{buildroot}%{prefix}/lib/lib*.so* || :) > -- > G. Branden Robinson| We either learn from history or, > Debian GNU/Linux | uh, well, something bad will happen. > [EMAIL PROTECTED] | -- Bob Church > http://deadbeast.net/~branden/ | Paulo
Re: [Xpert] stripping X server modules on Alpha makes them unusable
On Thu, 7 Dec 2000, Branden Robinson wrote: > Stuart may not be familiar with the vagaries of Debian packaging. > > I build with debugging symbols enabled, but Debian Policy insists that they > be stripped out when the package is generated. > > My completely uneducated guess is that something in module loader "knows" > that debugging symbols are enabled and depends on this, so that when later > this same code is run stripped, it becomes confused? Just as a note... I don't know how other rpm based distributions did it, but in the rpms I built, what I did was this: %define __os_install_post %{___build_post} in the top of the spec file, so that rpm post scripts will not insist in strip everything. and added this to the bottom of the %install (set +x; strip %{buildroot}%{prefix}/bin/* || :) (set +x; strip %{buildroot}%{prefix}/lib/lib*.so* || :) > -- > G. Branden Robinson| We either learn from history or, > Debian GNU/Linux | uh, well, something bad will happen. > [EMAIL PROTECTED] | -- Bob Church > http://deadbeast.net/~branden/ | Paulo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: problem building 4.0.1d xf86cfg on SPARC
On Sun, 29 Oct 2000, Branden Robinson wrote: Hi, You can add these to xc/programs/Xserver/hw/xfree86/xf86cfg/loader.c. I think one possible solution is to patch xc/programs/Xserver/hw/xfree86/loader/xf86sym.c to use it in xf86cfg, so that when that file is changed, there will be no need to updates to xf86cfg/loader.c. But xf86cfg does not need everything, just enough symbols to run the Setup from the module, and the AvailableOptions functions. > gcc -o xf86cfg -O2 -ansi -pedantic -Wall -Wpointer-arith -Wstrict-prototypes > -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls > -Wnested-externs -L../../../../../exports/lib accessx.ocards.o > config.ocard-cfg.o help.o interface.o keyboard-cfg.o > libc_wrapper.o loader.o monitor-cfg.o mouse-cfg.o options.o > screen-cfg.o screen.ostartx.ostubs.o vidmode.o > xf86config.o -lxkbui -lxkbfile -lxf86config -lXxf86misc > -lXxf86vm -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lXt -lSM -lICE > -lXpm -L../loader -lxloader -L../dummylib -ldummy -rdynamic -ldl -lXext > -lX11 -lm -Wl,-rpath-link,../../../../../exports/lib > ../loader/libxloader.a(loader.o): In function `LoaderInit': > loader.o(.text+0x8c): undefined reference to `sparcUseHWMulDiv' > loader.o(.text+0x9c): undefined reference to `SparcLookupTab' > loader.o(.text+0xa0): undefined reference to `SparcV89LookupTab' > loader.o(.text+0xa4): undefined reference to `SparcV89LookupTab' > loader.o(.text+0xbc): undefined reference to `SparcLookupTab' > collect2: ld returned 1 exit status > > These symbols appear to be defined in the following files: > > xc/programs/Xserver/hw/xfree86/loader/xf86sym.c:LOOKUP SparcV89LookupTab[] = { > xc/programs/Xserver/hw/xfree86/loader/xf86sym.c:LOOKUP SparcLookupTab[] = { > xc/programs/Xserver/hw/xfree86/os-support/bus/sparcPci.c:int > sparcUseHWMulDiv(void); > > -- > G. Branden Robinson |I must despise the world which does not > Debian GNU/Linux|know that music is a higher revelation > [EMAIL PROTECTED] |than all wisdom and philosophy. > http://www.debian.org/~branden/ |-- Ludwig van Beethoven Paulo
Re: problem building 4.0.1d xf86cfg on SPARC
On Sun, 29 Oct 2000, Branden Robinson wrote: Hi, You can add these to xc/programs/Xserver/hw/xfree86/xf86cfg/loader.c. I think one possible solution is to patch xc/programs/Xserver/hw/xfree86/loader/xf86sym.c to use it in xf86cfg, so that when that file is changed, there will be no need to updates to xf86cfg/loader.c. But xf86cfg does not need everything, just enough symbols to run the Setup from the module, and the AvailableOptions functions. > gcc -o xf86cfg -O2 -ansi -pedantic -Wall -Wpointer-arith -Wstrict-prototypes >-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs >-L../../../../../exports/lib accessx.ocards.o config.ocard-cfg.o >help.o interface.o keyboard-cfg.o libc_wrapper.o loader.o monitor-cfg.o > mouse-cfg.o options.o screen-cfg.o screen.ostartx.o >stubs.o vidmode.o xf86config.o -lxkbui -lxkbfile -lxf86config -lXxf86misc >-lXxf86vm -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lXt -lSM -lICE >-lXpm -L../loader -lxloader -L../dummylib -ldummy -rdynamic -ldl -lXext -lX11 >-lm -Wl,-rpath-link,../../../../../exports/lib > ../loader/libxloader.a(loader.o): In function `LoaderInit': > loader.o(.text+0x8c): undefined reference to `sparcUseHWMulDiv' > loader.o(.text+0x9c): undefined reference to `SparcLookupTab' > loader.o(.text+0xa0): undefined reference to `SparcV89LookupTab' > loader.o(.text+0xa4): undefined reference to `SparcV89LookupTab' > loader.o(.text+0xbc): undefined reference to `SparcLookupTab' > collect2: ld returned 1 exit status > > These symbols appear to be defined in the following files: > > xc/programs/Xserver/hw/xfree86/loader/xf86sym.c:LOOKUP SparcV89LookupTab[] = { > xc/programs/Xserver/hw/xfree86/loader/xf86sym.c:LOOKUP SparcLookupTab[] = { > xc/programs/Xserver/hw/xfree86/os-support/bus/sparcPci.c:int sparcUseHWMulDiv(void); > > -- > G. Branden Robinson |I must despise the world which does not > Debian GNU/Linux|know that music is a higher revelation > [EMAIL PROTECTED] |than all wisdom and philosophy. > http://www.debian.org/~branden/ |-- Ludwig van Beethoven Paulo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]