LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-15-2012, 11:33 AM   #1
R3V0LV3R
Member
 
Registered: Nov 2011
Posts: 78

Rep: Reputation: 11
found problem (and solution) for libproxy slackbuild


The libproxy slackbuild, which is an openconnect dependency, fails with

Code:
/tmp/SBo/libproxy-0.4.7/libproxy/url.cpp:398:37: error: 'read' was not declared in this scope
/tmp/SBo/libproxy-0.4.7/libproxy/url.cpp:423:13: error: 'close' was not declared in this scope
/tmp/SBo/libproxy-0.4.7/libproxy/url.cpp:439:13: error: 'close' was not declared in this scope
The solution is to add this line in libproxy-0.4.7/libproxy/url.cpp (which is in the libproxy-0.4.7.tar.gz file) -

Code:
#Include <unistd.h> //For close(), read()
I don't know how to create a patch but that's what I added manually and the build completed successfully.

Just thought I would share.
 
Old 04-15-2012, 12:31 PM   #2
bosth
Member
 
Registered: Apr 2011
Location: British Columbia, Canada
Posts: 304

Rep: Reputation: 127Reputation: 127
Privoxy should still compile fine under 13.37 since the issue you encountered is due to the update to GCC 4.7 in current:
Quote:
Many of the standard C++ library include files have been edited to no longer include <unistd.h> to remove namespace pollution.
There will be a few SlackBuilds which will fail due to this change and the fix will always be inserting
Code:
 #include <unistd.h>
You can read a bit more about it at Porting to GCC 4.7.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] What happened to the MakeMKV Slackbuild? Not found... Z_Tagr Slackware 2 09-24-2011 12:12 AM
Game problem.. file liblua not found, Have solution, just need help READING it. Hevithan Linux - Newbie 4 04-25-2011 12:00 AM
Problem installing bash-3.2 (5.15 in the book v. 6.4) - I found a solution arielsegal Linux From Scratch 4 06-21-2009 11:18 AM
Acer Aspire One Restore Problem - solution found Completely Clueless Linux - Laptop and Netbook 2 05-14-2009 05:50 PM
Sound problem, found a solution but don't know how to set it up swalker23 Linux - Newbie 2 09-03-2008 03:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration