![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pcap.h Sniffing | papabearcares | Shell Programming and Scripting | 0 | 04-16-2008 09:22 PM |
| Pcap.h Sniffing | papabearcares | High Level Programming | 0 | 04-16-2008 09:21 PM |
| Filtering paquets with pcap.h | danathane | High Level Programming | 3 | 03-03-2008 09:17 AM |
| pcap.h | Pervez Sajjad | High Level Programming | 8 | 07-05-2006 12:09 AM |
| compiling qt | nydel | UNIX for Dummies Questions & Answers | 2 | 08-03-2001 05:14 PM |
|
|
LinkBack | Thread Tools | Display Modes |
| Forum Sponsor | ||
|
|
|
||||
|
Thanks for the reply.
When I run make I get this: cc -c -xO3 -xdepend -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE Pcap.c /usr/ucb/cc: language optional software package not installed *** Error code 1 make: Fatal error: Command failed for target `Pcap.o' I do not have cc, only gcc. I cannot figure out the options I need to use for gcc to work properly. The readme says they compiled successfully with gcc but don't say how. Any thoughts? Thanks, TioTony |
|
|||
|
Edit "Makefile". Find The CC=cc and change it to CC=gcc (I hope it exists). I have also the feeling (alsmost certainty) that this pcap.c needs the libpcap library compiled and installed first. Note that you probably will have to make changes to other things in Makefile. I.e. I suppose that the -KPIC directive should change to -DPIC. Try to find if there is a script with name "configure" there (I dont think so...). If it exists execute it.
Greetings |
|
||||
|
Thanks for your help thus far. I changed the cc to gcc in the Makefile, which I had done before as well. I think the key was changing KPIC to DPIC. That seems to have gotten me further. There is no config file. When I run make, I now get this:
gcc -c -xO3 -xdepend -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -DPIC -I/usr/perl5/5.00503/sun4-solaris/CORE Pcap.c gcc: language depend not recognized gcc: Pcap.c: linker input file unused since linking not done Running Mkbootstrap for Net::Pcap () chmod 644 Pcap.bs LD_RUN_PATH="" gcc -o blib/arch/auto/Net/Pcap/Pcap.so -G Pcap.o gcc: Pcap.o: No such file or directory gcc: No input files *** Error code 1 make: Fatal error: Command failed for target `blib/arch/auto/Net/Pcap/Pcap.so' All the paths mentioned exit but Pcap.so is not in blib/arch/auto/Net/Pcap/. Where do I go from here? Does anyone know of any good gcc 101 sites that could help me out? Thanks, TioTony |
|
|||
|
i believe the -x directives are now wrong. The -xO3 i presume it is the optimization. Remove it completeley or try simply -O3. To see the options of gcc simply type #man gcc. If it is not listed, it is not supported. If #man gcc doesnt work try this:
#cd /usr/local/bin/man/man1 #nroff -man gcc.1 |more Note it is a difficult matter if there is no config file |