[LinuxPPS] pps userland tools fail to build

Thorsten Mühlfelder thenktor at gmx.de
Mon Dec 1 14:41:09 CET 2008


The location of the asm header files has changed in 2.6.28 from include/asm-x86 to arch/x86/include/asm (except one file, which is still in the old folder: asm-offsets.h). So I have modified my kernelheaders build script:

# Standard headers
(
        cd ${srcdir}/include
        #cp -rf asm-x86 ${dest}/usr/include
        cp -rf asm-generic ${dest}/usr/include
        cp -rf linux ${dest}/usr/include
        cp -f asm-x86/asm-offsets.h ${srcdir}/arch/x86/include/asm
        cd ${srcdir}/arch/x86/include
        cp -rf asm ${dest}/usr/include/asm-x86
)

It copies the asm-offstes.h file to the new location and then uses the new folder instead of the old one. I hope this fixes all problems.

On Sat, 29 Nov 2008 15:02:10 +0100
Thorsten Mühlfelder <thenktor at gmx.de> wrote:

> OK, I think I have found the problem:
> 
> root[pps-tools]# ls -l /usr/src/linux-2.6.28.0rc6elan/include/asm-x86/
> total 8
> lrwxrwxrwx 1 root root   46 2008-11-29 13:03 asm -> /lib/modules/2.6.28.0rc6elan/build/include/asm
> -rw-r--r-- 1 root root 4127 2008-11-27 21:27 asm-offsets.h
> 
> The asm-x86 directory of the 2.6.28rc6 kernel lacks all the files. So
> my selfmade kernelheaders package lacks the files, too. And of course
> the same for /lib/modules/2.6.28.0rc6elan/build/include/asm.
> 
> Did there somethin change in 2.6.28rc6 build process? Is this a bug?
> 
> PS: Here is the output from 2.6.27.2:
> 
> root[pps-tools]# ls -l /usr/src/linux-2.6.27.2elan/include/asm-x86/
> total 1584
> -rw-rw-r-- 1 root root  4884 2008-10-18 17:57 acpi.h
> -rw-rw-r-- 1 root root  1137 2008-10-18 17:57 agp.h
> -rw-rw-r-- 1 root root   289 2008-10-18 17:57 alternative-asm.h
> -rw-rw-r-- 1 root root  6585 2008-10-18 17:57 alternative.h
> -rw-rw-r-- 1 root root  1121 2008-10-18 17:57 amd_iommu.h
> -rw-rw-r-- 1 root root  9981 2008-10-18 17:57 amd_iommu_types.h
> -rw-rw-r-- 1 root root  2184 2008-10-18 17:57 a.out-core.h
> -rw-rw-r-- 1 root root   693 2008-10-18 17:57 a.out.h
> -rw-rw-r-- 1 root root 10629 2008-10-18 17:57 apicdef.h
> -rw-rw-r-- 1 root root  3249 2008-10-18 17:57 apic.h
> -rw-rw-r-- 1 root root   711 2008-10-18 17:57 arch_hooks.h
> -rw-rw-r-- 1 root root  1043 2008-10-18 17:57 asm.h
> -rw-r--r-- 1 root root  4127 2008-10-20 13:30 asm-offsets.h
> -rw-rw-r-- 1 root root  6049 2008-10-18 17:57 atomic_32.h
> -rw-rw-r-- 1 root root 11175 2008-10-18 17:57 atomic_64.h
> -rw-rw-r-- 1 root root    82 2008-10-18 17:57 atomic.h
> -rw-rw-r-- 1 root root   257 2008-10-18 17:57 auxvec.h
> -rw-rw-r-- 1 root root   397 2008-10-18 17:57 bios_ebda.h
> -rw-rw-r-- 1 root root 11670 2008-10-18 17:57 bitops.h
> -rw-rw-r-- 1 root root   761 2008-10-18 17:57 boot.h
> -rw-rw-r-- 1 root root  2782 2008-10-18 17:57 bootparam.h
> -rw-rw-r-- 1 root root   747 2008-10-18 17:57 bug.h
> -rw-rw-r-- 1 root root   138 2008-10-18 17:57 bugs.h
> -rw-rw-r-- 1 root root  1570 2008-10-18 17:57 byteorder.h
> -rw-rw-r-- 1 root root  4408 2008-10-18 17:57 cacheflush.h
> -rw-rw-r-- 1 root root   538 2008-10-18 17:57 cache.h
> -rw-rw-r-- 1 root root  2461 2008-10-18 17:57 calgary.h
> -rw-rw-r-- 1 root root  3187 2008-10-18 17:57 calling.h
> -rw-rw-r-- 1 root root  4854 2008-10-18 17:57 checksum_32.h
> -rw-rw-r-- 1 root root  5312 2008-10-18 17:57 checksum_64.h
> -rw-rw-r-- 1 root root    86 2008-10-18 17:57 checksum.h
> -rw-rw-r-- 1 root root  9398 2008-10-18 17:57 cmpxchg_32.h
> -rw-rw-r-- 1 root root  4542 2008-10-18 17:57 cmpxchg_64.h
> -rw-rw-r-- 1 root root    84 2008-10-18 17:57 cmpxchg.h
> -rw-rw-r-- 1 root root  4838 2008-10-18 17:57 compat.h
> -rw-rw-r-- 1 root root 10765 2008-10-18 17:57 cpufeature.h
> -rw-rw-r-- 1 root root   395 2008-10-18 17:57 cpu.h
> -rw-rw-r-- 1 root root    33 2008-10-18 17:57 cputime.h
> -rw-rw-r-- 1 root root   693 2008-10-18 17:57 current.h
> -rw-rw-r-- 1 root root  2878 2008-10-18 17:57 debugreg.h
> -rw-rw-r-- 1 root root   860 2008-10-18 17:57 delay.h
> -rw-rw-r-- 1 root root  2354 2008-10-18 17:57 desc_defs.h
> -rw-rw-r-- 1 root root 10192 2008-10-18 17:57 desc.h
> -rw-rw-r-- 1 root root   297 2008-10-18 17:57 device.h
> -rw-rw-r-- 1 root root  1404 2008-10-18 17:57 div64.h
> -rw-rw-r-- 1 root root  9685 2008-10-18 17:57 dma.h
> -rw-rw-r-- 1 root root  7344 2008-10-18 17:57 dma-mapping.h
> -rw-rw-r-- 1 root root   612 2008-10-18 17:57 dmi.h
> -rw-rw-r-- 1 root root  1761 2008-10-18 17:57 ds.h
> -rw-rw-r-- 1 root root  1710 2008-10-18 17:57 dwarf2.h
> -rw-rw-r-- 1 root root  4849 2008-10-18 17:57 e820.h
> -rw-rw-r-- 1 root root   408 2008-10-18 17:57 edac.h
> -rw-rw-r-- 1 root root  3678 2008-10-18 17:57 efi.h
> -rw-rw-r-- 1 root root  9664 2008-10-18 17:57 elf.h
> -rw-rw-r-- 1 root root   329 2008-10-18 17:57 emergency-restart.h
> -rw-rw-r-- 1 root root    31 2008-10-18 17:57 errno.h
> -rw-rw-r-- 1 root root   485 2008-10-18 17:57 fb.h
> -rw-rw-r-- 1 root root    31 2008-10-18 17:57 fcntl.h
> -rw-rw-r-- 1 root root  3636 2008-10-18 17:57 fixmap_32.h
> -rw-rw-r-- 1 root root  2532 2008-10-18 17:57 fixmap_64.h
> -rw-rw-r-- 1 root root  1840 2008-10-18 17:57 fixmap.h
> -rw-rw-r-- 1 root root  6591 2008-10-18 17:57 floppy.h
> -rw-rw-r-- 1 root root   504 2008-10-18 17:57 frame.h
> -rw-rw-r-- 1 root root   273 2008-10-18 17:57 ftrace.h
> -rw-rw-r-- 1 root root  3398 2008-10-18 17:57 futex.h
> -rw-rw-r-- 1 root root  1736 2008-10-18 17:57 gart.h
> -rw-rw-r-- 1 root root  3570 2008-10-18 17:57 genapic_32.h
> -rw-rw-r-- 1 root root  1390 2008-10-18 17:57 genapic_64.h
> -rw-rw-r-- 1 root root    84 2008-10-18 17:57 genapic.h
> -rw-rw-r-- 1 root root  6490 2008-10-18 17:57 geode.h
> -rw-rw-r-- 1 root root  1117 2008-10-18 17:57 gpio.h
> -rw-rw-r-- 1 root root   734 2008-10-18 17:57 hardirq_32.h
> -rw-rw-r-- 1 root root   579 2008-10-18 17:57 hardirq_64.h
> -rw-rw-r-- 1 root root   247 2008-10-18 17:57 hardirq.h
> -rw-rw-r-- 1 root root  2188 2008-10-18 17:57 highmem.h
> -rw-rw-r-- 1 root root  2720 2008-10-18 17:57 hpet.h
> -rw-rw-r-- 1 root root  2067 2008-10-18 17:57 hugetlb.h
> -rw-rw-r-- 1 root root  3253 2008-10-18 17:57 hw_irq.h
> -rw-rw-r-- 1 root root  1301 2008-10-18 17:57 hypertransport.h
> -rw-rw-r-- 1 root root  8802 2008-10-18 17:57 i387.h
> -rw-rw-r-- 1 root root   345 2008-10-18 17:57 i8253.h
> -rw-rw-r-- 1 root root  1539 2008-10-18 17:57 i8259.h
> -rw-rw-r-- 1 root root  3598 2008-10-18 17:57 ia32.h
> -rw-rw-r-- 1 root root   552 2008-10-18 17:57 ia32_unistd.h
> -rw-rw-r-- 1 root root   261 2008-10-18 17:57 idle.h
> -rw-rw-r-- 1 root root   916 2008-10-18 17:57 intel_arch_perfmon.h
> -rw-rw-r-- 1 root root  7703 2008-10-18 17:57 io_32.h
> -rw-rw-r-- 1 root root  6417 2008-10-18 17:57 io_64.h
> -rw-rw-r-- 1 root root  4088 2008-10-18 17:57 io_apic.h
> -rw-rw-r-- 1 root root    31 2008-10-18 17:57 ioctl.h
> -rw-rw-r-- 1 root root  2790 2008-10-18 17:57 ioctls.h
> -rw-rw-r-- 1 root root  3446 2008-10-18 17:57 io.h
> -rw-rw-r-- 1 root root  1054 2008-10-18 17:57 iommu.h
> -rw-rw-r-- 1 root root   627 2008-10-18 17:57 ipcbuf.h
> -rw-rw-r-- 1 root root  2860 2008-10-18 17:57 ipi.h
> -rw-rw-r-- 1 root root  4510 2008-10-18 17:57 irqflags.h
> -rw-rw-r-- 1 root root  1087 2008-10-18 17:57 irq.h
> -rw-rw-r-- 1 root root   613 2008-10-18 17:57 irq_regs_32.h
> -rw-rw-r-- 1 root root    34 2008-10-18 17:57 irq_regs_64.h
> -rw-rw-r-- 1 root root    86 2008-10-18 17:57 irq_regs.h
> -rw-rw-r-- 1 root root  5081 2008-10-18 17:57 irq_vectors.h
> -rw-rw-r-- 1 root root   855 2008-10-18 17:57 ist.h
> -rw-rw-r-- 1 root root   364 2008-10-18 17:57 k8.h
> -rw-rw-r-- 1 root root   525 2008-10-18 17:57 Kbuild
> -rw-rw-r-- 1 root root   943 2008-10-18 17:57 kdebug.h
> -rw-rw-r-- 1 root root  5375 2008-10-18 17:57 kexec.h
> -rw-rw-r-- 1 root root  1699 2008-10-18 17:57 kgdb.h
> -rw-rw-r-- 1 root root   472 2008-10-18 17:57 kmap_types.h
> -rw-rw-r-- 1 root root  3082 2008-10-18 17:57 kprobes.h
> -rw-rw-r-- 1 root root  5208 2008-10-18 17:57 kvm.h
> -rw-rw-r-- 1 root root 20949 2008-10-18 17:57 kvm_host.h
> -rw-rw-r-- 1 root root  3456 2008-10-18 17:57 kvm_para.h
> -rw-rw-r-- 1 root root  6156 2008-10-18 17:57 kvm_x86_emulate.h
> -rw-rw-r-- 1 root root   942 2008-10-18 17:57 ldt.h
> -rw-rw-r-- 1 root root  2625 2008-10-18 17:57 lguest.h
> -rw-rw-r-- 1 root root  2483 2008-10-18 17:57 lguest_hcall.h
> -rw-rw-r-- 1 root root  2110 2008-10-18 17:57 linkage.h
> -rw-rw-r-- 1 root root  5864 2008-10-18 17:57 local.h
> drwxrwxr-x 2 root root  4096 2008-10-18 17:57 mach-bigsmp
> drwxrwxr-x 2 root root  4096 2008-10-18 17:57 mach-default
> drwxrwxr-x 2 root root  4096 2008-10-18 17:57 mach-es7000
> drwxrwxr-x 2 root root  4096 2008-10-18 17:57 mach-generic
> drwxrwxr-x 2 root root  4096 2008-10-18 17:57 mach-numaq
> drwxrwxr-x 2 root root  4096 2008-10-18 17:57 mach-rdc321x
> drwxrwxr-x 2 root root  4096 2008-10-18 17:57 mach-summit
> drwxrwxr-x 2 root root  4096 2008-10-18 17:57 mach-voyager
> -rw-rw-r-- 1 root root   613 2008-10-18 17:57 math_emu.h
> -rw-rw-r-- 1 root root  2821 2008-10-18 17:57 mc146818rtc.h
> -rw-rw-r-- 1 root root  5183 2008-10-18 17:57 mca_dma.h
> -rw-rw-r-- 1 root root  1234 2008-10-18 17:57 mca.h
> -rw-rw-r-- 1 root root  3593 2008-10-18 17:57 mce.h
> -rw-rw-r-- 1 root root   776 2008-10-18 17:57 mman.h
> -rw-rw-r-- 1 root root   321 2008-10-18 17:57 mmconfig.h
> -rw-rw-r-- 1 root root  1369 2008-10-18 17:57 mmu_context_32.h
> -rw-rw-r-- 1 root root  1304 2008-10-18 17:57 mmu_context_64.h
> -rw-rw-r-- 1 root root   800 2008-10-18 17:57 mmu_context.h
> -rw-rw-r-- 1 root root   505 2008-10-18 17:57 mmu.h
> -rw-rw-r-- 1 root root   269 2008-10-18 17:57 mmx.h
> -rw-rw-r-- 1 root root  3482 2008-10-18 17:57 mmzone_32.h
> -rw-rw-r-- 1 root root  1370 2008-10-18 17:57 mmzone_64.h
> -rw-rw-r-- 1 root root    82 2008-10-18 17:57 mmzone.h
> -rw-rw-r-- 1 root root  2302 2008-10-18 17:57 module.h
> -rw-rw-r-- 1 root root  4290 2008-10-18 17:57 mpspec_def.h
> -rw-rw-r-- 1 root root  3984 2008-10-18 17:57 mpspec.h
> -rw-rw-r-- 1 root root  1132 2008-10-18 17:57 msgbuf.h
> -rw-rw-r-- 1 root root  1513 2008-10-18 17:57 msidef.h
> -rw-rw-r-- 1 root root  5913 2008-10-18 17:57 msr.h
> -rw-rw-r-- 1 root root 10785 2008-10-18 17:57 msr-index.h
> -rw-rw-r-- 1 root root  6265 2008-10-18 17:57 mtrr.h
> -rw-rw-r-- 1 root root  3953 2008-10-18 17:57 mutex_32.h
> -rw-rw-r-- 1 root root  2921 2008-10-18 17:57 mutex_64.h
> -rw-rw-r-- 1 root root    80 2008-10-18 17:57 mutex.h
> -rw-rw-r-- 1 root root  2304 2008-10-18 17:57 nmi.h
> -rw-rw-r-- 1 root root  3252 2008-10-18 17:57 nops.h
> -rw-rw-r-- 1 root root   229 2008-10-18 17:57 numa_32.h
> -rw-rw-r-- 1 root root  1154 2008-10-18 17:57 numa_64.h
> -rw-rw-r-- 1 root root    78 2008-10-18 17:57 numa.h
> -rw-rw-r-- 1 root root  6034 2008-10-18 17:57 numaq.h
> -rw-rw-r-- 1 root root  3092 2008-10-18 17:57 olpc.h
> -rw-rw-r-- 1 root root  2915 2008-10-18 17:57 page_32.h
> -rw-rw-r-- 1 root root  3008 2008-10-18 17:57 page_64.h
> -rw-rw-r-- 1 root root  4998 2008-10-18 17:57 page.h
> -rw-rw-r-- 1 root root   455 2008-10-18 17:57 param.h
> -rw-rw-r-- 1 root root 44203 2008-10-18 17:57 paravirt.h
> -rw-rw-r-- 1 root root   295 2008-10-18 17:57 parport.h
> -rw-rw-r-- 1 root root   500 2008-10-18 17:57 pat.h
> -rw-rw-r-- 1 root root   916 2008-10-18 17:57 pci_32.h
> -rw-rw-r-- 1 root root  1852 2008-10-18 17:57 pci_64.h
> -rw-rw-r-- 1 root root   810 2008-10-18 17:57 pci-direct.h
> -rw-rw-r-- 1 root root  2714 2008-10-18 17:57 pci.h
> -rw-rw-r-- 1 root root  3954 2008-10-18 17:57 pda.h
> -rw-rw-r-- 1 root root  5848 2008-10-18 17:57 percpu.h
> -rw-rw-r-- 1 root root  3545 2008-10-18 17:57 pgalloc.h
> -rw-rw-r-- 1 root root   367 2008-10-18 17:57 pgtable-2level-defs.h
> -rw-rw-r-- 1 root root  2087 2008-10-18 17:57 pgtable-2level.h
> -rw-rw-r-- 1 root root  5684 2008-10-18 17:57 pgtable_32.h
> -rw-rw-r-- 1 root root   560 2008-10-18 17:57 pgtable-3level-defs.h
> -rw-rw-r-- 1 root root  4882 2008-10-18 17:57 pgtable-3level.h
> -rw-rw-r-- 1 root root  8000 2008-10-18 17:57 pgtable_64.h
> -rw-rw-r-- 1 root root 16071 2008-10-18 17:57 pgtable.h
> -rw-rw-r-- 1 root root    30 2008-10-18 17:57 poll.h
> -rw-rw-r-- 1 root root  2280 2008-10-18 17:57 posix_types_32.h
> -rw-rw-r-- 1 root root  3263 2008-10-18 17:57 posix_types_64.h
> -rw-rw-r-- 1 root root   220 2008-10-18 17:57 posix_types.h
> -rw-rw-r-- 1 root root   166 2008-10-18 17:57 prctl.h
> -rw-rw-r-- 1 root root   681 2008-10-18 17:57 processor-cyrix.h
> -rw-rw-r-- 1 root root  3421 2008-10-18 17:57 processor-flags.h
> -rw-rw-r-- 1 root root 22952 2008-10-18 17:57 processor.h
> -rw-rw-r-- 1 root root   693 2008-10-18 17:57 proto.h
> -rw-rw-r-- 1 root root  3587 2008-10-18 17:57 ptrace-abi.h
> -rw-rw-r-- 1 root root  5188 2008-10-18 17:57 ptrace.h
> -rw-rw-r-- 1 root root  1291 2008-10-18 17:57 pvclock-abi.h
> -rw-rw-r-- 1 root root   417 2008-10-18 17:57 pvclock.h
> -rw-rw-r-- 1 root root   138 2008-10-18 17:57 reboot_fixups.h
> -rw-rw-r-- 1 root root   493 2008-10-18 17:57 reboot.h
> -rw-rw-r-- 1 root root  2089 2008-10-18 17:57 required-features.h
> -rw-rw-r-- 1 root root    34 2008-10-18 17:57 resource.h
> -rw-rw-r-- 1 root root   513 2008-10-18 17:57 resume-trace.h
> -rw-rw-r-- 1 root root  2582 2008-10-18 17:57 rio.h
> -rw-rw-r-- 1 root root    29 2008-10-18 17:57 rtc.h
> -rw-rw-r-- 1 root root   187 2008-10-18 17:57 rwlock.h
> -rw-rw-r-- 1 root root  7254 2008-10-18 17:57 rwsem.h
> -rw-rw-r-- 1 root root   749 2008-10-18 17:57 scatterlist.h
> -rw-rw-r-- 1 root root   354 2008-10-18 17:57 seccomp_32.h
> -rw-rw-r-- 1 root root   610 2008-10-18 17:57 seccomp_64.h
> -rw-rw-r-- 1 root root    84 2008-10-18 17:57 seccomp.h
> -rw-rw-r-- 1 root root    34 2008-10-18 17:57 sections.h
> -rw-rw-r-- 1 root root  6294 2008-10-18 17:57 segment.h
> -rw-rw-r-- 1 root root   699 2008-10-18 17:57 sembuf.h
> -rw-rw-r-- 1 root root  1052 2008-10-18 17:57 serial.h
> -rw-rw-r-- 1 root root  2477 2008-10-18 17:57 setup.h
> -rw-rw-r-- 1 root root  1324 2008-10-18 17:57 shmbuf.h
> -rw-rw-r-- 1 root root   154 2008-10-18 17:57 shmparam.h
> -rw-rw-r-- 1 root root  1543 2008-10-18 17:57 sigcontext32.h
> -rw-rw-r-- 1 root root  4621 2008-10-18 17:57 sigcontext.h
> -rw-rw-r-- 1 root root   173 2008-10-18 17:57 siginfo.h
> -rw-rw-r-- 1 root root  5527 2008-10-18 17:57 signal.h
> -rw-rw-r-- 1 root root  4950 2008-10-18 17:57 smp.h
> -rw-rw-r-- 1 root root  1244 2008-10-18 17:57 socket.h
> -rw-rw-r-- 1 root root   361 2008-10-18 17:57 sockios.h
> -rw-rw-r-- 1 root root   868 2008-10-18 17:57 sparsemem.h
> -rw-rw-r-- 1 root root  9066 2008-10-18 17:57 spinlock.h
> -rw-rw-r-- 1 root root   375 2008-10-18 17:57 spinlock_types.h
> -rw-rw-r-- 1 root root  1166 2008-10-18 17:57 srat.h
> -rw-rw-r-- 1 root root   621 2008-10-18 17:57 stacktrace.h
> -rw-rw-r-- 1 root root   979 2008-10-18 17:57 statfs.h
> -rw-rw-r-- 1 root root  2302 2008-10-18 17:57 stat.h
> -rw-rw-r-- 1 root root  7394 2008-10-18 17:57 string_32.h
> -rw-rw-r-- 1 root root  1598 2008-10-18 17:57 string_64.h
> -rw-rw-r-- 1 root root    82 2008-10-18 17:57 string.h
> -rw-rw-r-- 1 root root  1338 2008-10-18 17:57 suspend_32.h
> -rw-rw-r-- 1 root root  1307 2008-10-18 17:57 suspend_64.h
> -rw-rw-r-- 1 root root    84 2008-10-18 17:57 suspend.h
> -rw-rw-r-- 1 root root  2022 2008-10-18 17:57 swiotlb.h
> -rw-rw-r-- 1 root root  3437 2008-10-18 17:57 sync_bitops.h
> -rw-rw-r-- 1 root root   370 2008-10-18 17:57 system_64.h
> -rw-rw-r-- 1 root root 12298 2008-10-18 17:57 system.h
> -rw-rw-r-- 1 root root  1733 2008-10-18 17:57 tce.h
> -rw-rw-r-- 1 root root  4639 2008-10-18 17:57 termbits.h
> -rw-rw-r-- 1 root root  3080 2008-10-18 17:57 termios.h
> -rw-rw-r-- 1 root root   206 2008-10-18 17:57 therm_throt.h
> -rw-rw-r-- 1 root root  7971 2008-10-18 17:57 thread_info.h
> -rw-rw-r-- 1 root root  1094 2008-10-18 17:57 time.h
> -rw-rw-r-- 1 root root  1640 2008-10-18 17:57 timer.h
> -rw-rw-r-- 1 root root   483 2008-10-18 17:57 timex.h
> -rw-rw-r-- 1 root root  3931 2008-10-18 17:57 tlbflush.h
> -rw-rw-r-- 1 root root   296 2008-10-18 17:57 tlb.h
> -rw-rw-r-- 1 root root  6854 2008-10-18 17:57 topology.h
> -rw-rw-r-- 1 root root   465 2008-10-18 17:57 trampoline.h
> -rw-rw-r-- 1 root root  2340 2008-10-18 17:57 traps.h
> -rw-rw-r-- 1 root root  1186 2008-10-18 17:57 tsc.h
> -rw-rw-r-- 1 root root   634 2008-10-18 17:57 types.h
> -rw-rw-r-- 1 root root  6645 2008-10-18 17:57 uaccess_32.h
> -rw-rw-r-- 1 root root  5769 2008-10-18 17:57 uaccess_64.h
> -rw-rw-r-- 1 root root 13692 2008-10-18 17:57 uaccess.h
> -rw-rw-r-- 1 root root   279 2008-10-18 17:57 ucontext.h
> -rw-rw-r-- 1 root root   306 2008-10-18 17:57 unaligned.h
> -rw-rw-r-- 1 root root 10798 2008-10-18 17:57 unistd_32.h
> -rw-rw-r-- 1 root root 22017 2008-10-18 17:57 unistd_64.h
> -rw-rw-r-- 1 root root   200 2008-10-18 17:57 unistd.h
> -rw-rw-r-- 1 root root   285 2008-10-18 17:57 unwind.h
> -rw-rw-r-- 1 root root  4985 2008-10-18 17:57 user_32.h
> -rw-rw-r-- 1 root root  2077 2008-10-18 17:57 user32.h
> -rw-rw-r-- 1 root root  5288 2008-10-18 17:57 user_64.h
> -rw-rw-r-- 1 root root    78 2008-10-18 17:57 user.h
> drwxrwxr-x 2 root root  4096 2008-10-18 17:57 uv
> -rw-rw-r-- 1 root root  1338 2008-10-18 17:57 vdso.h
> -rw-rw-r-- 1 root root   381 2008-10-18 17:57 vga.h
> -rw-rw-r-- 1 root root   610 2008-10-18 17:57 vgtod.h
> -rw-rw-r-- 1 root root  1921 2008-10-18 17:57 vic.h
> drwxrwxr-x 2 root root  4096 2008-10-18 17:57 visws
> -rw-rw-r-- 1 root root  5477 2008-10-18 17:57 vm86.h
> -rw-rw-r-- 1 root root  7309 2008-10-18 17:57 vmi.h
> -rw-rw-r-- 1 root root  3222 2008-10-18 17:57 vmi_time.h
> -rw-rw-r-- 1 root root 15733 2008-10-18 17:57 voyager.h
> -rw-rw-r-- 1 root root  1248 2008-10-18 17:57 vsyscall.h
> drwxrwxr-x 2 root root  4096 2008-10-18 17:57 xen
> -rw-rw-r-- 1 root root 21491 2008-10-18 17:57 xor_32.h
> -rw-rw-r-- 1 root root  8046 2008-10-18 17:57 xor_64.h
> -rw-rw-r-- 1 root root    76 2008-10-18 17:57 xor.h
> 
> On Sat, 29 Nov 2008 14:04:02 +0100
> Thorsten Mühlfelder <thenktor at gmx.de> wrote:
> 
> > Hi
> > 
> > I just wanted to build 2.6.28 RC6 kernel + userland tools. Kernel patch and build was OK, but userland tools fail to build.
> > Here is my build script:
> > 	pkgver=2.6.28.0rc6elan
> > 	cd /usr/include
> >         if [ ! -e "linux.old" ]; then
> >                 mv linux linux.old
> >                 mv asm asm.old
> >                 mv asm-generic asm-generic.old
> >         fi
> >         if [ ! -e "/lib/modules/$pkgver/" ]; then
> >                 echo "/lib/modules/$pkgver/ not found. Install kernel package first ;)"
> >                 return 1
> >         fi
> >         ln -sf /lib/modules/$pkgver/build/include/linux linux
> >         ln -sf /lib/modules/$pkgver/build/include/asm asm
> >         ln -sf /lib/modules/$pkgver/build/include/asm-generic asm-generic
> >         cp /lib/modules/$pkgver/build/Documentation/pps/timepps.h timepps.h
> >         # build the tools
> >         cd /usr/src/linux-$pkgver/Documentation/pps
> >         make -j2 || return 1
> > 
> > And this is the output:
> > root[pps-tools]# ./build-pps-tools.sh 
> > cc -O2 -march=i486 -mtune=i686 -Wall -O2 -D_GNU_SOURCE -I . -ggdb -D__N_PPS=18    ppstest.c   -o ppstest
> > cc -O2 -march=i486 -mtune=i686 -Wall -O2 -D_GNU_SOURCE -I . -ggdb -D__N_PPS=18    ppsldisc.c   -o ppsldisc
> > In file included from /usr/include/bits/errno.h:25,
> >                  from /usr/include/errno.h:36,
> >                  from ppsldisc.c:4:
> > /usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
> > In file included from /usr/include/sys/ioctl.h:27,
> >                  from ppsldisc.c:5:
> > /usr/include/bits/ioctls.h:24:24: error: asm/ioctls.h: No such file or directory
> > ppsldisc.c: In function 'main':
> > ppsldisc.c:37: error: 'TIOCSETD' undeclared (first use in this function)
> > ppsldisc.c:37: error: (Each undeclared identifier is reported only once
> > ppsldisc.c:37: error: for each function it appears in.)
> > make: *** [ppsldisc] Error 1
> > make: *** Waiting for unfinished jobs....
> > In file included from /usr/include/bits/errno.h:25,
> >                  from /usr/include/errno.h:36,
> >                  from ppstest.c:4:
> > /usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
> > In file included from ./timepps.h:24,
> >                  from ppstest.c:10:
> > /usr/include/sys/syscall.h:25:24: error: asm/unistd.h: No such file or directory
> > In file included from /usr/include/linux/types.h:11,
> >                  from /usr/include/linux/pps.h:38,
> >                  from ./timepps.h:27,
> >                  from ppstest.c:10:
> > /usr/include/linux/posix_types.h:47:29: error: asm/posix_types.h: No such file or directory
> > In file included from /usr/include/linux/pps.h:38,
> >                  from ./timepps.h:27,
> >                  from ppstest.c:10:
> > /usr/include/linux/types.h:12:23: error: asm/types.h: No such file or directory
> > In file included from /usr/include/linux/pps.h:38,
> >                  from ./timepps.h:27,
> >                  from ppstest.c:10:
> > /usr/include/linux/types.h:180: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__le16'
> > /usr/include/linux/types.h:181: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__be16'
> > /usr/include/linux/types.h:182: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__le32'
> > /usr/include/linux/types.h:183: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__be32'
> > /usr/include/linux/types.h:185: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__le64'
> > /usr/include/linux/types.h:186: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__be64'
> > /usr/include/linux/types.h:188: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__sum16'
> > /usr/include/linux/types.h:189: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__wsum'
> > In file included from /usr/include/sys/ioctl.h:27,
> >                  from /usr/include/linux/pps.h:40,
> >                  from ./timepps.h:27,
> >                  from ppstest.c:10:
> > /usr/include/bits/ioctls.h:24:24: error: asm/ioctls.h: No such file or directory
> > In file included from ./timepps.h:27,
> >                  from ppstest.c:10:
> > /usr/include/linux/pps.h:61: error: expected specifier-qualifier-list before '__s64'
> > /usr/include/linux/pps.h:68: error: expected specifier-qualifier-list before '__u32'
> > In file included from /usr/include/linux/pps.h:124,
> >                  from ./timepps.h:27,
> >                  from ppstest.c:10:
> > /usr/include/linux/ioctl.h:4:23: error: asm/ioctl.h: No such file or directory
> > In file included from ppstest.c:10:
> > ./timepps.h: In function 'time_pps_create':
> > ./timepps.h:89: error: 'EINVAL' undeclared (first use in this function)
> > ./timepps.h:89: error: (Each undeclared identifier is reported only once
> > ./timepps.h:89: error: for each function it appears in.)
> > ./timepps.h:95: warning: implicit declaration of function '_IO'
> > ./timepps.h:97: error: 'EOPNOTSUPP' undeclared (first use in this function)
> > ./timepps.h: In function 'time_pps_getparams':
> > ./timepps.h:120: warning: implicit declaration of function '_IOR'
> > ./timepps.h:120: error: expected expression before 'struct'
> > ./timepps.h:124: error: 'struct pps_ktime' has no member named 'sec'
> > ./timepps.h:125: error: 'struct pps_ktime' has no member named 'nsec'
> > ./timepps.h:126: error: 'struct pps_ktime' has no member named 'sec'
> > ./timepps.h:127: error: 'struct pps_ktime' has no member named 'nsec'
> > ./timepps.h: In function 'time_pps_setparams':
> > ./timepps.h:139: error: 'struct pps_ktime' has no member named 'sec'
> > ./timepps.h:140: error: 'struct pps_ktime' has no member named 'nsec'
> > ./timepps.h:141: error: 'struct pps_ktime' has no member named 'sec'
> > ./timepps.h:142: error: 'struct pps_ktime' has no member named 'nsec'
> > ./timepps.h:144: warning: implicit declaration of function '_IOW'
> > ./timepps.h:144: error: expected expression before 'struct'
> > ./timepps.h: In function 'time_pps_getcap':
> > ./timepps.h:150: error: expected expression before 'int'
> > ./timepps.h: In function 'time_pps_fetch':
> > ./timepps.h:162: error: 'EINVAL' undeclared (first use in this function)
> > ./timepps.h:167: error: 'struct pps_ktime' has no member named 'sec'
> > ./timepps.h:168: error: 'struct pps_ktime' has no member named 'nsec'
> > ./timepps.h:169: error: 'struct pps_ktime' has no member named 'flags'
> > ./timepps.h:171: error: 'struct pps_ktime' has no member named 'flags'
> > ./timepps.h:173: warning: implicit declaration of function '_IOWR'
> > ./timepps.h:173: error: expected expression before 'struct'
> > ./timepps.h:175: error: 'struct pps_kinfo' has no member named 'assert_sequence'
> > ./timepps.h:176: error: 'struct pps_kinfo' has no member named 'clear_sequence'
> > ./timepps.h:177: error: 'struct pps_kinfo' has no member named 'assert_tu'
> > ./timepps.h:178: error: 'struct pps_kinfo' has no member named 'assert_tu'
> > ./timepps.h:179: error: 'struct pps_kinfo' has no member named 'clear_tu'
> > ./timepps.h:180: error: 'struct pps_kinfo' has no member named 'clear_tu'
> > ./timepps.h:181: error: 'struct pps_kinfo' has no member named 'current_mode'
> > ./timepps.h: In function 'time_pps_kcbind':
> > ./timepps.h:191: error: 'EOPNOTSUPP' undeclared (first use in this function)
> > ppstest.c: In function 'fetch_source':
> > ppstest.c:89: error: 'EINTR' undeclared (first use in this function)
> > ppstest.c: In function 'main':
> > ppstest.c:142: error: 'ETIMEDOUT' undeclared (first use in this function)
> > make: *** [ppstest] Error 1
> > build() failed.
> > root[pps-tools]# 
> > 
> > _______________________________________________
> > LinuxPPS mailing list
> > LinuxPPS at ml.enneenne.com
> > http://ml.enneenne.com/cgi-bin/mailman/listinfo/linuxpps
> > Wiki: http://wiki.enneenne.com/index.php/LinuxPPS_support
> 
> _______________________________________________
> LinuxPPS mailing list
> LinuxPPS at ml.enneenne.com
> http://ml.enneenne.com/cgi-bin/mailman/listinfo/linuxpps
> Wiki: http://wiki.enneenne.com/index.php/LinuxPPS_support



More information about the LinuxPPS mailing list