Re: [ANNOUNCE] libtypec_0.1/lstypec_0.1 is released

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jan 16, 2022 at 08:49:47PM +0530, Rajaram Regupathy wrote:
> HI
> 
> libtypec
> ++++++
> 
> USB-Type C and USB Power Delivery systems are with multiple
> specification versions, platform designs and microcontroller vendors
> for managing  data, power and display.
> 
> libtypec is aimed to provide a generic way for userspace System
> Software on Linux, Android, Chrome OS or Other OSes to build developer
> tools or
> other management applications for USB-Type C and USB Power Delivery
> class devices.

Great, can we add this to the usbutils package, and `lsusb`?

> Features
> ======
> - libtypec - get method for port and port-partner capabilities
> -  utils/lstypec -  displaying information about USB typec class
> devices in the system and the devices connected to them
> 
> Release:
> =======
> 
> Binary : https://github.com/Rajaram-Regupathy/libtypec/releases/download/libtypec_v0.1/libtypec_0.1.tar.xz
> Source : https://github.com/Rajaram-Regupathy/libtypec/archive/refs/tags/libtypec_v0.1.tar.gz

Like was pointed out, there is no license listed for this code, so no
one can use it.

Also, it doesn't build for me:
	$ make
	 50%] Building C object CMakeFiles/lstypec.dir/lstypec.c.o
	100%] Linking C executable lstypec
	usr/bin/ld: /home/gregkh/tmp/libtypec/bin/liblibtypec.a(libtypec.c.o):(.bss+0x0): multiple definition of `__packed'; CMakeFiles/lstypec.dir/lstypec.c.o:(.bss+0x0): first defined here
	usr/bin/ld: /home/gregkh/tmp/libtypec/bin/liblibtypec.a(libtypec_sysfs_ops.c.o):(.bss+0x0): multiple definition of `__packed'; CMakeFiles/lstypec.dir/lstypec.c.o:(.bss+0x0): first defined here
	ollect2: error: ld returned 1 exit status
	ake[2]: *** [CMakeFiles/lstypec.dir/build.make:98: lstypec] Error 1
	ake[1]: *** [CMakeFiles/Makefile2:839: CMakeFiles/lstypec.dir/all] Error 2
	ake: *** [Makefile:121: all] Error 2

Why does this need to be a library at all?

thanks,

greg k-h



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux