Bug 239725 - net/py-pypcap: Unbreak
Summary: net/py-pypcap: Unbreak
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Sunpoet Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-08 20:42 UTC by Muhammad Moinur Rahman
Modified: 2019-08-24 16:01 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
Unbreak for amd64 (1.98 KB, patch)
2019-08-08 20:42 UTC, Muhammad Moinur Rahman
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Muhammad Moinur Rahman freebsd_committer 2019-08-08 20:42:08 UTC
Created attachment 206378 [details]
Unbreak for amd64

Fails to build on amd64 architectures of all versions post 11.2; specially crosslinking with 32-bit libraries.

cc -shared -fstack-protector-strong -O2 -pipe -fstack-protector-strong -fno-strict-aliasing build/temp.freebsd-13.0-CURRENT-amd64-3.6/pcap.o build/temp.freebsd-13.0-CURRENT-amd64-3.6/pcap_ex.o -L/usr/lib32 -L/usr/local/lib -lpcap -lpython3.6m -o build/lib.freebsd-13.0-CURRENT-amd64-3.6/pcap.so
ld: error: /usr/lib32/libpcap.so is incompatible with /usr/lib/crti.o
ld: error: /usr/lib32/libgcc_s.so is incompatible with /usr/lib/crti.o
ld: error: /usr/lib32/libc.so.7 is incompatible with /usr/lib/crti.o
ld: error: /usr/lib32/libgcc_s.so is incompatible with /usr/lib/crti.o
cc: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'cc' failed with exit status 1
Comment 1 Muhammad Moinur Rahman freebsd_committer 2019-08-08 20:56:09 UTC
Am aware about it; it is more likely a problem with SWIG3 incompatibility. Hence I am trying to fix py-pypcap and EXPIRE py-pcap. py-pcap is not maintained any more and requires more work. Whereas py-pypcap has been well maintained and both of them come from the same code.
Comment 3 Muhammad Moinur Rahman freebsd_committer 2019-08-11 21:02:48 UTC
(In reply to Sunpoet Po-Chuan Hsieh from comment #2)
This seems a problem in 11.3amd64 and 12.0amd64-p9.
http://pdr.bofh.network/data/latest-per-pkg/py36-pypcap/1.2.3/113amd64-default.log
http://pdr.bofh.network/data/latest-per-pkg/py36-pypcap/1.2.3/120amd64-default.log
Comment 4 Sunpoet Po-Chuan Hsieh freebsd_committer 2019-08-24 16:01:07 UTC
I diff'd the log and I think the main problem is the lib32 libraries.

my poudriere and FreeBSD cluster:
Found libraries in /usr/lib/libpcap.so

Your environment:
Found libraries in /usr/lib32/libpcap.so

But I don't know where does lib32 come from.

Could you please manually run find_lib_path_and_file in setup.py to determine why it finds libpcap.so from /usr/lib32 instead of /usr/lib (line 76)?

BTW, please use poudriere instead of poudriere-devel.