Bug 183780

Summary: Can't build net-mgmt/flow-tools with OPENSSL and MYSQL
Product: Ports & Packages Reporter: Pavel Timofeev <timp87>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Works As Intended    
Severity: Affects Only Me CC: marino
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Pavel Timofeev 2013-11-08 10:10:00 UTC
Hi!
I tried to compile net-mgmt/flow-tools on FreeBSD-10.0 BETA3 amd64 with following options:

root@bsdtest:/usr/ports/net-mgmt/flow-tools # make showconfig
===> The following configuration options are available for flow-tools-0.68_7:
     MYSQL=on: MySQL database support
     OPENSSL=on: SSL/TLS support via OpenSSL
     PGSQL=off: PostgreSQL database support
===> Use 'make config' to modify these settings


And got error like this:
...
--- flow-receive ---                                                                                                                                                                        [17/1879]
gcc46  -fPIC  -Wl,-rpath=/usr/local/lib/gcc46 -o flow-receive -L../lib flow-receive.o -lft -lwrap -lz -L/usr/lib
--- flow-gen ---
gcc46  -fPIC  -Wl,-rpath=/usr/local/lib/gcc46 -o flow-gen -L../lib flow-gen.o -lft -lwrap -lz -L/usr/lib
--- flow-expire ---
gcc46  -fPIC  -Wl,-rpath=/usr/local/lib/gcc46 -o flow-expire -L../lib flow-expire.o -lft -lwrap -lz -L/usr/lib
--- aclyacc.o ---
source='aclyacc.c' object='aclyacc.o' libtool=no  depfile='.deps/aclyacc.Po' tmpdepfile='.deps/aclyacc.TPo'  depmode=gcc3 /bin/sh ../depcomp  gcc46 -I./../lib -L./../lib -I. -I. -I../lib      -fPIC
 -c `test -f 'aclyacc.c' || echo './'`aclyacc.c
--- acllex.o ---
source='acllex.c' object='acllex.o' libtool=no  depfile='.deps/acllex.Po' tmpdepfile='.deps/acllex.TPo'  depmode=gcc3 /bin/sh ../depcomp  gcc46 -I./../lib -L./../lib -I. -I. -I../lib      -fPIC -c
`test -f 'acllex.c' || echo './'`acllex.c
--- flow-header ---
gcc46  -fPIC  -Wl,-rpath=/usr/local/lib/gcc46 -o flow-header -L../lib flow-header.o -lft -lwrap -lz -L/usr/lib
--- flow-split ---
gcc46  -fPIC  -Wl,-rpath=/usr/local/lib/gcc46 -o flow-split -L../lib flow-split.o -lft -lwrap -lz -L/usr/lib
--- flow-export ---
gcc46  -fPIC  -Wl,-rpath=/usr/local/lib/gcc46 -o flow-export -L../lib flow_export-flow-export.o -lft -lmysqlclient -lwrap -lz -L/usr/lib
/usr/local/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
*** [flow-export] Error code 1

make[3]: stopped in /usr/ports/net-mgmt/flow-tools/work/flow-tools-0.68/src
..


I'd like you to notice that it builds if MYSQL option was set but OPENSSL didn't.

How-To-Repeat: Try to build it with OPENSSL and MYSQL options.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-11-08 10:10:07 UTC
Maintainer of net-mgmt/flow-tools,

Please note that PR ports/183780 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/183780

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-11-08 10:10:08 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2013-11-10 00:50:02 UTC
Hi,

I tried to reproduce the same but unfortunately I couldn't. Please check my
log files:
http://pdr.s.ubze.ro/bulk/latest-per-pkg/flow-tools/0.68_7/84i386-default.log
http://pdr.s.ubze.ro/bulk/latest-per-pkg/flow-tools/0.68_7/84amd64-default.log
http://pdr.s.ubze.ro/bulk/latest-per-pkg/flow-tools/0.68_7/92i386-default.log
http://pdr.s.ubze.ro/bulk/latest-per-pkg/flow-tools/0.68_7/92amd64-default.log
http://pdr.s.ubze.ro/bulk/latest-per-pkg/flow-tools/0.68_7/10b3i386-default.log
http://pdr.s.ubze.ro/bulk/latest-per-pkg/flow-tools/0.68_7/10b3amd64-default.log
http://pdr.s.ubze.ro/bulk/latest-per-pkg/flow-tools/0.68_7/11i386-default.log
http://pdr.s.ubze.ro/bulk/latest-per-pkg/flow-tools/0.68_7/11amd64-default.log

However I would like to say that this one is an old application and has
never been touched after 2005. Additionally this does not support STAGE and
CLANG and there is a possibility of fading away. Hence if you are a regular
user of flow-tools try changing to net-mngt/flow-tools-ng.

