Cannot compile on ubuntu 18.04

Bug #1800596 reported by Marco Merlin
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ttyMIDI
New
Undecided
Jari Suominen

Bug Description

marco@Latitude-E6440:/media/marco/DATA/programming/wemosd1/ttymidi$ make
gcc src/ttymidi.c -o ttymidi -lasound
src/ttymidi.c:477:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main(int argc, char** argv)
 ^~~~
/usr/bin/ld: /tmp/ccvk3X75.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1

Revision history for this message
Dirk (dbringez) wrote :

It shoult be:

gcc src/ttymidi.c -o ttymidi -lasound -pthreat

Revision history for this message
David Santiago del Río Valencia (sdelrio) wrote :

Is the same for me

santiago@santiago-Inspiron-N5050:~/Descargas/ttymidi$ make
gcc src/ttymidi.c -o ttymidi -lasound
src/ttymidi.c:477:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main(int argc, char** argv)
 ^~~~
/usr/bin/ld: /tmp/cc8dpDAQ.o: referencia sin definir al símbolo 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1

Changed in ttymidi:
assignee: nobody → Jari Suominen (jari-tasankokaiku)
assignee: Jari Suominen (jari-tasankokaiku) → jari suominen (suomisen-jari)
assignee: jari suominen (suomisen-jari) → nobody
assignee: nobody → Jari Suominen (jari-tasankokaiku)
assignee: Jari Suominen (jari-tasankokaiku) → nobody
assignee: nobody → David Santiago del Río Valencia (sdelrio)
assignee: David Santiago del Río Valencia (sdelrio) → nobody
assignee: nobody → Jari Suominen (jari-tasankokaiku)
Revision history for this message
pwr (pwrbeats) wrote :

yo I get this message in ubuntu when running "make" so I can't even get past the first step...

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.