undefined reference to `SerialPort::SerialPort

Bug #1553282 reported by Víctor R. Ruiz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libserial (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

SerialStream/SerialPort is unable to use SerialPort class. Using this program,

#include <SerialStream.h>

int main() {
    SerialPort serial_port("/dev/ttyUSB0");
}

$ g++ test.cpp -o test -lserial -lpthread
/tmp/cc14Icap.o: In function `main':
test.cpp:(.text+0x48): undefined reference to `SerialPort::SerialPort(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status

The problem is fixed regenerating the package with an empty override_dh_strip in debian/rules. I guess some required symbols are being removed.

libserial0: Installed: 0.6.0~rc2+svn122-1
libserial-dev: Installed: 0.6.0~rc2+svn122-1

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Not sure which version of Ubuntu this has been reported, but works in Ubuntu cosmic.

Changed in libserial (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libserial (Ubuntu) because there has been no activity for 60 days.]

Changed in libserial (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.