<p dir="ltr"><br>
On Mar 9, 2014 8:52 AM, "Nick Warne" <<a href="mailto:nick@linicks.net">nick@linicks.net</a>> wrote:<br>
><br>
> On 09/03/14 13:39, Nick Warne wrote:<br>
>><br>
>> On 09/03/14 13:35, Didier Spaier wrote:<br>
>>><br>
>>> On 09/03/2014 14:30, Nick Warne wrote:<br>
>>>><br>
>>>><br>
>>>><br>
>>>> On 09/03/14 13:19, Didier Spaier wrote:<br>
>>>>><br>
>>>>> On 09/03/2014 13:36, Nick Warne wrote:<br>
>>>>>><br>
>>>>>> Using slackbuild dsniff (as an example), I find that slackbuild fails on ./configure as it thinks libnet is not installed.<br>
>>>>>><br>
>>>>>> Now, not to confuse things, this is on my AMD64 running Slack 12.1 (no multilib) and I often build/install 'lesser used libs' into /usr/local/lib and run/update ldconfig on installation.<br>

>>>>>><br>
>>>>>> I can configure dsniff by hand fine, all libs are found - but using the slack script, it doesn't find them...<br>
>>>>><br>
>>>>><br>
>>>>> Alla SlackBuilds for libnet (there is none fo Salcakre 12.1) include this:<br>
>>>>><br>
>>>>> elif [ "$ARCH" = "x86_64" ]; then<br>
>>>>>     SLKCFLAGS="-O2 -fPIC"<br>
>>>>>     LIBDIRSUFFIX="64"<br>
>>>>><br>
>>>>> So this configure option:<br>
>>>>> --libdir=/usr/lib${LIBDIRSUFFIX} \<br>
>>>>> expands to:<br>
>>>>> --libdir=/usr/lib64<br>
>>>>><br>
>>>>> But there is no /usr/lib64 directory in Slackware 12.1.<br>
>>>>><br>
>>>>> Could that be the issue?<br>
>>>><br>
>>>><br>
>>>> I looked at that - forgot to say too that this was a Slamd64 distro before Pat made the official 64bit build, so I do have a /usr/lib64 (for years).<br>
>>>><br>
>>>> All those $VARS do in the build is where to install the package libs (if you use it).<br>
>>>><br>
>>>> And it doesn't matter where the libs are installed to - the 'system' knows they are there ref. ldconfig and a manual ./configure works...<br>
>>><br>
>>><br>
>>> Then, would you mind posting your full (with all options) manual configure command that works?<br>
>><br>
>><br>
>> Yes, sure:<br>
>><br>
>> ./configure<br>
>><br>
>> :)<br>
>><br>
>> This is nothing to do with the slackbuild of dsniff!  I just used that<br>
>> as an example (as this is when I found this issue).<br>
>><br>
>> I just do not know why the slackbuild ./configure doesn't see libnet<br>
>> libs in /usr/local/lib yet the system does!<br>
>><br>
>> Nick<br>
>><br>
><br>
> OK, I was thinking, I use 'sudo' and wondered if it was an ENV thing going on:<br>
><br>
> sudo ./dsniff.Slackbuild<br>
> ...<br>
> checking for Berkeley DB with 1.85 compatibility... yes<br>
> checking for libpcap... yes<br>
> checking for libnet... no<br>
> configure: error: libnet not found<br>
><br>
> Now log in as 'real' root:<br>
><br>
> ./dsniff.Slackbuild<br>
> ...<br>
> checking for Berkeley DB with 1.85 compatibility... yes<br>
> checking for libpcap... yes<br>
> checking for libnet... no<br>
> configure: error: libnet not found<br>
><br>
> Now as normal user (me) in dsniff directory:<br>
><br>
> ./configure<br>
> ...<br>
> checking for Berkeley DB with 1.85 compatibility... yes<br>
> checking for libpcap... yes<br>
> checking for libnet... yes<br>
> checking for libnids... yes<br>
> checking whether libnids version is good... yes<br>
> checking for OpenSSL... yes<br>
> creating ./config.status<br>
> creating Makefile<br>
> creating config.h<br>
> config.h is unchanged<br>
><br>
> Huh!  See what I mean?<br>
><br>
><br>
> Nick<br>
> -- <br>
> "A bug in the code is worth two in the documentation."<br>
> FSF Associate Member 5508<br>
> <a href="http://linicks.net/">http://linicks.net/</a><br>
> <a href="http://pi.linicks.net/">http://pi.linicks.net/</a><br>
> _______________________________________________<br>
> SlackBuilds-users mailing list<br>
> <a href="mailto:SlackBuilds-users@slackbuilds.org">SlackBuilds-users@slackbuilds.org</a><br>
> <a href="http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users">http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a><br>
> Archives - <a href="http://lists.slackbuilds.org/pipermail/slackbuilds-users/">http://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
> FAQ - <a href="http://slackbuilds.org/faq/">http://slackbuilds.org/faq/</a><br>
></p>
<p dir="ltr">There's your issue (most likely). SlackBuilds from SBo are meant to be run as root. If you must use sudo, use sudo su - and run from there.</p>
<p dir="ltr">-JK</p>