Opened 12 years ago

Closed 12 years ago

#36688 closed defect (duplicate)

gettext: Undefined symbols _bswap_32

Reported by: jonlederman@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: gettext

Description (last modified by mf2k (Frank Schima))

Hi,

I've tried to install getttext both using macports and manually. After trying with macports, I get:

Jons-MacBook-Pro:gettext-0.18.1.1 Jon$ sudo port clean gettext
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
--->  Cleaning gettext
Jons-MacBook-Pro:gettext-0.18.1.1 Jon$ sudo port install gettext configure.compiler=llvm-gcc-4.2
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
--->  Computing dependencies for gettext
--->  Fetching archive for gettext
--->  Attempting to fetch gettext-0.18.1.1_2.darwin_12.x86_64.tbz2 from http://packages.macports.org/gettext
--->  Attempting to fetch gettext-0.18.1.1_2.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/gettext
--->  Attempting to fetch gettext-0.18.1.1_2.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gettext
--->  Fetching distfiles for gettext
--->  Verifying checksum(s) for gettext
--->  Extracting gettext
--->  Applying patches to gettext
--->  Configuring gettext
--->  Building gettext
Error: org.macports.build for port gettext returned: command execution failed
Please see the log file for port gettext for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/main.log

Looking at the log I see:

/gettext-0.18.1.1/gettext-tools/intl/.libs/libintl.dylib /opt/local/lib/libiconv.dylib -lc
:info:build Undefined symbols for architecture x86_64:
:info:build   "_bswap_32", referenced from:
:info:build       _write_table in msgfmt-write-mo.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build collect2: ld returned 1 exit status
:info:build make[4]: *** [msgfmt] Error 1
:info:build make[4]: *** Waiting for unfinished jobs....

I am not sure where to obtain the libraries with these symbols. Any help would be greatly appreciated.

Thanks.

-Jon

Attachments (2)

main.log (953.3 KB) - added by jonlederman@… 12 years ago.
main.log
main.2.log (954.3 KB) - added by jonlederman@… 12 years ago.
main.log

Download all attachments as: .zip

Change History (12)

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: gettext removed
Owner: changed from macports-tickets@… to ryandesign@…

In the future, please use WikiFormatting, and Cc the port maintainer(s).

Why are you trying to change the compiler? The port installs fine normally.

Please clean the port and install it normally. It it fails to build, attach the complete main.log.

sudo port clean gettext
sudo port install gettext

Changed 12 years ago by jonlederman@…

Attachment: main.log added

main.log

comment:2 Changed 12 years ago by jonlederman@…

Hi,

I tried again and it still fails. I am attaching the log file. Please help resolve this.

Thanks.

-Jon

comment:3 Changed 12 years ago by mf2k (Frank Schima)

What is the output of the following?

port installed libiconv

comment:4 Changed 12 years ago by mf2k (Frank Schima)

And also?

file /opt/local/lib/libiconv.dylib

comment:6 Changed 12 years ago by jonlederman@…

Hi,

Here is the output you requested:

Jons-MacBook-Pro:gnu-crypto-2.0.1 Jon$ port installed libiconv
The following ports are currently installed:
  libiconv @1.14_0 (active)
Jons-MacBook-Pro:gnu-crypto-2.0.1 Jon$
Jons-MacBook-Pro:gnu-crypto-2.0.1 Jon$ file /opt/local/lib/libiconv.dylib
/opt/local/lib/libiconv.dylib: Mach-O 64-bit dynamically linked shared library x86_64
Jons-MacBook-Pro:gnu-crypto-2.0.1 Jon$

Please advise.

Best Regards,

Jon

Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed
Summary: Unable to Install gettextgettext: Undefined symbols _bswap_32

Duplicate of #29358. Please delete the file /usr/include/byteswap.h, clean gettext and try again.

Changed 12 years ago by jonlederman@…

Attachment: main.2.log added

main.log

comment:8 Changed 12 years ago by jonlederman@…

Hi,

I removed: /opt/local/include/byteswap.h, cleaned and then reinstalled and got the same error:

sudo port clean gettext
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
--->  Cleaning gettext
Jons-MacBook-Pro:gettext-0.18.1.1 Jon$ sudo port install gettext configure.compiler=llvm-gcc-4.2
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
--->  Computing dependencies for gettext
--->  Fetching archive for gettext
--->  Attempting to fetch gettext-0.18.1.1_2.darwin_12.x86_64.tbz2 from http://packages.macports.org/gettext
--->  Attempting to fetch gettext-0.18.1.1_2.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/gettext
--->  Attempting to fetch gettext-0.18.1.1_2.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gettext
--->  Fetching distfiles for gettext
--->  Verifying checksum(s) for gettext
--->  Extracting gettext
--->  Applying patches to gettext
--->  Configuring gettext
--->  Building gettext
Error: org.macports.build for port gettext returned: command execution failed
Please see the log file for port gettext for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gettext failed
Jons-MacBook-Pro:gettext-0.18.1.1 Jon$ sudo vi /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/main.log
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
Password:
Jons-MacBook-Pro:gettext-0.18.1.1 Jon$ cp /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/main.log ~/Desktop/main.log
cp: /Users/Jon/Desktop/main.log: Permission denied
Jons-MacBook-Pro:gettext-0.18.1.1 Jon$ sudo cp /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/main.log ~/Desktop/main.log
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid

Please advise. I am attaching a new log file.

Thanks.

-Jon

Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:9 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: closedreopened

Please remember to use WikiFormatting.

The new log still shows the same error...

You said you removed /opt/local/include/byteswap.h. It surprises me that /opt/local/include/byteswap.h existed. Do you have any idea what port had installed that file? In #29358 the rogue byteswap.h file had been in /usr/include not /opt/local/include. Can you check if there are any other remaining copies of byteswap.h on your system by running:

find /usr /opt/local/include -name byteswap.h

comment:10 Changed 12 years ago by jonlederman@…

Hi,

I was able to resolve it. I had another file named Byteswap.h (capital B) in /usr/local/include. I renamed that and now gettext installed.

Thanks.

-Jon

comment:11 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: reopenedclosed

Ah very good.

Note: See TracTickets for help on using tickets.