Bug 3121

Summary: Static build fails to link with sis and sisusb drivers
Product: xorg Reporter: Kevin E. Martin <kem>
Component: Driver/SiSAssignee: Thomas Winischhofer <thomas>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: git   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Add sis_utility.c and sisusb_utility.c to Imakefile none

Description Kevin E. Martin 2005-04-24 13:07:17 UTC
When building a non-loadable X server, the sis and sisusb drivers are missing
some functions.  I found that they were included in the new sis_utility.c and
sisusb_utility.c files.  I've added them to the Imakefiles and the build now
succeeds.  I will attach a patch in a moment with these changes.

Here's the build failure:

../../programs/Xserver/hw/xfree86/drivers/libdriver.a(sis_drv.o)(.text+0x6d2):
In function `SISProbe':
: undefined reference to `SISHandleMessage'
../../programs/Xserver/hw/xfree86/drivers/libdriver.a(sis_drv.o)(.text+0x1505c):
In function `SISCloseScreen':
: undefined reference to `SiSCtrlExtUnregister'
../../programs/Xserver/hw/xfree86/drivers/libdriver.a(sis_drv.o)(.text+0x15e56):
In function `SISScreenInit':
: undefined reference to `SiSCtrlExtInit'
../../programs/Xserver/hw/xfree86/drivers/libdriver.a(sis_drv.o)(.text+0x2fb5d):
In function `SISSetPortAttribute':
: undefined reference to `SISSetPortUtilAttribute'
../../programs/Xserver/hw/xfree86/drivers/libdriver.a(sis_drv.o)(.text+0x2ffe1):
In function `SISGetPortAttribute':
: undefined reference to `SISGetPortUtilAttribute'
../../programs/Xserver/hw/xfree86/drivers/libdriver.a(sisusb_drv.o)(.text+0x68d):
In function `SISUSBProbe':
: undefined reference to `SISUSBHandleMessage'
../../programs/Xserver/hw/xfree86/drivers/libdriver.a(sisusb_drv.o)(.text+0x2a58):
In function `SISUSBCloseScreen':
: undefined reference to `SiSUSBCtrlExtUnregister'
../../programs/Xserver/hw/xfree86/drivers/libdriver.a(sisusb_drv.o)(.text+0x30fa):
In function `SISUSBScreenInit':
: undefined reference to `SiSUSBCtrlExtInit'
../../programs/Xserver/hw/xfree86/drivers/libdriver.a(sisusb_drv.o)(.text+0x7666):
In function `SISUSBSetPortAttribute':
: undefined reference to `SISUSBSetPortUtilAttribute'
../../programs/Xserver/hw/xfree86/drivers/libdriver.a(sisusb_drv.o)(.text+0x794f):
In function `SISUSBGetPortAttribute':
: undefined reference to `SISUSBGetPortUtilAttribute'
Comment 1 Kevin E. Martin 2005-04-24 13:08:11 UTC
Created attachment 2529 [details] [review]
Add sis_utility.c and sisusb_utility.c to Imakefile
Comment 2 Thomas Winischhofer 2005-04-24 13:30:31 UTC
Whoops. Fixed.
Comment 3 Kevin E. Martin 2005-04-24 13:59:22 UTC
Thanks Thomas!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.