Opened 19 years ago

Closed 18 years ago

Last modified 18 years ago

#302 closed bug (fixed)

Haiku does not compile cleanly on Linux here

Reported by: tombhadAC@… Owned by: bonefish
Priority: low Milestone: R1
Component: Build System Version:
Keywords: Cc: diver
Blocked By: Blocking:
Platform: All

Description

PCIHeaderGen1 generated/objects/haiku/x86/common/preferences/devices/pcihdr.h awk: src/preferences/devices/pci-header.awk: line 183: function strftime never defined awk: src/preferences/devices/pci-header.awk: line 183: function systime never defined

awk -v HEADERFILE=generated/objects/haiku/x86/common/preferences/devices/pcihdr.h -f src/preferences/devices/pci-header.awk src/preferences/devices/pci.ids

...failed PCIHeaderGen1 generated/objects/haiku/x86/common/preferences/devices/pcihdr.h ... ...skipped <src!add-ons!kernel!bus_managers!pci>pci_info.o for lack of <src!add-ons!kernel!bus_managers!pci>pci_info.cpp... ...skipped pci for lack of <src!add-ons!kernel!bus_managers!pci>pci_info.o... ...skipped <HaikuImage>haiku.image-copy-files-dummy-beos/system/add-ons/kernel/bus_managers for lack of pci...

Attachments (2)

pci-header-update.diff (1.7 KB ) - added by johndrinkwater 19 years ago.
A fix for --traditional awk
pci-header-update.2.diff (2.1 KB ) - added by johndrinkwater 19 years ago.
The actual patch, ignore the previous version

Download all attachments as: .zip

Change History (12)

comment:1 by johndrinkwater, 19 years ago

The line in question isnt that important (it just outputs the date/time the header was generated). You should be able to safely remove this line from src/preferences/devices/pci-header.awk :

print "#\tHeader created on " strftime( "%A, %d %b %Y %H:%M:%S %Z", systime() )

ofile

Can you give me some details about your system / awk version?

comment:2 by johndrinkwater, 19 years ago

Cc: john@… added

comment:3 by tombhadAC@…, 19 years ago

after removing the line: PCIHeaderGen1 generated/objects/haiku/x86/common/preferences/devices/pcihdr.h C++ generated/objects/haiku/x86/release/add-ons/kernel/bus_managers/pci/pci_info.o src/add-ons/kernel/bus_managers/pci/pci_info.cpp: In function `void get_device_info(short unsigned int, short unsigned int, const char , const char )': src/add-ons/kernel/bus_managers/pci/pci_info.cpp:684: `PCI_DEVTABLE_LEN' undeclared (first use this function) src/add-ons/kernel/bus_managers/pci/pci_info.cpp:684: (Each undeclared identifier is reported only once src/add-ons/kernel/bus_managers/pci/pci_info.cpp:684: for each function it appears in.) src/add-ons/kernel/bus_managers/pci/pci_info.cpp:685: `PciDevTable' undeclared (first use this function)

/home/tombhad/Projects/Haiku/HaikuSVN/generated/cross-tools/bin/i586-pc-beos-gcc -c "src/add-ons/kernel/bus_managers/pci/pci_info.cpp" -O -Wall -nostdinc -Wno-multichar -D_ZETA_USING_DEPRECATED_API_=1 -finline -fno-builtin -fno-exceptions -DBOCHS_DEBUG_HACK=0 -D_KERNEL_MODE -DHAIKU -DINTEL -DARCH_x86 -D_BEOS_R5_COMPATIBLE_ -DHAIKU_TARGET_PLATFORM_HAIKU -Isrc/add-ons/kernel/bus_managers/pci -Igenerated/objects/common/add-ons/kernel/bus_managers/pci -Igenerated/objects/linux/x86/common/add-ons/kernel/bus_managers/pci -Igenerated/objects/haiku/x86/common/add-ons/kernel/bus_managers/pci -Igenerated/objects/haiku/x86/common/preferences/devices -I- -Iheaders/private/kernel -Iheaders/private/kernel/util -Iheaders/private/. -Iheaders/private/kernel -Iheaders/private/libroot -Iheaders/private/kernel/boot/platform/bios_ia32 -Iheaders/private/kernel/arch/x86 -Iheaders -Iheaders/posix -Iheaders/gnu -Iheaders/glibc -Iheaders/os -Iheaders/os/add-ons -Iheaders/os/add-ons/file_system -Iheaders/os/add-ons/graphics -Iheaders/os/add-ons/input_server -Iheaders/os/add-ons/screen_saver -Iheaders/os/add-ons/tracker -Iheaders/os/app -Iheaders/os/device -Iheaders/os/drivers -Iheaders/os/game -Iheaders/os/interface -Iheaders/os/kernel -Iheaders/os/media -Iheaders/os/mail -Iheaders/os/midi -Iheaders/os/midi2 -Iheaders/os/net -Iheaders/os/opengl -Iheaders/os/storage -Iheaders/os/support -Iheaders/os/translation -Iheaders/private/. -Iheaders/cpp -I/home/tombhad/Projects/Haiku/HaikuSVN/generated/cross-tools/lib/gcc-lib/i586-pc-beos/2.95.3-beos-041202/include -o "generated/objects/haiku/x86/release/add-ons/kernel/bus_managers/pci/pci_info.o" ;

...failed C++ generated/objects/haiku/x86/release/add-ons/kernel/bus_managers/pci/pci_info.o ...

comment:4 by tombhadAC@…, 19 years ago

about my system: [tombhad@amdAC HaikuSVN]$ gcc --version gcc (GCC) 4.0.3 [tombhad@amdAC HaikuSVN]$ uname -a Linux amdAC 2.6.15-archck #1 SMP PREEMPT Sun Mar 12 12:27:36 EST 2006 i686 AMD Athlon(tm) XP 1700+ AuthenticAMD GNU/Linux [tombhad@amdAC HaikuSVN]$ gawk --version GNU Awk 3.1.5 (ArchLinuX 0.7.1 "noodle")

comment:5 by johndrinkwater, 19 years ago

attachments.isobsolete: 01

by johndrinkwater, 19 years ago

Attachment: pci-header-update.diff added

A fix for --traditional awk

by johndrinkwater, 19 years ago

Attachment: pci-header-update.2.diff added

The actual patch, ignore the previous version

comment:6 by johndrinkwater, 19 years ago

I just got this mail from the reporter,

"Many thanks for your patch. Now I can compile Haiku cleanly on Linux. -- Daniel W?nsch <e@mail>"

comment:7 by diver, 19 years ago

Cc: diver added

comment:8 by korli, 18 years ago

Status: newclosed

comment:9 by korli, 18 years ago

Should be fixed. Please reopen if needed.

comment:10 by korli, 18 years ago

Resolution: fixed
Note: See TracTickets for help on using tickets.