Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281176 - dev-embedded/libftdi-0.16: failed to compile due missing dependence to dev-libs/libusb-compat
Summary: dev-embedded/libftdi-0.16: failed to compile due missing dependence to dev-li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Embedded Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 270039
  Show dependency tree
 
Reported: 2009-08-12 06:53 UTC by kmosolov
Modified: 2009-10-14 02:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kmosolov 2009-08-12 06:53:28 UTC
I have tried to emerge dev-embedded/libftdi, but it fails when compile. When i have emerged dev-libs/libusb-compat problem goes away.

Reproducible: Always

Steps to Reproduce:
1. Make sure that dev-libs/libusb-compat not instaled
2. Run emerge dev-embedded/libftdi

Actual Results:  
Emerge fails with these errors:

make[2]: Entering directory `/var/tmp/portage/dev-embedded/libftdi-0.16/work/libftdi-0.16/src'
/bin/sh ../libtool --tag=CC   --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..     -O2 -march=pentium4 -pipe  -MT ftdi.lo -MD -MP -MF .deps/ftdi.Tpo -c -o ftdi.lo ftdi.c
mkdir .libs
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -O2 -march=pentium4 -pipe -MT ftdi.lo -MD -MP -MF .deps/ftdi.Tpo -c ftdi.c  -fPIC -DPIC -o .libs/ftdi.o
ftdi.c:31:17: error: usb.h: No such file or directory
In file included from ftdi.c:36:
ftdi.h:275: error: expected declaration specifiers or '...' before 'usb_dev_handle'
ftdi.c: In function 'ftdi_new':
ftdi.c:124: warning: incompatible implicit declaration of built-in function 'free'
ftdi.c: In function 'ftdi_deinit':
ftdi.c:181: warning: incompatible implicit declaration of built-in function 'free'
ftdi.c:187: warning: incompatible implicit declaration of built-in function 'free'
ftdi.c: In function 'ftdi_free':
ftdi.c:200: warning: incompatible implicit declaration of built-in function 'free'
ftdi.c: At top level:
ftdi.c:209: error: expected declaration specifiers or '...' before 'usb_dev_handle'
ftdi.c: In function 'ftdi_set_usbdev':
ftdi.c:211: error: 'usb' undeclared (first use in this function)
ftdi.c:211: error: (Each undeclared identifier is reported only once
ftdi.c:211: error: for each function it appears in.)
ftdi.c: In function 'ftdi_usb_find_all':
ftdi.c:244: warning: assignment makes pointer from integer without a cast
ftdi.c:244: error: dereferencing pointer to incomplete type
ftdi.c:246: error: dereferencing pointer to incomplete type
ftdi.c:246: error: dereferencing pointer to incomplete type
ftdi.c:248: error: dereferencing pointer to incomplete type
ftdi.c:249: error: dereferencing pointer to incomplete type
ftdi.c: In function 'ftdi_list_free':
ftdi.c:279: warning: incompatible implicit declaration of built-in function 'free'
ftdi.c: In function 'ftdi_usb_get_strings':
ftdi.c:328: warning: assignment makes pointer from integer without a cast
ftdi.c:329: warning: assignment makes pointer from integer without a cast
ftdi.c:333: error: dereferencing pointer to incomplete type
ftdi.c:336: warning: assignment makes pointer from integer without a cast
ftdi.c:342: error: dereferencing pointer to incomplete type
ftdi.c:345: warning: assignment makes pointer from integer without a cast
ftdi.c:351: error: dereferencing pointer to incomplete type
ftdi.c:354: warning: assignment makes pointer from integer without a cast
ftdi.c:359: warning: assignment makes pointer from integer without a cast
ftdi.c: In function 'ftdi_usb_open_dev':
ftdi.c:380: warning: assignment makes pointer from integer without a cast
ftdi.c:398: error: dereferencing pointer to incomplete type
ftdi.c:399: error: dereferencing pointer to incomplete type
ftdi.c:440: error: dereferencing pointer to incomplete type
ftdi.c:440: error: dereferencing pointer to incomplete type
ftdi.c:441: error: dereferencing pointer to incomplete type
ftdi.c:443: error: dereferencing pointer to incomplete type
ftdi.c:445: error: dereferencing pointer to incomplete type
ftdi.c:447: error: dereferencing pointer to incomplete type
ftdi.c:449: error: dereferencing pointer to incomplete type
ftdi.c:451: error: dereferencing pointer to incomplete type
ftdi.c: In function 'ftdi_usb_open_desc':
ftdi.c:520: warning: assignment makes pointer from integer without a cast
ftdi.c:520: error: dereferencing pointer to incomplete type
ftdi.c:522: error: dereferencing pointer to incomplete type
ftdi.c:522: error: dereferencing pointer to incomplete type
ftdi.c:524: error: dereferencing pointer to incomplete type
ftdi.c:525: error: dereferencing pointer to incomplete type
ftdi.c:527: warning: assignment makes pointer from integer without a cast
ftdi.c:532: error: dereferencing pointer to incomplete type
ftdi.c:546: error: dereferencing pointer to incomplete type
ftdi.c: In function 'ftdi_usb_reset':
ftdi.c:581: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:581: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:581: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_usb_purge_rx_buffer':
ftdi.c:603: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:603: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:603: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_usb_purge_tx_buffer':
ftdi.c:625: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:625: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:625: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_set_baudrate':
ftdi.c:841: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:841: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:841: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_set_line_property2':
ftdi.c:929: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:929: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:929: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_read_data_set_chunksize':
ftdi.c:1357: warning: incompatible implicit declaration of built-in function 'realloc'
ftdi.c: In function 'ftdi_enable_bitbang':
ftdi.c:1401: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:1401: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:1401: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_disable_bitbang':
ftdi.c:1420: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:1420: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:1420: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_set_bitmode':
ftdi.c:1444: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:1444: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:1444: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_read_pins':
ftdi.c:1463: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:1463: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:1463: error: 'USB_ENDPOINT_IN' undeclared (first use in this function)
ftdi.c: In function 'ftdi_set_latency_timer':
ftdi.c:1491: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:1491: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:1491: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_get_latency_timer':
ftdi.c:1509: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:1509: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:1509: error: 'USB_ENDPOINT_IN' undeclared (first use in this function)
ftdi.c: In function 'ftdi_poll_modem_status':
ftdi.c:1559: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:1559: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:1559: error: 'USB_ENDPOINT_IN' undeclared (first use in this function)
ftdi.c: In function 'ftdi_setflowctrl':
ftdi.c:1579: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:1579: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:1579: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_setdtr':
ftdi.c:1605: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:1605: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:1605: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_setrts':
ftdi.c:1631: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:1631: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:1631: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_setdtr_rts':
ftdi.c:1663: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:1663: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:1663: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_set_event_char':
ftdi.c:1690: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:1690: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:1690: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_set_error_char':
ftdi.c:1715: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:1715: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:1715: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_read_eeprom':
ftdi.c:2121: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:2121: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:2121: error: 'USB_ENDPOINT_IN' undeclared (first use in this function)
ftdi.c: In function 'ftdi_read_chipid':
ftdi.c:2158: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:2158: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:2158: error: 'USB_ENDPOINT_IN' undeclared (first use in this function)
ftdi.c: In function 'ftdi_read_eeprom_getsize':
ftdi.c:2194: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:2194: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:2194: error: 'USB_ENDPOINT_IN' undeclared (first use in this function)
ftdi.c: In function 'ftdi_write_eeprom':
ftdi.c:2233: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:2233: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:2233: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
ftdi.c: In function 'ftdi_erase_eeprom':
ftdi.c:2254: error: 'USB_TYPE_VENDOR' undeclared (first use in this function)
ftdi.c:2254: error: 'USB_RECIP_DEVICE' undeclared (first use in this function)
ftdi.c:2254: error: 'USB_ENDPOINT_OUT' undeclared (first use in this function)
Comment 1 kmosolov 2009-08-12 06:57:46 UTC
And i forgot to say that i have dev-libs/libusb-1.0.1 installed