I am trying to use a USB to Serial adapter & it is being recognized by the 
system. However, when I go to install the uticom port, I get the error:

 

à

 

# make install

===>  Vulnerability check disabled, database not found

=> uticom-0.3.tar.gz doesn't seem to exist in /usr/ports/distfiles/.

=> Attempting to fetch from 
http://heanet.dl.sourceforge.net/sourceforge/uticom/.

uticom-0.3.tar.gz                             100% of   13 kB   30 kBps

===>  Extracting for uticom-0.3

=> MD5 Checksum OK for uticom-0.3.tar.gz.

=> No SHA256 checksum recorded for uticom-0.3.tar.gz.

===>  Patching for uticom-0.3

===>  Configuring for uticom-0.3

===>  Building for uticom-0.3

Warning: Object directory not changed from original 
/usr/ports/comms/uticom/work/uticom-0.3

@ -> /usr/src/sys

machine -> /usr/src/sys/i386/include

awk -f @/tools/makeobjops.awk @/kern/device_if.m -h

awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h

awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h

awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -p

awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -q

awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h

:> opt_uticom.h

:> opt_usb.h

awk -f @/tools/usbdevs2h.awk @/dev/usb/usbdevs -h

cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc   
-I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 
--param large-function-growth=1000 -fno-common  -mno-align-long-strings 
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 
-ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions -c uticom.c

uticom.c:102:20: error: unistd.h: No such file or directory

uticom.c:206: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'usbd_status'

uticom.c:207: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'usbd_status'

uticom.c:209: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'usbd_status'

uticom.c:210: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'void'

uticom.c:212: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'void'

uticom.c:213: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'void'

uticom.c:214: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'void'

uticom.c:215: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'void'

uticom.c:216: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'void'

uticom.c:217:5: warning: "TODO" is not defined

uticom.c:220: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'int'

uticom.c:221: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'int'

uticom.c:222: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'void'

uticom.c:228: error: 'uticom_get_status' undeclared here (not in a function)

uticom.c:229: error: 'uticom_set' undeclared here (not in a function)

uticom.c:230: error: 'uticom_param' undeclared here (not in a function)

uticom.c:232: error: 'uticom_open' undeclared here (not in a function)

uticom.c:233: error: 'uticom_close' undeclared here (not in a function)

uticom.c:249: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'device_probe_t'

uticom.c:250: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'device_attach_t'

uticom.c:251: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'device_detach_t'

uticom.c:253: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'kobj_method_t'

uticom.c:261: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'driver_t'

uticom.c:267: error: 'uticom_driver' undeclared here (not in a function)

uticom.c:324: warning: return type defaults to 'int'

uticom.c:324: warning: function declaration isn't a prototype

uticom.c: In function 'USB_MATCH':

uticom.c:324: warning: type of 'uticom' defaults to 'int'

uticom.c:326: warning: implicit declaration of function 'USB_MATCH_START'

uticom.c:326: warning: nested extern declaration of 'USB_MATCH_START'

uticom.c:326: error: 'uaa' undeclared (first use in this function)

uticom.c:326: error: (Each undeclared identifier is reported only once

uticom.c:326: error: for each function it appears in.)

uticom.c: At top level:

uticom.c:343: warning: return type defaults to 'int'

uticom.c:343: warning: function declaration isn't a prototype

uticom.c: In function 'USB_ATTACH':

uticom.c:343: warning: type of 'uticom' defaults to 'int'

uticom.c:345: warning: implicit declaration of function 'USB_ATTACH_START'

uticom.c:345: warning: nested extern declaration of 'USB_ATTACH_START'

uticom.c:345: error: 'sc' undeclared (first use in this function)

uticom.c:345: error: 'uaa' undeclared (first use in this function)

uticom.c:368: error: 'self' undeclared (first use in this function)

uticom.c:376: warning: implicit declaration of function 'USBDEVNAME'

uticom.c:376: warning: nested extern declaration of 'USBDEVNAME'

uticom.c:376: warning: assignment makes pointer from integer without a cast

uticom.c:413: warning: format '%s' expects type 'char *', but argument 2 has 
type 'int'

uticom.c:437: warning: format '%s' expects type 'char *', but argument 2 has 
type 'int'

