hey all,
I know this is a reach as I've found nobody talking about running fragrouter on Mac OS X, but I'm really interested in getting this stable. I've had a number of issues come up during the configure and the start of make that I've been able to resolve through write-ups on other linux-based apps, but here I've reached a dead end.
Here's what I'm getting while running the make two or three times after a few attempts as fixes (including dropping back to the gcc 3.3 compiler, as advised by someone on this forum for another linux app having a similar problem; this attempt was run using gcc 4.0):
sed -e 's/.*/#define VERSION "&"/' ./VERSION > version.h
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/resolve.c -o src/resolve.o
In file included from src/../include/libnet.h:93,
from src/resolve.c:37:
src/../include/./libnet/libnet-functions.h:389: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:389: warning: its scope is only this definition or declaration, which is probably not what you want
src/../include/./libnet/libnet-functions.h:692: warning: 'struct ipoption' declared inside parameter list
src/resolve.c: In function 'host_lookup':
src/resolve.c:68: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness
src/resolve.c:73: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness
src/resolve.c: In function 'host_lookup_r':
src/resolve.c:96: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness
src/resolve.c:101: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness
src/resolve.c: In function 'name_resolve':
src/resolve.c:117: warning: pointer targets in passing argument 1 of 'inet_addr' differ in signedness
src/resolve.c:119: warning: pointer targets in passing argument 1 of 'gethostbyname' differ in signedness
src/resolve.c: In function 'get_ipaddr':
src/resolve.c:173: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/socket.c -o src/socket.o
In file included from src/../include/libnet.h:93,
from src/socket.c:38:
src/../include/./libnet/libnet-functions.h:389: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:389: warning: its scope is only this definition or declaration, which is probably not what you want
src/../include/./libnet/libnet-functions.h:692: warning: 'struct ipoption' declared inside parameter list
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/checksum.c -o src/checksum.o
In file included from src/../include/libnet.h:93,
from src/checksum.c:15:
src/../include/./libnet/libnet-functions.h:389: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:389: warning: its scope is only this definition or declaration, which is probably not what you want
src/../include/./libnet/libnet-functions.h:692: warning: 'struct ipoption' declared inside parameter list
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/prand.c -o src/prand.o
In file included from src/../include/libnet.h:93,
from src/prand.c:37:
src/../include/./libnet/libnet-functions.h:389: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:389: warning: its scope is only this definition or declaration, which is probably not what you want
src/../include/./libnet/libnet-functions.h:692: warning: 'struct ipoption' declared inside parameter list
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/version.c -o src/version.o
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/error.c -o src/error.o
In file included from src/../include/libnet.h:93,
from src/error.c:37:
src/../include/./libnet/libnet-functions.h:389: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:389: warning: its scope is only this definition or declaration, which is probably not what you want
src/../include/./libnet/libnet-functions.h:692: warning: 'struct ipoption' declared inside parameter list
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/write_ip.c -o src/write_ip.o
In file included from src/../include/libnet.h:93,
from src/write_ip.c:37:
src/../include/./libnet/libnet-functions.h:389: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:389: warning: its scope is only this definition or declaration, which is probably not what you want
src/../include/./libnet/libnet-functions.h:692: warning: 'struct ipoption' declared inside parameter list
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/insert_ipo.c -o src/insert_ipo.o
In file included from src/../include/libnet.h:93,
from src/insert_ipo.c:37:
src/../include/./libnet/libnet-functions.h:389: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:389: warning: its scope is only this definition or declaration, which is probably not what you want
src/../include/./libnet/libnet-functions.h:692: warning: 'struct ipoption' declared inside parameter list
src/insert_ipo.c:40: warning: 'struct ipoption' declared inside parameter list
src/insert_ipo.c:41: error: conflicting types for 'insert_ipo'
src/../include/./libnet/libnet-functions.h:389: error: previous declaration of 'insert_ipo' was here
src/insert_ipo.c: In function 'insert_ipo':
src/insert_ipo.c:78: error: dereferencing pointer to incomplete type
make[1]: *** [src/insert_ipo.o] Error 1
make: *** [Libnet-0.99b/libnet.a] Error 2
I appreciate any pointers or oppinions anyone has on this, as the Internet is dry on the subject.
Thanx.
Dan
I know this is a reach as I've found nobody talking about running fragrouter on Mac OS X, but I'm really interested in getting this stable. I've had a number of issues come up during the configure and the start of make that I've been able to resolve through write-ups on other linux-based apps, but here I've reached a dead end.
Here's what I'm getting while running the make two or three times after a few attempts as fixes (including dropping back to the gcc 3.3 compiler, as advised by someone on this forum for another linux app having a similar problem; this attempt was run using gcc 4.0):
sed -e 's/.*/#define VERSION "&"/' ./VERSION > version.h
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/resolve.c -o src/resolve.o
In file included from src/../include/libnet.h:93,
from src/resolve.c:37:
src/../include/./libnet/libnet-functions.h:389: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:389: warning: its scope is only this definition or declaration, which is probably not what you want
src/../include/./libnet/libnet-functions.h:692: warning: 'struct ipoption' declared inside parameter list
src/resolve.c: In function 'host_lookup':
src/resolve.c:68: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness
src/resolve.c:73: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness
src/resolve.c: In function 'host_lookup_r':
src/resolve.c:96: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness
src/resolve.c:101: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness
src/resolve.c: In function 'name_resolve':
src/resolve.c:117: warning: pointer targets in passing argument 1 of 'inet_addr' differ in signedness
src/resolve.c:119: warning: pointer targets in passing argument 1 of 'gethostbyname' differ in signedness
src/resolve.c: In function 'get_ipaddr':
src/resolve.c:173: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/socket.c -o src/socket.o
In file included from src/../include/libnet.h:93,
from src/socket.c:38:
src/../include/./libnet/libnet-functions.h:389: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:389: warning: its scope is only this definition or declaration, which is probably not what you want
src/../include/./libnet/libnet-functions.h:692: warning: 'struct ipoption' declared inside parameter list
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/checksum.c -o src/checksum.o
In file included from src/../include/libnet.h:93,
from src/checksum.c:15:
src/../include/./libnet/libnet-functions.h:389: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:389: warning: its scope is only this definition or declaration, which is probably not what you want
src/../include/./libnet/libnet-functions.h:692: warning: 'struct ipoption' declared inside parameter list
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/prand.c -o src/prand.o
In file included from src/../include/libnet.h:93,
from src/prand.c:37:
src/../include/./libnet/libnet-functions.h:389: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:389: warning: its scope is only this definition or declaration, which is probably not what you want
src/../include/./libnet/libnet-functions.h:692: warning: 'struct ipoption' declared inside parameter list
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/version.c -o src/version.o
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/error.c -o src/error.o
In file included from src/../include/libnet.h:93,
from src/error.c:37:
src/../include/./libnet/libnet-functions.h:389: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:389: warning: its scope is only this definition or declaration, which is probably not what you want
src/../include/./libnet/libnet-functions.h:692: warning: 'struct ipoption' declared inside parameter list
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/write_ip.c -o src/write_ip.o
In file included from src/../include/libnet.h:93,
from src/write_ip.c:37:
src/../include/./libnet/libnet-functions.h:389: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:389: warning: its scope is only this definition or declaration, which is probably not what you want
src/../include/./libnet/libnet-functions.h:692: warning: 'struct ipoption' declared inside parameter list
gcc -O3 -funroll-loops -fomit-frame-pointer -pipe -Wall -DHAVE_CONFIG_H -c src/insert_ipo.c -o src/insert_ipo.o
In file included from src/../include/libnet.h:93,
from src/insert_ipo.c:37:
src/../include/./libnet/libnet-functions.h:389: warning: 'struct ipoption' declared inside parameter list
src/../include/./libnet/libnet-functions.h:389: warning: its scope is only this definition or declaration, which is probably not what you want
src/../include/./libnet/libnet-functions.h:692: warning: 'struct ipoption' declared inside parameter list
src/insert_ipo.c:40: warning: 'struct ipoption' declared inside parameter list
src/insert_ipo.c:41: error: conflicting types for 'insert_ipo'
src/../include/./libnet/libnet-functions.h:389: error: previous declaration of 'insert_ipo' was here
src/insert_ipo.c: In function 'insert_ipo':
src/insert_ipo.c:78: error: dereferencing pointer to incomplete type
make[1]: *** [src/insert_ipo.o] Error 1
make: *** [Libnet-0.99b/libnet.a] Error 2
I appreciate any pointers or oppinions anyone has on this, as the Internet is dry on the subject.
Thanx.
Dan