cisco / joy

A package for capturing and analyzing network flow data and intraflow data, for network research, forensics, and security monitoring.
Other
1.3k stars 329 forks source link

Unused parameter error when building #224

Closed Yilong94 closed 5 years ago

Yilong94 commented 5 years ago

Hi all, I am currently building on a macOS Mojave (10.14.2) machine but I seem to be having some issue at building the package. When I executed

make clean;make

I encountered the following error. My OpenSSL version is 1.0.2q.

../src/fp.c:98:33: error: unused parameter 'header' [-Werror,-Wunused-parameter] const struct pcap_pkthdr *header, ^ 1 error generated. make[2]: *** [../src/libjoy_la-fp.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2

Before that, I executed:

./configure --enable-gzip --with-ssl-dir=/usr/local/ssl/

but this did not seem to generate any error and the Makerfile is created.

Any help would be much appreciated. Thank you.

tdjCisco commented 5 years ago

Currently looking into this.

-Todd

From: Tan Yi Long notifications@github.com Reply-To: cisco/joy reply@reply.github.com Date: Thursday, January 10, 2019 at 9:44 AM To: cisco/joy joy@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [cisco/joy] Error when building on mac os (#224)

Hi all, I am currently building on a macOS Mojave (10.14.2) machine but I seem to be having some issue at building the package. When I executed

make clean;make

I encountered the following error. My OpenSSL version is 1.0.2q.

../src/fp.c:98:33: error: unused parameter 'header' [-Werror,-Wunused-parameter] const struct pcap_pkthdr *header, ^ 1 error generated. make[2]: [../src/libjoy_la-fp.lo] Error 1 make[1]: [all-recursive] Error 1 make: *** [all] Error 2

Before that, I executed:

./configure --enable-gzip --with-ssl-dir=/usr/local/ssl/

but this did not seem to generate any error and the Makerfile is created.

Any help would be much appreciated. Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/cisco/joy/issues/224, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AlkQDG5AZA4WbWSUn36L3jehBs_95go1ks5vB1G8gaJpZM4Z5o1k.

Yilong94 commented 5 years ago

Thank you @tdjCisco. FYI, I reverted to v3.0.3 and this version is working well with minor issues :).

I will just put the minor issues I faced here in case it helps anyone:

tdjCisco commented 5 years ago

I've committed the change and you can build from the latest again.