It is currently Mon Sep 23, 2019 2:46 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Linux pbcurl error
PostPosted: Fri Jun 28, 2019 9:36 am 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3109
Location: United Kingdom
On linux I use an extra include to use more of libpbcurl. It works fine on Windows and MacOS but on Linux I get a strange linker error...

Image

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux pbcurl error
PostPosted: Fri Jun 28, 2019 2:51 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 22, 2003 7:43 pm
Posts: 426
Location: Germany, Saarbrücken
Did you install the package libssl-dev?

_________________
Electronics, Crazy & Interesting Stuff, all that with text, image and sound? Click here!

The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux pbcurl error
PostPosted: Fri Jun 28, 2019 3:25 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3109
Location: United Kingdom
No, but have done since.

Same error. :(

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux pbcurl error
PostPosted: Mon Jul 01, 2019 10:19 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 22, 2003 7:43 pm
Posts: 426
Location: Germany, Saarbrücken
Can you show me the extra include? I assume there is an error in some Import statements.

_________________
Electronics, Crazy & Interesting Stuff, all that with text, image and sound? Click here!

The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux pbcurl error
PostPosted: Mon Jul 01, 2019 1:44 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3109
Location: United Kingdom
Here you are:
https://www.dropbox.com/s/9qf2ktiantkxm ... 2.pbi?dl=0

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux pbcurl error
PostPosted: Mon Jul 01, 2019 2:46 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 22, 2003 7:43 pm
Posts: 426
Location: Germany, Saarbrücken
It seems you need to modify the ImportC line to link the needed libraries:
Code:
ImportC "-lpbcurl -lssl -lcrypt"

However. I still get this error:
Quote:
/usr/bin/ld: /home/nicolas/programme/purebasic/purelibraries/linux/libraries/libpbcurl.a(openssl.o): undefined reference to symbol 'BN_num_bits@@OPENSSL_1_1_0'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: error adding symbols: DSO aus der Kommandozeile fehlt
collect2: error: ld returned 1 exit status


After some more compiling around it seems to be enough to simply write this line:
Code:
ImportC "-lcurl"

Did you try this?

_________________
Electronics, Crazy & Interesting Stuff, all that with text, image and sound? Click here!

The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux pbcurl error
PostPosted: Mon Jul 01, 2019 3:03 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3109
Location: United Kingdom
I get

Quote:
/usr/bin/ld: cannot find -lcurl
collect2: error: ld returned 1 exist status

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux pbcurl error
PostPosted: Mon Jul 01, 2019 3:13 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 22, 2003 7:43 pm
Posts: 426
Location: Germany, Saarbrücken
Did you install the libcurl package?
Code:
sudo apt install libcurl4

Maybe you also need libcurl4-gnutls-dev.

_________________
Electronics, Crazy & Interesting Stuff, all that with text, image and sound? Click here!

The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux pbcurl error
PostPosted: Mon Jul 01, 2019 3:16 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3109
Location: United Kingdom
I thought it installed with sudo apt-get install curl, will try that...

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux pbcurl error
PostPosted: Mon Jul 01, 2019 3:19 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3109
Location: United Kingdom
Already installed.

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux pbcurl error
PostPosted: Mon Jul 01, 2019 3:28 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3109
Location: United Kingdom
What worked was sudo apt-get install libcurl4-openssl-dev :)

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux pbcurl error
PostPosted: Mon Jul 01, 2019 3:30 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3109
Location: United Kingdom
@NicTheQuick Thanks for your help with this. :)

@fred, not sure if this is a bug or not anymore - the other versions of purebasic (windows , osx) both accept libpbcurl...

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye