[Slackbuilds-users] libproxy slackbuild error and solution

Robby Workman rworkman at slackbuilds.org
Sun Apr 15 21:05:37 UTC 2012


On Sun, 15 Apr 2012 09:44:22 -0700 (PDT)
Shane Riddle <sh4neriddle at yahoo.com> wrote:

> 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 scopeThe 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.


That's due to a change in gcc-4.7.x ; some of what used to be implicit
includes are not any more.  Note that gcc-4.7.x is part of the -current
tree of Slackware, NOT the 13.37 release.  Note also that SlackBuilds.org
does not aim to support the -current tree, and things like this are one
of the main reasons why -- it's too much of a moving target.

That said, thanks for the heads-up on it; a patch to explicitly #include
unistd.h won't hurt anything on 13.37, so I'll get that done soonish.

-RW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20120415/63709867/attachment.asc>


More information about the SlackBuilds-users mailing list