BR,
Muhammad




On Fri, Nov 8, 2013 at 4:10 PM, Edwin Groothuis <edwin@freebsd.org> wrote:

> Maintainer of net-mgmt/flow-tools,
>
> Please note that PR ports/183780 has just been submitted.
>
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
>
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/183780
>
> --
> Edwin Groothuis via the GNATS Auto Assign Tool
> edwin@FreeBSD.org
>
Comment 4 Pavel Timofeev 2013-11-20 07:46:47 UTC
Hi, Muhammad Moinur Rahman!

I looked at logs from 10.0 and it look strange.

I saw this line in your log
"checking for my_init in -lmysqlclient... no"

What does it mean?

Because my log contains
"checking for my_init in -lmysqlclient... yes"
Comment 5 Pavel Timofeev 2013-11-20 07:58:29 UTC
> Hi, Muhammad Moinur Rahman!
>
> I looked at logs from 10.0 and it look strange.
>
> I saw this line in your log
> "checking for my_init in -lmysqlclient... no"
>
> What does it mean?
>
> Because my log contains
> "checking for my_init in -lmysqlclient... yes"

And, yes, I'd like to use flow-tools-ng instead, but there are some
ports that conected flow-tools.
For example, net-mgmt/flowviewer (which is not up to date).
And flow-tools-ng has some problems such as
http://www.freebsd.org/cgi/query-pr.cgi?pr=183782
Comment 6 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2013-11-20 10:51:24 UTC
http://dev.mysql.com/doc/refman/4.1/en/my-init.html
I think you might be running a threadsafe version of mysql that's why it is
showing yes.

I have already submitted a patch for upgrading the flow-tools-ng with the
new OPTIONS framework which will show you an option to configure various
aspects. However as the old OPTION framework you can try to do the
following:
# cd /usr/ports/net-mgmt/flow-tools-ng
# make install clean -DWITH_MYSQL

FYI .. http://www.freebsd.org/cgi/query-pr.cgi?pr=184115

Wait for a couple of days, I am working on upgrading flowviewer. :)


On Wed, Nov 20, 2013 at 1:58 PM, Pavel Timofeev <timp87@gmail.com> wrote:

> > Hi, Muhammad Moinur Rahman!
> >
> > I looked at logs from 10.0 and it look strange.
> >
> > I saw this line in your log
> > "checking for my_init in -lmysqlclient... no"
> >
> > What does it mean?
> >
> > Because my log contains
> > "checking for my_init in -lmysqlclient... yes"
>
> And, yes, I'd like to use flow-tools-ng instead, but there are some
> ports that conected flow-tools.
> For example, net-mgmt/flowviewer (which is not up to date).
> And flow-tools-ng has some problems such as
> http://www.freebsd.org/cgi/query-pr.cgi?pr=183782
>
Comment 7 Pavel Timofeev 2013-11-20 11:00:33 UTC
Great! Thanks a lot!
I'd like the old net-mgmt/flow-tools to desappear from ports too =)

2013/11/20 Muhammad Moinur Rahman <5u623l20@gmail.com>:
> http://dev.mysql.com/doc/refman/4.1/en/my-init.html
> I think you might be running a threadsafe version of mysql that's why it is
> showing yes.
>
> I have already submitted a patch for upgrading the flow-tools-ng with the
> new OPTIONS framework which will show you an option to configure various
> aspects. However as the old OPTION framework you can try to do the
> following:
> # cd /usr/ports/net-mgmt/flow-tools-ng
> # make install clean -DWITH_MYSQL
>
> FYI .. http://www.freebsd.org/cgi/query-pr.cgi?pr=184115
>
> Wait for a couple of days, I am working on upgrading flowviewer. :)
>
>
> On Wed, Nov 20, 2013 at 1:58 PM, Pavel Timofeev <timp87@gmail.com> wrote:
>>
>> > Hi, Muhammad Moinur Rahman!
>> >
>> > I looked at logs from 10.0 and it look strange.
>> >
>> > I saw this line in your log
>> > "checking for my_init in -lmysqlclient... no"
>> >
>> > What does it mean?
>> >
>> > Because my log contains
>> > "checking for my_init in -lmysqlclient... yes"
>>
>> And, yes, I'd like to use flow-tools-ng instead, but there are some
>> ports that conected flow-tools.
>> For example, net-mgmt/flowviewer (which is not up to date).
>> And flow-tools-ng has some problems such as
>> http://www.freebsd.org/cgi/query-pr.cgi?pr=183782
>
>
Comment 8 John Marino freebsd_committer freebsd_triage 2014-07-11 23:02:03 UTC
I had a hard time following the dialogue but I think the result was "there's no problem" so I'm closing the PR