|
|
| Author |
Message |
kencaruso Beginner
Joined: 02 Aug 2003 Posts: 4 Location: Seattle
|
Posted: Sat Aug 02, 2003 10:12 pm Post subject: make problems: netmrg.cpp:29: getopt.h: No such file or dire |
|
|
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
|
Posted: Sun Aug 03, 2003 12:51 am Post subject: freebsd getopt issues |
|
|
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
|
Posted: Sun Aug 03, 2003 1:21 am Post subject: Almost there |
|
|
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
|
Posted: Tue Aug 05, 2003 7:55 pm Post subject: More FreeBSD build obstacles |
|
|
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
|
Posted: Thu Aug 07, 2003 12:57 am Post subject: |
|
|
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
|
Posted: Thu Aug 07, 2003 1:32 am Post subject: |
|
|
Ok I will try that, let me know if you want an account on a machine to test.
Thanks
ken |
|
| Back to top |
|
 |
|