> On Wednesday 06 September 2006 17:49, James Cameron wrote: > > Another workaround is to prefix the configure command with an assignment > > to the environment variables CFLAGS and LDFLAGS. For example: > > > > CFLAGS=-I/usr/pkg/include LDFLAGS=-L/usr/pkg/lib ./configure > > This is "The Right Thing(tm)". > > The ports tree makefiles do this for all GNU configure script using ports. > Well I tried this, however it creates a whole new set of problems. Exact command used was: env CFLAGS=-I/usr/pkg/include LDFLAGS=-L/usr/pkg/lib ./configure --prefix=/local/williamb/netrek-server/Vanilla Some of the relevant configure output: checking gdbm.h usability... yes checking gdbm.h presence... no configure: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: gdbm.h: proceeding with the compiler's result checking for gdbm.h... yes checking ncurses.h usability... yes checking ncurses.h presence... no configure: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: ncurses.h: proceeding with the compiler's result checking for ncurses.h... yes checking for gdbm_open in -lgdbm... yes Ok warnings that can't be good..but wait it gets worse, here's the result of make: touch .depend gcc -M -I/usr/pkg/include -Wall -DRSA -I../include ./ban.c ./blotpassword.c ./loadchecker.c ./mess.c ./mergescores.c ./newscores.c ./planets.c ./players.c ./scores.c ./setgalaxy.c ./showgalaxy.c ./stat.c ./trimscores.c ./watchmes.c ./fun.c ./xtkill.c ./keyman.c ./nuke.c ./metaget.c ./update.c ./convert.c ./conq_vert.c ./sortdb.c ./ntpasswd.c ./setgame.c ./setplanet.c ./setteam.c > .depend In file included from showgalaxy.c:16: /usr/include/curses.h:440:20: macro "clear" passed 1 arguments, but takes just 0 /usr/include/curses.h:441:23: macro "clrtobot" passed 1 arguments, but takes just 0 /usr/include/curses.h:442:23: macro "clrtoeol" passed 1 arguments, but takes just 0 /usr/include/curses.h:444:20: macro "delch" passed 1 arguments, but takes just 0 /usr/include/curses.h:445:23: macro "deleteln" passed 1 arguments, but takes just 0 /usr/include/curses.h:447:20: macro "erase" passed 1 arguments, but takes just 0 /usr/include/curses.h:448:20: macro "getch" passed 1 arguments, but takes just 0 /usr/include/curses.h:451:19: macro "inch" passed 1 arguments, but takes just 0 /usr/include/curses.h:457:23: macro "insertln" passed 1 arguments, but takes just 0 /usr/include/curses.h:460:22: macro "refresh" passed 1 arguments, but takes just 0 /usr/include/curses.h:463:23: macro "standend" passed 1 arguments, but takes just 0 /usr/include/curses.h:464:23: macro "standout" passed 1 arguments, but takes just 0 /usr/include/curses.h:548:23: macro "gettmode" passed 1 arguments, but takes just 0 *** Error code 1 Stop. make: stopped in /local/williamb/netrek-server/Vanilla/tools *** Error code 1 Stop. make: stopped in /local/williamb/netrek-server/Vanilla *** Error code 1 Stop. make: stopped in /local/williamb/netrek-server/Vanilla Ok, sometimes I get weird stuff on make, so I just type make again. Here's the result of the 2nd make: gcc -I/usr/pkg/include -Wall -DRSA -I../include -c showgalaxy.c *** Error code 1 Stop. make: stopped in /local/williamb/netrek-server/Vanilla/tools *** Error code 1 Stop. make: stopped in /local/williamb/netrek-server/Vanilla And 100s of lines similiar to these: /usr/pkg/include/ncurses.h:792: error: previous declaration of `wnoutrefresh' /usr/include/curses.h:676: error: conflicting types for `wprintw' /usr/pkg/include/ncurses.h:794: error: previous declaration of `wprintw' /usr/include/curses.h:677: error: conflicting types for `wredrawln' So gdbm is fixed, but now curses is broken, whatever curses is. Thoughts? Bill