[haiku-bugs] Re: [Haiku] #8019: Cannot build driver with makefile-engine

  • From: "siarzhuk" <trac@xxxxxxxxxxxx>
  • Date: Wed, 12 Oct 2011 08:47:45 -0000

#8019: Cannot build driver with makefile-engine
--------------------------+----------------------------
   Reporter:  jackburton  |      Owner:  nobody
       Type:  bug         |     Status:  new
   Priority:  normal      |  Milestone:  R1
  Component:  - General   |    Version:  R1/Development
 Resolution:              |   Keywords:
 Blocked By:              |   Blocking:
Has a Patch:  0           |   Platform:  All
--------------------------+----------------------------

Comment (by siarzhuk):

 In case the linker complaints about missed "main" linkage - this can mean
 that the type of module is default - APP but not the DRIVER.

 {{{
 9       # specify the name of the binary
 10      NAME= hpet
 11
 12      # specify the type of binary
 13      #   APP:    Application
 14      #   SHARED: Shared library or add-on
 15      #   STATIC: Static library archive
 16      #   DRIVER: Kernel Driver
 17      TYPE= DRIVER
 }}}

 try to remove spaces before the name and the type of module:

 {{{
 9       # specify the name of the binary
 10      NAME=hpet
 11
 12      # specify the type of binary
 13      #   APP:    Application
 14      #   SHARED: Shared library or add-on
 15      #   STATIC: Static library archive
 16      #   DRIVER: Kernel Driver
 17      TYPE=DRIVER
 }}}

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8019#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: