Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678636 - net-p2p/gtk-gnutella-1.1.14: In function `pattern_strstr_tiny':pattern.c: (.text.hot+0x1cc): undefined reference to `ULONG_SWAP'
Summary: net-p2p/gtk-gnutella-1.1.14: In function `pattern_strstr_tiny':pattern.c: (.t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Hans de Graaff
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 676376
  Show dependency tree
 
Reported: 2019-02-23 16:14 UTC by ernsteiswuerfel
Modified: 2019-07-25 21:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (gtk-gnutella-1.1.14:20190223-151126.log,285.01 KB, text/plain)
2019-02-23 16:14 UTC, ernsteiswuerfel
Details
emerge --info (file_678636.txt,5.83 KB, text/plain)
2019-02-23 16:15 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2019-02-23 16:14:48 UTC
Created attachment 566210 [details]
build.log

[...]
powerpc-unknown-linux-gnu-gcc -o gtk-gnutella  main.o if/bridge/ui2c.o if/bridge/c2ui.o if/gnet_property.o if/gui_property.o -Lshell -lshell -Lupnp -lupnp -Ldht -ldht -Lcore -lcore -Lcore/g2 -lg2 -Lui/gtk -lgtk-common -lgtkx -lgtk-common -Lxml -lxml -Llib -lshared -Lsdbm -lsdbm -lshared -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lgobject-2.0 -pthread -lglib-2.0 -ldbus-1 -lgnutls    -pthread -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -lbfd -liberty -lz -lm -ldl
lib/libshared.a(pattern.o): In function `pattern_strstr_tiny':
pattern.c:(.text.hot+0x1cc): undefined reference to `ULONG_SWAP'
lib/libshared.a(pattern.o): In function `pattern_strlen':
pattern.c:(.text.hot+0x590): undefined reference to `ULONG_SWAP'
lib/libshared.a(pattern.o): In function `pattern_memchr':
pattern.c:(.text.hot+0x72c): undefined reference to `ULONG_SWAP'
lib/libshared.a(pattern.o): In function `pattern_strchr':
pattern.c:(.text.hot+0x820): undefined reference to `ULONG_SWAP'
pattern.c:(.text.hot+0x874): undefined reference to `ULONG_SWAP'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:257: gtk-gnutella] Error 1
Comment 1 ernsteiswuerfel archtester 2019-02-23 16:15:40 UTC
Created attachment 566212 [details]
emerge --info
Comment 2 Hans de Graaff gentoo-dev Security 2019-02-24 08:16:48 UTC
This should be defined in src/lib/endian.rb or error out if the PTRSIZE is unexpected.

#if PTRSIZE == 8
#define ULONG_SWAP(w)   UINT64_SWAP(w)
#elif PTRSIZE == 4
#define ULONG_SWAP(w)   UINT32_SWAP(w)
#else
#error "unexpected pointer size"
#endif


From your error it looks like it isn't defined at all and treated as a function. I don't know enough about ppc internals to help here, sorry.
Comment 3 ernsteiswuerfel archtester 2019-07-25 21:09:53 UTC
net-p2p/gtk-gnutella-1.1.15 builds fine again on ppc.

I suppose it's this one:
https://github.com/gtk-gnutella/gtk-gnutella/commit/078de36a86b6f7af260f257e7a583f99947e6998