lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

make problems: netmrg.cpp:29: getopt.h: No such file or dire

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
kencaruso
Beginner


Joined: 02 Aug 2003
Posts: 4
Location: Seattle

PostPosted: Sat Aug 02, 2003 10:12 pm    Post subject: make problems: netmrg.cpp:29: getopt.h: No such file or dire Reply with quote

Hello, I get the following error when doing a make, on FreeBSD 4.8-STABLE :

bash-2.05b$ make
Making all in src
source='netmrg.cpp' object='netmrg.o' libtool=no depfile='.deps/netmrg.Po' tmpdepfile='.deps/netmrg.TPo' depmode=gcc /usr/local/bin/bash ./../depcomp g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./include -I/usr/include/libxml2 -I/usr/local/include/mysql -I/usr/include/libxml2 -I/usr/local/include/ucd-snmp -g -O2 -c -o netmrg.o `test -f 'netmrg.cpp' || echo './'`netmrg.cpp
netmrg.cpp:29: getopt.h: No such file or directory
*** Error code 1

Stop in /home/ken/public_html/netmrg-0.10pre1/src.
*** Error code 1

Stop in /home/ken/public_html/netmrg-0.10pre1.



Thanks

Ken
Back to top
balleman
Site Admin


Joined: 20 Jan 2003
Posts: 282

PostPosted: Sun Aug 03, 2003 12:51 am    Post subject: freebsd getopt issues Reply with quote

Ken,

Try removing the following line from netmrg.cpp:
Code:
#include <getopt.h>


From the little research that I've done, FreeBSD's getopt function is defined in unistd.h which is already included. Removing the line should, hopefully, allow you to compile successfully.

I've started a bug for this issue. In the future, our configure scripts should be able to handle this by themselves. To check the progress of this bug visit http://bugs.netmrg.net/bug_view_page.php?bug_id=0000022

Thank you for bringing this to our attention. Please tell us if this change is successful, or if you have further problems.
Back to top
kencaruso
Beginner


Joined: 02 Aug 2003
Posts: 4
Location: Seattle

PostPosted: Sun Aug 03, 2003 1:21 am    Post subject: Almost there Reply with quote

That got me a little further along, libxml is installed in /usr/local/ when built from the freebsd ports, so I got that taken care of. However now I need to tell configure where iconv.h is , so i will try that and let you know how I fare.

-Ken
Back to top
kencaruso
Beginner


Joined: 02 Aug 2003
Posts: 4
Location: Seattle

PostPosted: Tue Aug 05, 2003 7:55 pm    Post subject: More FreeBSD build obstacles Reply with quote

Hello,

In file included from /usr/local/include/libxml2/libxml/parser.h:655,
from /usr/local/include/libxml2/libxml/globals.h:16,
from /usr/local/include/libxml2/libxml/threads.h:31,
from /usr/local/include/libxml2/libxml/xmlmemory.h:186,
from settings.cpp:10:
/usr/local/include/libxml2/libxml/encoding.h:27: iconv.h: No such file or directory


here is the error I get now,

It looks like inconv is :
/usr/local/include/iconv.h

however when I configure with the following, it doesnt seem to fix the error, any ideas?:

-bash-2.05b$ ./configure --with-mysql-lib-dir=/usr/local/lib/mysql --with-mysql-include-dir=/usr/local/include/mysql --with-xml2-include-dir=/usr/local/include/libxml2 --with-xml2-lib-dir=/usr/local/lib/libxml2 --includedir=/usr/local/include


Once again, system is : 4.8-STABLE FreeBSD
Back to top
keb
Contributor


Joined: 09 Jul 2003
Posts: 44
Location: Camp Hill, PA, USA

PostPosted: Thu Aug 07, 2003 12:57 am    Post subject: Reply with quote

kencaruso,

Unfortunately we didn't really have access to a FreeBSD box for devel testing. I believe silfreed is installing FreeBSD on a test box so that we can resolve any additional problems we find.

The includedir specifies where the installer should put header files. Please try the following to get make to see your iconv.h file:

Code:
./configure <OTHER OPTIONS> CPPFLAGS="-I/usr/local/include"


You may get some warnings when running make, but you should be able to ignore them.
Back to top
kencaruso
Beginner


Joined: 02 Aug 2003
Posts: 4
Location: Seattle

PostPosted: Thu Aug 07, 2003 1:32 am    Post subject: Reply with quote

Ok I will try that, let me know if you want an account on a machine to test.

Thanks

ken
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group