Opened 6 years ago

Closed 5 years ago

#28926 closed defect (fixed)

ossp-uuid: 'optarg' undeclared

Reported by: zakay@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: lion haspatch Cc: bit.kevin@…, felix.buenemann@…
Port: ossp-uuid

Description (last modified by ryandesign (Ryan Schmidt))

$ sudo port install postgresql90
--->  Computing dependencies for postgresql90
--->  Dependencies to be installed: ossp-uuid readline
--->  Building ossp-uuid
Error: Target org.macports.build returned: shell command failed (see log for details)
Error: Failed to install ossp-uuid
Log for ossp-uuid is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ossp-uuid/main.log
Error: The following dependencies were not installed: ossp-uuid readline
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

From the log file:

:notice:main --->  Building ossp-uuid
:debug:build build phase started at Sun Mar 27 11:29:47 CEST 2011
:debug:build Executing org.macports.build (ossp-uuid)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ossp-uuid/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ossp-uuid/work/uuid-1.6.2" && /usr/bin/make -j2 -w all'
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ossp-uuid/work/uuid-1.6.2'
:info:build /Developer/usr/bin/llvm-gcc-4.2 -I. -I. -I/opt/local/include -DHAVE_CONFIG_H -pipe -O2 -D_POSIX_C_SOURCE -arch x86_64 -c uuid_cli.c
:info:build uuid_cli.c: In function 'main':
:info:build uuid_cli.c:110: error: 'optarg' undeclared (first use in this function)
:info:build uuid_cli.c:110: error: (Each undeclared identifier is reported only once
:info:build uuid_cli.c:110: error: for each function it appears in.)
:info:build uuid_cli.c:157: error: 'optopt' undeclared (first use in this function)
:info:build uuid_cli.c:160: error: 'optind' undeclared (first use in this function)
:info:build make: *** [uuid_cli.o] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ossp-uuid/work/uuid-1.6.2'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ossp-uuid/work/uuid-1.6.2" && /usr/bin/make -j2 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)

Attachments (1)

patch-uuid_cli.c.diff (248 bytes) - added by felix.buenemann@… 5 years ago.
Patch for missing getopt.h include in uuid_cli.c

Download all attachments as: .zip

Change History (11)

comment:1 Changed 6 years ago by ryandesign (Ryan Schmidt)

  • Description modified (diff)
  • Port ossp-uuid added
  • Priority changed from High to Normal
  • Summary changed from Installing Postgres90 fails to ossp-uuid: 'optarg' undeclared

comment:2 in reply to: ↑ description Changed 6 years ago by ryandesign (Ryan Schmidt)

Replying to zakay@…:

:info:build /Developer/usr/bin/llvm-gcc-4.2 -I. -I. -I/opt/local/include -DHAVE_CONFIG_H -pipe -O2 -D_POSIX_C_SOURCE -arch x86_64 -c uuid_cli.c

Hmm, why is /Developer/usr/bin/llvm-gcc-4.2 being used here? ossp-uuid, like most other ports, should build with /usr/bin/gcc-4.2 on Snow Leopard.

comment:3 follow-up: Changed 6 years ago by zakay@…

Its because, I am running the developer preview of osx lion.

comment:4 Changed 6 years ago by jmroot (Joshua Root)

  • Keywords lion added
  • Resolution set to wontfix
  • Status changed from new to closed

We can't support prerelease OS versions. You might want to check if your NDA allows you to post this sort of info publicly BTW.

comment:5 Changed 5 years ago by bit.kevin@…

  • Cc bit.kevin@… added

Cc Me!

comment:6 in reply to: ↑ 3 Changed 5 years ago by bit.kevin@…

Replying to zakay@…:

Its because, I am running the developer preview of osx lion.

Have you solved this problem?

Changed 5 years ago by felix.buenemann@…

Patch for missing getopt.h include in uuid_cli.c

comment:7 Changed 5 years ago by felix.buenemann@…

  • Resolution wontfix deleted
  • Status changed from closed to reopened

Adding the attached patch-uuid_cli.c.diff to the ports patch files fixes build on some releases of OS X by adding a missing include of getopt.h in uuid_cli.c.

comment:8 Changed 5 years ago by felix.buenemann@…

  • Cc felix.buenemann@… added

Cc Me!

comment:9 Changed 5 years ago by jmroot (Joshua Root)

  • Keywords haspatch added

comment:10 Changed 5 years ago by jmroot (Joshua Root)

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.