From: Michael C. <MC...@Ne...> - 2004-09-08 15:24:32
|
Working with a bit of messing around. How can I change to use /usr/local/include. This probably will exist on all *BSD I believe. I just moved the files to /usr/include for now, but its really not something I should do, as they will never be remembered when the libraries get upgraded. bash-2.05b# make make all-recursive Making all in libperfparse Making all in perfparse Making all in db_tools Making all in cgi if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/mysql -O -pipe -mcpu=pentiumpro -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../libperfparse -g -O2 -Wall -MT perfchart.o -MD -MP -MF ".deps/perfchart.Tpo" -c -o perfchart.o perfchart.c; then mv -f ".deps/perfchart.Tpo" ".deps/perfchart.Po"; else rm -f ".deps/perfchart.Tpo"; exit 1; fi perfchart.c: In function `drawXScale': perfchart.c:1027: warning: long int format, int arg (arg 3) perfchart.c:1122: warning: long int format, int arg (arg 3) perfchart.c:1176: warning: long int format, int arg (arg 3) perfchart.c:1176: warning: long int format, int arg (arg 4) if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/mysql -O -pipe -mcpu=pentiumpro -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../libperfparse -g -O2 -Wall -MT cgi.o -MD -MP -MF ".deps/cgi.Tpo" -c -o cgi.o cgi.c; then mv -f ".deps/cgi.Tpo" ".deps/cgi.Po"; else rm -f ".deps/cgi.Tpo"; exit 1; fi /usr/local/bin/bash ../libtool --mode=link gcc -g -O2 -Wall -o perfchart.png perfchart.o cgi.o -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lm -L/usr/lib -lssl -lcrypto -L/usr/local/lib -lglib-2.0 -liconv -L/lib -lgd -L../libperfparse -lperfparse gcc -g -O2 -Wall -o .libs/perfchart.png perfchart.o cgi.o -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lm -L/usr/lib -lssl -lcrypto -L/usr/local/lib -lglib-2.0 -liconv -L/lib -lgd -L/opt/perfparse-0.100.3/libperfparse /opt/perfparse-0.100.3/libperfparse/.libs/libperfparse.so -Wl,--rpath -Wl,/usr/local/nagios/lib creating perfchart.png if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/mysql -O -pipe -mcpu=pentiumpro -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../libperfparse -g -O2 -Wall -MT perfgant.o -MD -MP -MF ".deps/perfgant.Tpo" -c -o perfgant.o perfgant.c; then mv -f ".deps/perfgant.Tpo" ".deps/perfgant.Po"; else rm -f ".deps/perfgant.Tpo"; exit 1; fi /usr/local/bin/bash ../libtool --mode=link gcc -g -O2 -Wall -o perfgant.png perfgant.o cgi.o -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lm -L/usr/lib -lssl -lcrypto -L/usr/local/lib -lglib-2.0 -liconv -L/lib -lgd -L../libperfparse -lperfparse gcc -g -O2 -Wall -o .libs/perfgant.png perfgant.o cgi.o -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lm -L/usr/lib -lssl -lcrypto -L/usr/local/lib -lglib-2.0 -liconv -L/lib -lgd -L/opt/perfparse-0.100.3/libperfparse /opt/perfparse-0.100.3/libperfparse/.libs/libperfparse.so -Wl,--rpath -Wl,/usr/local/nagios/lib creating perfgant.png Making all in images Making all in config Making all in contrib rm -f perfparse_daemon.sh perfparse_daemon.sh.tmp sed -e 's,@bindir\@,/usr/local/bin,g' -e 's,@prefix\@,/usr/local,g' ./perfparse_daemon.sh.in >perfparse_daemon.sh.tmp chmod +x perfparse_daemon.sh.tmp mv perfparse_daemon.sh.tmp perfparse_daemon.sh > -----Original Message----- > From: Michael Clark [mailto:MC...@Ne...] > Sent: Wednesday, September 08, 2004 10:09 AM > To: 'Ben Clewett' > Cc: 'per...@li...' > Subject: RE: [Perfparse-users] FreeBSD 5.2.1 / compile problems / evil > lib s? > > > > > > > Michael, > > > > It looks like you do not have the GB package installed. > For instance > > gd.h should be in /usr/include. > ^^^ /usr/include is evil. I should have thought of that. > > --- > bash-2.05b# pkg_info | grep gd > gd-2.0.15_1,1 A graphics library for fast creation of images > gdb-5.3_1,1 GNU GDB 5.3 developmental snapshot > gdbm-1.8.3_1 The GNU database manager > gdk-pixbuf-0.22.0 A graphic library for GTK+ > libgda-0.2.96_2 Provides uniform access to different kinds of data > sources > ---- > bash-2.05b# ls /usr/include/ | grep gd > ---- > bash-2.05b# ls /usr/local/include/ | grep gd > gd.h > gd_io.h > gdbm.h > gdcache.h > gdfontg.h > gdfontl.h > gdfontmb.h > gdfonts.h > gdfontt.h > ---- > > Where is the path in the C so I can change it? > > > > > > > > You might have to manually install these from source. > > > > Let us know how you get along, > > > > Ben > > > > > > Michael Clark wrote: > > > > > > > > I am having a very hard time with this for some reason. > > Perhaps I have > > > to compile a lib from source because I have tried upgrading > > everything I > > > thought could be related using ports/packages. > > > I am not familiar with the gd.h which seems to be the > > problem I believe. > > > > > > RTFM's appreciated, finding my stupid mistakes priceless =) > > > > > > > > > bash-2.05b# make > > > make all-recursive > > > Making all in libperfparse > > > Making all in perfparse > > > Making all in db_tools > > > Making all in cgi > > > if gcc -DHAVE_CONFIG_H -I. -I. -I.. > > -I/usr/local/include/mysql -O -pipe > > > -mcpu=pentiumpro -I/usr/local/include/glib-2.0 > > > -I/usr/local/lib/glib-2.0/include -I../libpe > > > rfparse -g -O2 -Wall -MT perfchart.o -MD -MP -MF > > > ".deps/perfchart.Tpo" -c -o perfchart.o perfchart.c; then mv -f > > > ".deps/perfchart.Tpo" ".deps/perfchart.Po"; els > > > e rm -f ".deps/perfchart.Tpo"; exit 1; fi > > > perfchart.c:33:16: gd.h: No such file or directory > > > perfchart.c:34:21: gdfonts.h: No such file or directory > > > perfchart.c:35:22: gdfontmb.h: No such file or directory > > > perfchart.c:51: error: syntax error before "graph" > > > perfchart.c:51: warning: type defaults to `int' in > > declaration of `graph' > > > perfchart.c:51: warning: data definition has no type or > > storage class > > > perfchart.c: In function `main': > > > perfchart.c:249: warning: implicit declaration of function > > > `gdImageRectangle' > > > perfchart.c:253: warning: implicit declaration of function > > > `gdImageFilledRectangle' > > > perfchart.c:267: warning: implicit declaration of function > > `gdImagePng' > > > perfchart.c: In function `initChartGraphics': > > > perfchart.c:407: warning: implicit declaration of function > > `gdImageCreate' > > > perfchart.c:411: warning: implicit declaration of function > > > `gdImageColorAllocate' > > > perfchart.c: In function `drawHeadings': > > > perfchart.c:514: warning: implicit declaration of function > > `gdImageString' > > > perfchart.c:514: error: `gdFontSmall' undeclared (first > use in this > > > function) > > > perfchart.c:514: error: (Each undeclared identifier is > > reported only once > > > perfchart.c:514: error: for each function it appears in.) > > > perfchart.c:515: warning: implicit declaration of function > > `gdImageLine' > > > perfchart.c:575: error: `gdFontMediumBold' undeclared > > (first use in this > > > function) > > > perfchart.c: In function `drawYScalePercent': > > > perfchart.c:943: error: `gdFontSmall' undeclared (first > use in this > > > function) > > > perfchart.c: In function `drawYScale': > > > perfchart.c:1006: error: `gdFontSmall' undeclared (first > > use in this > > > function) > > > perfchart.c: In function `drawXScale': > > > perfchart.c:1027: warning: long int format, int arg (arg 3) > > > perfchart.c:1028: error: `gdFontSmall' undeclared (first > > use in this > > > function) > > > perfchart.c:1122: warning: long int format, int arg (arg 3) > > > perfchart.c:1176: warning: long int format, int arg (arg 3) > > > perfchart.c:1176: warning: long int format, int arg (arg 4) > > > perfchart.c: In function `fail': > > > perfchart.c:1535: error: `gdFontSmall' undeclared (first > > use in this > > > function) > > > perfchart.c: In function `sql_fail': > > > perfchart.c:1664: error: `gdFontSmall' undeclared (first > > use in this > > > function) > > > *** Error code 1 > > > > > > Stop in /opt/perfparse-0.100.3/cgi. > > > *** Error code 1 > > > > > > Stop in /opt/perfparse-0.100.3. > > > *** Error code 1 > > > > > > Stop in /opt/perfparse-0.100.3. > > > bash-2.05b# > > > > > > > > > > > > > > > *CONFIDENTIALITY NOTE: This electronic transmission, > including all > > > attachments, is directed in confidence solely to the > > person(s) to whom > > > it is addressed, or an authorized recipient, and may not > > otherwise be > > > distributed, copied or disclosed. The contents of the > > transmission may > > > also be subject to intellectual property rights and all > > such rights are > > > expressly claimed and are not waived. If you have received this > > > transmission in error, please notify the sender immediately > > by return > > > electronic transmission and then immediately delete this > > transmission, > > > including all attachments, without copying, distributing or > > disclosing > > > same. * > > > > > > > > > > > > > > CONFIDENTIALITY NOTE: This electronic transmission, including all > attachments, is directed in confidence solely to the > person(s) to whom it is > addressed, or an authorized recipient, and may not otherwise > be distributed, > copied or disclosed. The contents of the transmission may > also be subject to > intellectual property rights and all such rights are > expressly claimed and > are not waived. If you have received this transmission in > error, please > notify the sender immediately by return electronic > transmission and then > immediately delete this transmission, including all > attachments, without > copying, distributing or disclosing same. > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > CONFIDENTIALITY NOTE: This electronic transmission, including all attachments, is directed in confidence solely to the person(s) to whom it is addressed, or an authorized recipient, and may not otherwise be distributed, copied or disclosed. The contents of the transmission may also be subject to intellectual property rights and all such rights are expressly claimed and are not waived. If you have received this transmission in error, please notify the sender immediately by return electronic transmission and then immediately delete this transmission, including all attachments, without copying, distributing or disclosing same. |