uticom.c:451: warning: format '%s' expects type 'char *', but argument 2 has 
type 'int'

uticom.c:482: warning: assignment makes pointer from integer without a cast

uticom.c:503: warning: format '%s' expects type 'char *', but argument 2 has 
type 'int'

uticom.c:510: warning: assignment makes pointer from integer without a cast

uticom.c:536: warning: format '%s' expects type 'char *', but argument 2 has 
type 'int'

uticom.c:553: warning: format '%s' expects type 'char *', but argument 2 has 
type 'int'

uticom.c:585: warning: format '%s' expects type 'char *', but argument 2 has 
type 'int'

uticom.c:601: warning: format '%s' expects type 'char *', but argument 2 has 
type 'int'

uticom.c:608: warning: format '%s' expects type 'char *', but argument 2 has 
type 'int'

uticom.c:625: warning: implicit declaration of function 'uticom_reset'

uticom.c:625: warning: nested extern declaration of 'uticom_reset'

uticom.c:629: warning: format '%s' expects type 'char *', but argument 2 has 
type 'int'

uticom.c:641: error: 'USB_ATTACH_SUCCESS_RETURN' undeclared (first use in this 
function)

uticom.c:645: error: 'USB_ATTACH_ERROR_RETURN' undeclared (first use in this 
function)

uticom.c: At top level:

uticom.c:650: warning: return type defaults to 'int'

uticom.c:650: warning: function declaration isn't a prototype

uticom.c: In function 'USB_DETACH':

uticom.c:650: warning: type of 'uticom' defaults to 'int'

uticom.c:652: warning: implicit declaration of function 'USB_DETACH_START'

uticom.c:652: warning: nested extern declaration of 'USB_DETACH_START'

uticom.c:652: error: 'sc' undeclared (first use in this function)

uticom.c: At top level:

uticom.c:672: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'usbd_status'

uticom.c:697: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'void'

uticom.c:719: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'void'

uticom.c:747: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'void'

uticom.c:777: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'void'

uticom.c:800: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'usbd_status'

uticom.c:825: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'usbd_status'

uticom.c:922: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'int'

uticom.c:973: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'int'

uticom.c:1017: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'void'

uticom.c:1062: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'void'

uticom.c:1137: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'void'

uticom.c:1154:5: warning: "TODO" is not defined

uticom.c: In function 'ti_download_firmware':

uticom.c:1230: warning: format '%s' expects type 'char *', but argument 2 has 
type 'int'

*** Error code 1

 

Stop in /usr/ports/comms/uticom/work/uticom-0.3.

*** Error code 1

 

Stop in /usr/ports/comms/uticom.

 

ß

 

The output of usbdevs -v is:

 

# usbdevs -v

Controller /dev/usb0:

addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), 
Intel(0x0000), rev 1.00

 port 1 powered

 port 2 addr 2: low speed, power 98 mA, config 1, KVM(0x5a08), No 
brand(0x10d5), rev 0.00

Controller /dev/usb1:

addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), 
Intel(0x0000), rev 1.00

 port 1 addr 2: full speed, power 100 mA, config 1, TUSB3410 Serial 
Port(0xf111), Texas Instruments(0x06e0), rev 1.01

 port 2 powered

 

It seems like the port is missing a header or something. I noticed the missing 
file warning for unistd.h, and could repair it by adding "sys/" to its 
reference in uticom.c, but the rest of the errors persist.

 

Any ideas?

 

Please advise.

 

Thanks.

 

Bradford L. Holman, MBA
Director of IT
  <http://www.focusfcu.org/> 
http://focusfcu.org/

<http://focusfcu.org/E> E: [email protected] <mailto:[email protected]> 
P: (405) 230-1328 ext. 118
F: (405) 235-0067
EVERY MEMBER. EVERY ACCOUNT. EVERY TIME!

CONFIDENTIALITY NOTICE: The information contained in this message is intended 
only for the recipient and may contain information that is confidential. If you 
are not the intended recipient or an employee or agent responsible for 
delivering this message to the intended recipient; please be aware that any 
dissemination, forwarding, printing, copying, disclosure or distribution of 
this communication is strictly prohibited. If you have received this 
communication in error, please immediately notify the sender by replying to the 
message and deleting all copies, including attachments, from your system.

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "[email protected]"

Reply via email to