Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Feb 2009 08:05:54 -0600
From:      "Bradford L. Holman" <bholman@focusfcu.org>
To:        <freebsd-usb@freebsd.org>
Subject:   TUSB3410 / uticom-.3 Problem
Message-ID:  <0CF0BD39CCE55942A18E908919C32B7B2CBB84@focus-srv6.focusfcu.org>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------_=_NextPart_001_01C98ABF.88E4DFA4
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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:

=20

=E0

=20

# make install

=3D=3D=3D>  Vulnerability check disabled, database not found

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

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

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

=3D=3D=3D>  Extracting for uticom-0.3

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

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

=3D=3D=3D>  Patching for uticom-0.3

=3D=3D=3D>  Configuring for uticom-0.3

=3D=3D=3D>  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=3Dc99 =
-nostdinc   -I. -I@ -I@/contrib/altq -finline-limit=3D8000 --param =
inline-unit-growth=3D100 --param large-function-growth=3D1000 =
-fno-common  -mno-align-long-strings -mpreferred-stack-boundary=3D2  =
-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 '=3D', ',', ';', 'asm' or '__attribute__' =
before 'usbd_status'

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

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

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

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

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

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

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

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

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

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

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

uticom.c:222: error: expected '=3D', ',', ';', '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 '=3D', ',', ';', 'asm' or '__attribute__' =
before 'device_probe_t'

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

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

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

uticom.c:261: error: expected '=3D', ',', ';', '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 '=3D', ',', ';', 'asm' or '__attribute__' =
before 'usbd_status'

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

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

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

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

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

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

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

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

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

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

uticom.c:1137: error: expected '=3D', ',', ';', '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

=20

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

*** Error code 1

=20

Stop in /usr/ports/comms/uticom.

=20

=DF

=20

The output of usbdevs -v is:

=20

# 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

=20

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.

=20

Any ideas?

=20

Please advise.

=20

Thanks.

=20

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

<http://focusfcu.org/E>; E: bholman@focusfcu.org =
<mailto:bholman@focusfcu.org>=20
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.


------_=_NextPart_001_01C98ABF.88E4DFA4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0CF0BD39CCE55942A18E908919C32B7B2CBB84>