Giter VIP home page Giter VIP logo

Comments (14)

augcampos avatar augcampos commented on June 28, 2024

Hi there,
You install the dependencies?

from asterisk-cpp.

non-41 avatar non-41 commented on June 28, 2024

I have installed all dependencies and built it exactly as you described and I get the same errors. There is an issue with a virtual class somewhere.

from asterisk-cpp.

augcampos avatar augcampos commented on June 28, 2024

I there, can you send us the error/ log, please.
Thank you
Em 15/11/2014 01:26, "non-41" [email protected] escreveu:

I have installed all dependencies and built it exactly as you described
and I get the same errors. There is an issue with a virtual class somewhere.


Reply to this email directly or view it on GitHub
https://github.com/augcampos/asterisk-cpp/issues/4#issuecomment-63153885
.

from asterisk-cpp.

non-41 avatar non-41 commented on June 28, 2024

It's the exact same error as the person who posted before me. You then
replied and asked if he had all the required dependencies and he never
replied.

./makeTest.sh
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::UserEventAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::HangupAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueueStatusAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueResetAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::PlayDtmfAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SkypeBuddiesAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeRemoveBuddyAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::MeetMeUnmuteAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::RedirectAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::GetConfigResponse::GetConfigResponse(std::basic_string<char,
std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DbDelAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SkypeLicenseListAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::StopMonitorAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::ModuleCheckResponse::ModuleCheckResponse(std::basic_string<char,
std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::IaxPeerListAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::SkypeBuddyResponse::SkypeBuddyResponse(std::basic_string<char,
std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::UnpauseMonitorAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapRestartAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ParkedCallsAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeUnmuteAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ExtensionStateAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ModuleLoadAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeLicenseStatusAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueLogAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ShowDialplanAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeMuteAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::GetVarAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeLockAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to
asteriskcpp::PingResponse::PingResponse(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapShowChannelsAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MailboxCountAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::GetVarResponse::GetVarResponse(std::basic_string<char,
std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SendTextAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapDialOffhookAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SipShowRegistryAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::MailboxCountResponse::MailboxCountResponse(std::basic_string<char,
std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueueSummaryAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::CoreStatusAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ModuleCheckAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ParkAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::VoicemailUsersListAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SetCdrUserFieldAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeListAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapTransferAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::LocalOptimizeAwayAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueuePauseAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::JabberSendAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::ExtensionStateResponse::ExtensionStateResponse(std::basic_string<char,
std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to
asteriskcpp::SkypeLicenseStatusResponse::SkypeLicenseStatusResponse(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeSetSingleVideoSrcAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeChatSendAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::MixMonitorMuteAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::CoreShowChannelsAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SipPeersAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to
asteriskcpp::MailboxStatusResponse::MailboxStatusResponse(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::MailboxStatusAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MonitorAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::PauseMonitorAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeUnlockAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SetVarAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to
asteriskcpp::CoreSettingsResponse::CoreSettingsResponse(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::DahdiShowChannelsAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DbPutAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::CoreStatusResponse::CoreStatusResponse(std::basic_string<char,
std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ZapDndOnAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapDndOffAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeStartRecordAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueAddAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeBuddyAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SipShowPeerAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ZapHangupAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::CoreSettingsAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MeetMeMuteAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::BridgeAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeStopRecordAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SkypeAddBuddyAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueuePenaltyAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::PingAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ChangeMonitorAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::DbDelTreeAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::PauseMixMonitorAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeKickAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DbGetAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueRemoveAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::GetConfigAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::StatusAction'
collect2: ld returned 1 exit status

On Sat, Nov 15, 2014 at 9:26 AM, Augusto Campos [email protected]
wrote:

I there, can you send us the error/ log, please.
Thank you
Em 15/11/2014 01:26, "non-41" [email protected] escreveu:

I have installed all dependencies and built it exactly as you described
and I get the same errors. There is an issue with a virtual class
somewhere.


Reply to this email directly or view it on GitHub
<
https://github.com/augcampos/asterisk-cpp/issues/4#issuecomment-63153885>
.


Reply to this email directly or view it on GitHub
https://github.com/augcampos/asterisk-cpp/issues/4#issuecomment-63174051
.

from asterisk-cpp.

augcampos avatar augcampos commented on June 28, 2024

Did you run all steps in the wiki
https://github.com/augcampos/asterisk-cpp/wiki/Examples

Yoy may need a reboot after [Library Build] and check if the
/usr/local/lib/libasteriskcpp.so exists

--CumprimentosAugusto Campos

On 15 November 2014 14:30, non-41 [email protected] wrote:

It's the exact same error as the person who posted before me. You then
replied and asked if he had all the required dependencies and he never
replied.

./makeTest.sh
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::UserEventAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::HangupAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueueStatusAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueResetAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::PlayDtmfAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SkypeBuddiesAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeRemoveBuddyAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::MeetMeUnmuteAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::RedirectAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::GetConfigResponse::GetConfigResponse(std::basic_string<char,
std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DbDelAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SkypeLicenseListAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::StopMonitorAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::ModuleCheckResponse::ModuleCheckResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::IaxPeerListAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::SkypeBuddyResponse::SkypeBuddyResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::UnpauseMonitorAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapRestartAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ParkedCallsAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeUnmuteAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ExtensionStateAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ModuleLoadAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeLicenseStatusAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueLogAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ShowDialplanAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeMuteAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::GetVarAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeLockAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to
asteriskcpp::PingResponse::PingResponse(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapShowChannelsAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MailboxCountAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::GetVarResponse::GetVarResponse(std::basic_string<char,
std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SendTextAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapDialOffhookAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SipShowRegistryAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::MailboxCountResponse::MailboxCountResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueueSummaryAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::CoreStatusAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ModuleCheckAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ParkAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::VoicemailUsersListAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SetCdrUserFieldAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeListAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapTransferAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::LocalOptimizeAwayAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueuePauseAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::JabberSendAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::ExtensionStateResponse::ExtensionStateResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to
`asteriskcpp::SkypeLicenseStatusResponse::SkypeLicenseStatusResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeSetSingleVideoSrcAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SkypeChatSendAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MixMonitorMuteAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::CoreShowChannelsAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SipPeersAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::MailboxStatusResponse::MailboxStatusResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MailboxStatusAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::MonitorAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::PauseMonitorAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeUnlockAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SetVarAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::CoreSettingsResponse::CoreSettingsResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DahdiShowChannelsAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::DbPutAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to
`asteriskcpp::CoreStatusResponse::CoreStatusResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ZapDndOnAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapDndOffAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeStartRecordAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueAddAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeBuddyAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SipShowPeerAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ZapHangupAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::CoreSettingsAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MeetMeMuteAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::BridgeAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeStopRecordAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SkypeAddBuddyAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueuePenaltyAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::PingAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ChangeMonitorAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::DbDelTreeAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::PauseMixMonitorAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeKickAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DbGetAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueRemoveAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::GetConfigAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::StatusAction'
collect2: ld returned 1 exit status

On Sat, Nov 15, 2014 at 9:26 AM, Augusto Campos [email protected]

wrote:

I there, can you send us the error/ log, please.
Thank you
Em 15/11/2014 01:26, "non-41" [email protected] escreveu:

I have installed all dependencies and built it exactly as you
described
and I get the same errors. There is an issue with a virtual class
somewhere.


Reply to this email directly or view it on GitHub
<
https://github.com/augcampos/asterisk-cpp/issues/4#issuecomment-63153885>

.


Reply to this email directly or view it on GitHub
<
https://github.com/augcampos/asterisk-cpp/issues/4#issuecomment-63174051>
.


Reply to this email directly or view it on GitHub
https://github.com/augcampos/asterisk-cpp/issues/4#issuecomment-63174130
.

from asterisk-cpp.

non-41 avatar non-41 commented on June 28, 2024

Yes I ran all of the steps. Anyways I just wrote my own, but thank you.
On Nov 17, 2014 5:46 AM, "Augusto Campos" [email protected] wrote:

Did you run all steps in the wiki
https://github.com/augcampos/asterisk-cpp/wiki/Examples

Yoy may need a reboot after [Library Build] and check if the
/usr/local/lib/libasteriskcpp.so exists

--CumprimentosAugusto Campos

On 15 November 2014 14:30, non-41 [email protected] wrote:

It's the exact same error as the person who posted before me. You then
replied and asked if he had all the required dependencies and he never
replied.

./makeTest.sh
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::UserEventAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::HangupAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueueStatusAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueResetAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::PlayDtmfAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SkypeBuddiesAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeRemoveBuddyAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::MeetMeUnmuteAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to `vtable for
asteriskcpp::RedirectAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to

asteriskcpp::GetConfigResponse::GetConfigResponse(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::DbDelAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeLicenseListAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::StopMonitorAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to

`asteriskcpp::ModuleCheckResponse::ModuleCheckResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to `vtable for
asteriskcpp::IaxPeerListAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to

`asteriskcpp::SkypeBuddyResponse::SkypeBuddyResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::UnpauseMonitorAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapRestartAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ParkedCallsAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeUnmuteAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ExtensionStateAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ModuleLoadAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeLicenseStatusAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueLogAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ShowDialplanAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeMuteAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::GetVarAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeLockAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to
asteriskcpp::PingResponse::PingResponse(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapShowChannelsAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MailboxCountAction' /usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::GetVarResponse::GetVarResponse(std::basic_string<char,
std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SendTextAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapDialOffhookAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to `vtable for
asteriskcpp::SipShowRegistryAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to

`asteriskcpp::MailboxCountResponse::MailboxCountResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueueSummaryAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::CoreStatusAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ModuleCheckAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ParkAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::VoicemailUsersListAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SetCdrUserFieldAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeListAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapTransferAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::LocalOptimizeAwayAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueuePauseAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to `vtable for
asteriskcpp::JabberSendAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to

`asteriskcpp::ExtensionStateResponse::ExtensionStateResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to

`asteriskcpp::SkypeLicenseStatusResponse::SkypeLicenseStatusResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeSetSingleVideoSrcAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SkypeChatSendAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MixMonitorMuteAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::CoreShowChannelsAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to `vtable for
asteriskcpp::SipPeersAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to

`asteriskcpp::MailboxStatusResponse::MailboxStatusResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MailboxStatusAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::MonitorAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::PauseMonitorAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeUnlockAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to `vtable for
asteriskcpp::SetVarAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to

`asteriskcpp::CoreSettingsResponse::CoreSettingsResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DahdiShowChannelsAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::DbPutAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to

`asteriskcpp::CoreStatusResponse::CoreStatusResponse(std::basic_string<char,

std::char_traits, std::allocator > const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ZapDndOnAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapDndOffAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeStartRecordAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueAddAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeBuddyAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SipShowPeerAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ZapHangupAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::CoreSettingsAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MeetMeMuteAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::BridgeAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeStopRecordAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SkypeAddBuddyAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueuePenaltyAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::PingAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ChangeMonitorAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::DbDelTreeAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::PauseMixMonitorAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeKickAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DbGetAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueRemoveAction'
/usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::GetConfigAction' /usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::StatusAction'
collect2: ld returned 1 exit status

On Sat, Nov 15, 2014 at 9:26 AM, Augusto Campos <
[email protected]>

wrote:

I there, can you send us the error/ log, please.
Thank you
Em 15/11/2014 01:26, "non-41" [email protected] escreveu:

I have installed all dependencies and built it exactly as you
described
and I get the same errors. There is an issue with a virtual class
somewhere.


Reply to this email directly or view it on GitHub
<

https://github.com/augcampos/asterisk-cpp/issues/4#issuecomment-63153885>

.


Reply to this email directly or view it on GitHub
<
https://github.com/augcampos/asterisk-cpp/issues/4#issuecomment-63174051>

.


Reply to this email directly or view it on GitHub
<
https://github.com/augcampos/asterisk-cpp/issues/4#issuecomment-63174130>
.


Reply to this email directly or view it on GitHub
https://github.com/augcampos/asterisk-cpp/issues/4#issuecomment-63287253
.

from asterisk-cpp.

gianks avatar gianks commented on June 28, 2024

Hi,
i'm geting the same errors about vtable in linker.

To avoid this error:
error: invalid conversion from ‘void ()(asteriskcpp::ManagerEvent)’ to ‘asteriskcpp::onManagerEventCallback_t {aka void (*)(const asteriskcpp::ManagerEvent&)}’ [-fpermissive]

i've changed the code as below but now i'm getting linker errors as above.

void eventCallback(const ManagerEvent& me) {
std::cout << std::endl << "TEST:EVENT" << me.toLog() << std::endl;
}

What's now?
Thanks
Regards

from asterisk-cpp.

augcampos avatar augcampos commented on June 28, 2024

You may need a reboot after [Library Build] and check if the
/usr/local/lib/libasteriskcpp.so exists

from asterisk-cpp.

gianks avatar gianks commented on June 28, 2024

Hi,
i'm always getting the same, even after restart!

//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeChatSendAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for asteriskcpp::JabberSendAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::GetConfigAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for asteriskcpp::PauseMixMonitorAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to
asteriskcpp::CoreSettingsResponse::CoreSettingsResponse(std::string const&)' //usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueueResetAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::PingAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for asteriskcpp::SkypeBuddiesAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MailboxStatusAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for asteriskcpp::MonitorAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::IaxPeerListAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ConfbridgeListAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::CoreStatusAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for asteriskcpp::SipShowPeerAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::LocalOptimizeAwayAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for asteriskcpp::UnpauseMonitorAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeLockAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ZapDndOffAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ZapHangupAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for asteriskcpp::QueueLogAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ParkAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ZapTransferAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DbPutAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for asteriskcpp::SkypeLicenseListAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to
asteriskcpp::CoreStatusResponse::CoreStatusResponse(std::string const&)' //usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::MailboxStatusResponse::MailboxStatusResponse(std::string
const&)' //usr/local/lib/libasteriskcpp.so: undefined reference to
vtable for asteriskcpp::ConfbridgeStopRecordAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapRestartAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to
asteriskcpp::SkypeLicenseStatusResponse::SkypeLicenseStatusResponse(std::string const&)' //usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueuePauseAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DbGetAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for asteriskcpp::VoicemailUsersListAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to
asteriskcpp::SkypeBuddyResponse::SkypeBuddyResponse(std::string const&)' //usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DbDelTreeAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ZapDndOnAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for asteriskcpp::MailboxCountAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ZapDialOffhookAction' //usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::ExtensionStateResponse::ExtensionStateResponse(std::string
const&)' //usr/local/lib/libasteriskcpp.so: undefined reference to
vtable for asteriskcpp::ConfbridgeSetSingleVideoSrcAction' //usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::GetVarResponse::GetVarResponse(std::string const&)'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeRemoveBuddyAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for asteriskcpp::ChangeMonitorAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueuePenaltyAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for asteriskcpp::QueueAddAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MixMonitorMuteAction' //usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::MailboxCountResponse::MailboxCountResponse(std::string
const&)' //usr/local/lib/libasteriskcpp.so: undefined reference to
vtable for asteriskcpp::QueueStatusAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::CoreShowChannelsAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to vtable for asteriskcpp::SendTextAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::StopMonitorAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to vtable for asteriskcpp::ConfbridgeUnmuteAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::DahdiShowChannelsAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to vtable for asteriskcpp::SipPeersAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SkypeBuddyAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to vtable for asteriskcpp::ConfbridgeMuteAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapShowChannelsAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to vtable for asteriskcpp::ModuleLoadAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ParkedCallsAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to vtable for asteriskcpp::SkypeLicenseStatusAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SipShowRegistryAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to vtable for asteriskcpp::ConfbridgeKickAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::GetVarAction' //usr/local/lib/libasteriskcpp.so: undefined
reference to vtable for asteriskcpp::QueueRemoveAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ShowDialplanAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to vtable for asteriskcpp::ConfbridgeStartRecordAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SetCdrUserFieldAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to
asteriskcpp::PingResponse::PingResponse(std::string const&)' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SkypeAddBuddyAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to vtable for asteriskcpp::ConfbridgeUnlockAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::MeetMeMuteAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to vtable for asteriskcpp::MeetMeUnmuteAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::BridgeAction' //usr/local/lib/libasteriskcpp.so: undefined
reference to vtable for asteriskcpp::HangupAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::CoreSettingsAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to
asteriskcpp::GetConfigResponse::GetConfigResponse(std::string const&)' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::RedirectAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to vtable for asteriskcpp::DbDelAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::UserEventAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to vtable for asteriskcpp::PauseMonitorAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueSummaryAction' //usr/local/lib/libasteriskcpp.so:
undefined reference to vtable for asteriskcpp::StatusAction' //usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::ModuleCheckResponse::ModuleCheckResponse(std::string
const&)' //usr/local/lib/libasteriskcpp.so: undefined reference to
vtable for asteriskcpp::ModuleCheckAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SetVarAction' //usr/local/lib/libasteriskcpp.so: undefined
reference to vtable for asteriskcpp::ExtensionStateAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::PlayDtmfAction' collect2: error: ld returned 1 exit status

On 25/11/2014 11:19, Augusto Campos wrote:

You may need a reboot after [Library Build] and check if the
/usr/local/lib/libasteriskcpp.so exists


Reply to this email directly or view it on GitHub
https://github.com/augcampos/asterisk-cpp/issues/4#issuecomment-64372723.

from asterisk-cpp.

gianks avatar gianks commented on June 28, 2024

And yes, the library is there...

$ vdir /usr/local/lib/libasteriskcpp.so
lrwxrwxrwx 1 root root 23 nov 24 14:41 /usr/local/lib/libasteriskcpp.so
-> libasteriskcpp.so.0.0.0

On 25/11/2014 11:19, Augusto Campos wrote:

You may need a reboot after [Library Build] and check if the
/usr/local/lib/libasteriskcpp.so exists


Reply to this email directly or view it on GitHub
https://github.com/augcampos/asterisk-cpp/issues/4#issuecomment-64372723.

from asterisk-cpp.

augcampos avatar augcampos commented on June 28, 2024

Did you, previously, run the steps in wiki,(https://github.com/augcampos/asterisk-cpp/wiki/Examples)?

from asterisk-cpp.

gianks avatar gianks commented on June 28, 2024

Augusto, yes i did!
I did it again, compiled and installed correctly.
Errors are the same...

I've copied your sample in a new file... after the already well known
code error fix of method signature, and after adding -lboost_system i'm
again here.
See below the output of the shell:

gianks@gianks-Vostro-3560:/tmp$ g++ test.cpp -lastersikcpp
/usr/bin/ld: cannot find -lastersikcpp
collect2: error: ld returned 1 exit status
gianks@gianks-Vostro-3560:/tmp$ g++ test.cpp -lasteriskcpp
/usr/bin/ld: /tmp/ccExZdLm.o: undefined reference to symbol
'_ZN5boost6system15system_categoryEv'
//usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.0: error adding
symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
gianks@gianks-Vostro-3560:/tmp$ g++ test.cpp -lasteriskcpp -boost_system
g++: error: unrecognized command line option ‘-boost_system’
gianks@gianks-Vostro-3560:/tmp$ g++ test.cpp -lasteriskcpp -lboost_system
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::UserEventAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::HangupAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueueStatusAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueResetAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::PlayDtmfAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SkypeBuddiesAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeRemoveBuddyAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::MeetMeUnmuteAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::RedirectAction' //usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::GetConfigResponse::GetConfigResponse(std::string const&)'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DbDelAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SkypeLicenseListAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::StopMonitorAction' //usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::ModuleCheckResponse::ModuleCheckResponse(std::string const&)'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::IaxPeerListAction' //usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::SkypeBuddyResponse::SkypeBuddyResponse(std::string const&)'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::UnpauseMonitorAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapRestartAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ParkedCallsAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeUnmuteAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ExtensionStateAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ModuleLoadAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeLicenseStatusAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueLogAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ShowDialplanAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeMuteAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::GetVarAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeLockAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to
asteriskcpp::PingResponse::PingResponse(std::string const&)' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapShowChannelsAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MailboxCountAction' //usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::GetVarResponse::GetVarResponse(std::string const&)'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SendTextAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapDialOffhookAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SipShowRegistryAction' //usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::MailboxCountResponse::MailboxCountResponse(std::string
const&)'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueueSummaryAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::CoreStatusAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ModuleCheckAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ParkAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::VoicemailUsersListAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SetCdrUserFieldAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeListAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapTransferAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::LocalOptimizeAwayAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueuePauseAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::JabberSendAction' //usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::ExtensionStateResponse::ExtensionStateResponse(std::string
const&)'
//usr/local/lib/libasteriskcpp.so: undefined reference to
asteriskcpp::SkypeLicenseStatusResponse::SkypeLicenseStatusResponse(std::string const&)' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeSetSingleVideoSrcAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeChatSendAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::MixMonitorMuteAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::CoreShowChannelsAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SipPeersAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to
asteriskcpp::MailboxStatusResponse::MailboxStatusResponse(std::string const&)' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::MailboxStatusAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MonitorAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::PauseMonitorAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeUnlockAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SetVarAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to
asteriskcpp::CoreSettingsResponse::CoreSettingsResponse(std::string const&)' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::DahdiShowChannelsAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DbPutAction' //usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::CoreStatusResponse::CoreStatusResponse(std::string const&)'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ZapDndOnAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ZapDndOffAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeStartRecordAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueAddAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::SkypeBuddyAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SipShowPeerAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ZapHangupAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::CoreSettingsAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::MeetMeMuteAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::BridgeAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ConfbridgeStopRecordAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::SkypeAddBuddyAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::QueuePenaltyAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::PingAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::ChangeMonitorAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::DbDelTreeAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::PauseMixMonitorAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::ConfbridgeKickAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::DbGetAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::QueueRemoveAction'
//usr/local/lib/libasteriskcpp.so: undefined reference to vtable for asteriskcpp::GetConfigAction' //usr/local/lib/libasteriskcpp.so: undefined reference tovtable for
asteriskcpp::StatusAction'
collect2: error: ld returned 1 exit status
gianks@gianks-Vostro-3560:/tmp$

On 25/11/2014 15:40, Augusto Campos wrote:

Did you, previously, run the steps in
wiki,(https://github.com/augcampos/asterisk-cpp/wiki/Examples)?


Reply to this email directly or view it on GitHub
https://github.com/augcampos/asterisk-cpp/issues/4#issuecomment-64408437.

from asterisk-cpp.

augcampos avatar augcampos commented on June 28, 2024

On Ubuntu I test it and it works, on debian can you try to add the "include", the "lib" directory and the "-lastersikcpp" use the full path on the g++ line.

Something LIKE this (please check your lirectories)
g++ test.cpp -o tt -I /usr/local/include -L/usr/local/lib -l/usr/local/lib/libastersikcpp.so

from asterisk-cpp.

omid1981 avatar omid1981 commented on June 28, 2024

The same problem here with some differences:

user@linux:/home/ast> g++ a.cpp -lasteriskcpp -lboost_system
/usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::GetConfigResponse::GetConfigResponse(std::string const&)' /usr/local/lib/libasteriskcpp.so: undefined reference toasteriskcpp::ModuleCheckResponse::ModuleCheckResponse(std::string const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::SkypeBuddyResponse::SkypeBuddyResponse(std::string const&)' /usr/local/lib/libasteriskcpp.so: undefined reference toasteriskcpp::PingResponse::PingResponse(std::string const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::GetVarResponse::GetVarResponse(std::string const&)' /usr/local/lib/libasteriskcpp.so: undefined reference toasteriskcpp::MailboxCountResponse::MailboxCountResponse(std::string const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::ExtensionStateResponse::ExtensionStateResponse(std::string const&)' /usr/local/lib/libasteriskcpp.so: undefined reference toasteriskcpp::SkypeLicenseStatusResponse::SkypeLicenseStatusResponse(std::string const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to asteriskcpp::MailboxStatusResponse::MailboxStatusResponse(std::string const&)' /usr/local/lib/libasteriskcpp.so: undefined reference toasteriskcpp::CoreSettingsResponse::CoreSettingsResponse(std::string const&)'
/usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::CoreStatusResponse::CoreStatusResponse(std::string const&)'
collect2: error: ld returned 1 exit status

from asterisk-cpp.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.