I was wrong.  I can't figure out the build.  (OCMiddle used to build.)

Originally I was missing all the CA references during linking (see the first 
message below).  I added libconnectivity_abstraction.a (there is no 
libconnectivity.so), and now I get all the globals in CA undefined.  For 
instance,

umutex.c:(.text+0x8c): undefined reference to `g_cond_wait'

I tried to make it look like the SConscript in resource/examples as Sashi 
suggested.  Now my scons build and my make build give the same undefined 
references.  (as above)

I tried to build in resource/examples.  Running scons resulted in

scons: *** No SConstruct file found.

And there is no SConstruct in resource/examples, just a SConscript, which seems 
to have all the build instructions.

Running make in resource/examples results in an apparently infinite wait for 
'cereal'.

Perhaps it is a fool's errand to try to build an application in the CA branch 
at this time?

John


From: Light, John J
Sent: Thursday, January 29, 2015 1:03 PM
To: Penta, Sashi Kumar; iotivity-dev at lists.iotivity.org
Subject: RE: connectivity library missing in CA branch?

Don't worry, I'll make it all work.  I thought someone might be interested in 
build regressions.

I still don't understand why building an Iotivity application requires picking 
up so many pieces from so many different places.  This will not look good to 
prospective customers: as if we didn't think this through.

John

From: Penta, Sashi Kumar
Sent: Thursday, January 29, 2015 12:56 PM
To: Light, John J; iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at 
lists.iotivity.org>
Subject: RE: connectivity library missing in CA branch?


Are you using scons to build? Please refer to 
iotivity/resource/examples/Sconscript. This example shows how to use all the 
required libraries.

Please let me know if you run into any issues.

Thanks,
Sashi.

From: Light, John J
Sent: Thursday, January 29, 2015 12:29 PM
To: Penta, Sashi Kumar; iotivity-dev at lists.iotivity.org<mailto:iotivity-dev 
at lists.iotivity.org>
Subject: RE: connectivity library missing in CA branch?

Sashi,

I looked in vain for libconnectivity-abstraction.so.  I can only find 
libconnectivity-abstraction.a.  Is that all there is?

It's curious that OC references are also missing (OCFree, etc.)

John

From: Penta, Sashi Kumar
Sent: Thursday, January 29, 2015 11:57 AM
To: Light, John J; iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at 
lists.iotivity.org>
Subject: RE: connectivity library missing in CA branch?

We need to include both liboctbstack.so and libconnectivity_abstraction.so.
liboctbstack.so does not include the connectivity-abstraction obj files.

Thanks,
Sashi.

From: iotivity-dev-bounces at lists.iotivity.org<mailto:iotivity-dev-bounces at 
lists.iotivity.org> [mailto:[email protected]] On Behalf 
Of Light, John J
Sent: Thursday, January 29, 2015 11:46 AM
To: iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at 
lists.iotivity.org>
Subject: [dev] connectivity library missing in CA branch?

When I build the Iotivity example OICMidde in the Connectivity-Abstraction 
branch, I get the many errors like the following:

/home/john/oic/iotivity/out/linux/x86_64/release/liboctbstack.so: undefined 
reference to `CASendResponse'

I was expecting liboctbstack.so to include the connectivity-abstraction obj 
files.

I also see some undefined references to non-CA stuff, for example:

/home/john/oic/iotivity/out/linux/x86_64/release/liboctbstack.so: undefined 
reference to `OCMalloc'

I would think all these references would be resolved by liboctbstack.so, 
instead that's where they're missing from.

John

For completeness, here is the entire list:

g++ -O0 -g3 -std=c++0x -Wall -pthread -o debug/OICMiddle OICMiddle.o Client.o 
Server.o WrapResource.o LineInput.o RestInput.o 
-L../../out/linux/x86_64/release -loc -loctbstack -loc_logger -loc_logger_core 
-lcoap
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to `OCFree'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`CACreateRemoteEndpoint'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`OCCalloc'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`CASelectNetwork'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`OCSeedRandom'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`OCGetRandom'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`CARegisterHandler'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`CAGenerateToken'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`CAHandleRequestResponse'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`OCDevAddrToIPv4Addr'
../../out/linux/x86_64/release/liboc.so: undefined reference to 
`OCDevAddrToPort'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`CASendRequest'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`CASendResponse'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`CADestroyToken'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`OCMalloc'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`OCFillRandomMem'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`OCBuildIPv4Address'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`CAInitialize'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`CAStartDiscoveryServer'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`OCGetRandomByte'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`OCGetRandomRange'
../../out/linux/x86_64/release/liboc.so: undefined reference to 
`OCDevAddrToString'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`coap_join_wellknown_group'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`CADestroyRemoteEndpoint'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`CASendRequestToAll'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`CATerminate'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`CAGetNetworkInformation'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`CAStartListeningServer'
../../out/linux/x86_64/release/liboctbstack.so: undefined reference to 
`OCGetSocketInfo'
collect2: error: ld returned 1 exit status
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150129/5d5f1de0/attachment.html>

Reply via email to