Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#221 closed Bug Report (invalid)

again: OSCSender.cpp does not compile

Reported by: gigo@… Owned by:
Priority: critical Component: Ingen
Keywords: Cc:

Description

% ./waf

[160/241] cxx: ingen/src/shared/OSCSender.cpp -> build/default/ingen/src/shared/OSCSender_1.o

../ingen/src/shared/OSCSender.cpp: In member function 'int Ingen::Shared::OSCSender::send(const char*, const char*, ...)':

../ingen/src/shared/OSCSender.cpp:88: error: 'lo_message_add_varargs' was not declared in this scope

Build failed

-> task failed (err #129): [bld:///usr/src/handmade/drobilla-lad/ingen/src/shared/OSCSender_1.o]

gcc (Debian 4.3.2-1) 4.3.2
i686 GNU/Linux

Last time it was va_start, 3 lines earlier ;]

Attachments (1)

config.h+default.cache.py (9.4 KB) - added by gigo@… 13 years ago.
build/default/config.h and build/c4che/default.cache.py

Download all attachments as: .zip

Change History (8)

comment:1 Changed 13 years ago by David Robillard

Your liblo is too old.

I need to see:

build/c4che/default.cache.py build/default/config.h

comment:2 in reply to:  1 Changed 13 years ago by anonymous

Its not. Since in debian sid the newest liblo is 0.23, I've built 0.25 by hand.

Changed 13 years ago by gigo@…

Attachment: config.h+default.cache.py added

build/default/config.h and build/c4che/default.cache.py

comment:3 Changed 13 years ago by gigo@…

OK - I've found something. I do the following:

% setenv PKG_CONFIG_PATH /usr/local/liblo-0.25/lib/pkgconfig
% ./waf configure --prefix=/usr/local/drobilla-lad
Checking for program gcc : ok /usr/bin/gcc
Checking for compiler version : ok 4.3.2
Checking for program cpp : ok /usr/bin/cpp
Checking for program ar : ok /usr/bin/ar
Checking for program ranlib : ok /usr/bin/ranlib
Checking for compiler could create programs : ok
Checking for compiler could create shared libs : ok
Checking for compiler could create static libs : ok
Checking for flags -O2 : ok
Checking for flags -g -DDEBUG : ok
Checking for flags -g3 -O0 -DDEBUG : ok
Checking for flags -Wall : ok
Checking for gcc : ok
Checking for program g++ : ok /usr/bin/g++
Checking for compiler version : ok 4.3.2
Checking for program ar : ok /usr/bin/ar
Checking for program ranlib : ok /usr/bin/ranlib
Checking for compiler could create programs : ok
Checking for compiler could create shared libs : ok
Checking for compiler could create static libs : ok
Checking for flags -O2 -DNDEBUG : ok
Checking for flags -g -DDEBUG : ok
Checking for flags -g3 -O0 -DDEBUG : ok
Checking for flags -Wall : ok
Checking for g++ : ok
Checking for package redland >= 1.0.6 : ok
Checking for package jack >= 0.107.0 : ok

Global configuration
Install prefix : /usr/local/drobilla-lad
Debuggable build : False
Build documentation : False

SLV2 Configuration
Jack clients : True

Checking for package glibmm-2.4 >= 2.16.0 : ok
Checking for package gthread-2.0 >= 2.16.0 : ok

Checking for package libgvc >= 2.8 : ok
Checking for package libgnomecanvasmm-2.6 >= 2.6.0 : ok
Checking for header boost/shared_ptr.hpp : ok
Checking for header boost/weak_ptr.hpp : ok

FlowCanvas? Configuration
Auto-arrange : True
Anti-Aliasing : True

Checking for package dbus-1 : not found
Checking for package dbus-glib-1 : not found
Checking for package libglademm-2.4 >= 2.6.0 : ok
Checking for package gtkmm-2.4 >= 2.11.12 : ok
Checking for package alsa : ok

Patchage Configuration
Install name : 'patchage'
App human name : 'Patchage'
Jack (D-Bus) : False
LASH (D-Bus) : False
Jack (libjack) : True
Alsa Sequencer : True

Checking for package libxml-2.0 >= 2.6.0 : ok
Checking for package libsoup-2.4 >= 2.4.0 : not found
Checking for header ladspa.h : ok
Checking for package liblo >= 0.25 : ok

Ingen Configuration
Jack : False
OSC : True
HTTP : False
LV2 : True
LADSPA : True

Configuration finished successfully; project is now ready to build.
% ./waf -v
(...)
[159/240] cxx: ingen/src/shared/OSCSender.cpp -> build/default/ingen/src/shared/OSCSender_1.o /usr/bin/g++ -I/usr/src/handmade/d-lad/trunk/ingen -I/usr/src/handmade/d-lad/trunk/redlandmm -I/usr/src/handmade/d-lad/trunk/slv2 -I/usr/src/handmade/d-lad/trunk/raul -I/usr/src/handmade/d-lad/trunk/flowcanvas -I/usr/src/handmade/d-lad/trunk/lv2core -O2 -DNDEBUG -Wall -fPIC -DPIC -pthread -Idefault/ingen/src -I../ingen/src -Idefault/ingen/src/common -I../ingen/src/common -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/rasqal -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I. -Idefault -Idefault/ingen/src/shared -I../ingen/src/shared ../ingen/src/shared/OSCSender.cpp -c -o default/ingen/src/shared/OSCSender_1.o ../ingen/src/shared/OSCSender.cpp: In member function 'int Ingen::Shared::OSCSender::send(const char*, const char*, ...)': ../ingen/src/shared/OSCSender.cpp:88: error: 'lo_message_add_varargs' was not declared in this scope Build failed

-> task failed (err #129): [bld:///usr/src/handmade/d-lad/trunk/ingen/src/shared/OSCSender_1.o] (error raised in module Scripting)


There is no -I/usr/local/liblo-0.25/include in the commandline, the preprocessor uses lo/lo.h from version 0.23 installed from the deb package. But configure uses pkg-config, so it should include proper include path, right?
% pkg-config --libs liblo
-L/usr/local/liblo-0.25/lib -llo -lpthread
% pkg-config --cflags liblo
-I/usr/local/liblo-0.25/include

comment:4 Changed 13 years ago by anonymous

After setting:

% setenv LDFLAGS pkg-config --libs liblo
% setenv CPPFLAGS pkg-config --cflags liblo

All went well.

comment:5 Changed 13 years ago by anonymous

ehmmmm... ''""

comment:6 Changed 13 years ago by David Robillard

Resolution: invalid
Status: newclosed

You've broken your system by installing two copies of liblo in different locations.

comment:7 Changed 13 years ago by David Robillard

r1625 adds a --no-liblo configure option you can use to work around the problem (you will not be able to run a separate engine and gui, but 'ingen -eg' should work fine)

Note: See TracTickets for help on using tickets.